Package Modeling :: Package interfaces :: Module XMLCapability :: Class XMLCapabilityInterface
[show private | hide private]
[frames | no frames]

Class XMLCapabilityInterface

Base --+
       |
      XMLCapabilityInterface


Mix-in class ...
Method Summary
  getXMLDOM(self, doc, parentNode)
Returns the (DOM) DocumentObject for the receiver.
  getXMLNodeName(self)
Returns the node name corresponding to the receiver (e.g.
  xmlAttributesDict(self)
raise 'AbstractInterface', 'xmlAttributesDict is an abstract method which should be defined in classes using the mix-in class XMLCapability'
  xmlAttributeType(self, attributeName)
  xmlGetAttribute(self, attributeName)
  xmlSetAttribute(self, attributeName)

Method Details

getXMLDOM(self, doc=None, parentNode=None)

Returns the (DOM) DocumentObject for the receiver.

Parameters 'doc' and 'parentDoc' should be both omitted or supplied. If they are omitted, a new DocumentObject is created. If they are supplied, elements are added to the parentNode.

Returns: the (possibly new) DocumentObject.

getXMLNodeName(self)

Returns the node name corresponding to the receiver (e.g. 'relationship')

xmlAttributesDict(self)

raise 'AbstractInterface', 'xmlAttributesDict is an abstract method which should be defined in classes using the mix-in class XMLCapability'

Example:

return {'name':       ('string',
                       lambda self=None,p=None: None,
                       self.name ),
        'isAbstract': ( 'boolean',
                        self.setIsAbstract,
                        self.isAbstract ),
        'typeName':   ( 'string',
                        self.setTypeName,
                        self.typeName )
        }

Generated by Epydoc 2.1 on Sat Mar 4 13:36:25 2006 http://epydoc.sf.net