Package EaseXML :: Package Validation :: Module Schema :: Class Element
[show private | hide private]
[frames | no frames]

Type Element

object --+    
         |    
 XMLObject --+
             |
            Element


Method Summary
    Inherited from XMLObject
  __init__(self, *args, **kw)
  __cmp__(self, other)
Two XMLObjects are equal if they have the same XML representation
  __eq__(self, other)
  __getattr__(self, attrName)
  __getitem__(self, attrName)
  __ne__(self, other)
  __str__(self)
  forEach(self, callableFunc, *args, **kw)
Execute an action for each Node handled by an XMLObject.
  fromDict(cls, aDict)
Build an XMLObject given its dict representation. (Class method)
  fromXml(cls, xmlData)
Feeding an XMLObject instance with XML string data. (Class method)
  get(self, nodeName)
Fetch a node value given its name.
  getChildren(self)
Basic Introspection
  getClassName(cls)
(Class method)
  getEntities(self)
Get all entities specified in the xmlobject:
  getName(cls)
Fetch XMLObject's instance name which can be redefined by _name class attribute. (Class method)
  getNodes(self)
Sub-Nodes accessor
  getNodeWithName(self, nodeName)
Specific-Node accessor
  getParentNode(self)
Accessing the parent Node instance.
  orderAttrs(self)
  orderNodes(self, nodesList)
XMLObject remembers its children by a hash storage.
  set(self, nodeName, val)
Modify a node value given its name.
  setName(self, newName)
  setParentNode(self, node)
Setting the parent Node instance.
  toDict(self)
Fetch an XMLObject instance's data in a hash mapped by Node name
  toXml(self, headers, tabLength, prettyPrint)
Exporting an XMLObject instance to XML.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Class Variable Summary
str __name__ = 'Element'
dict __nodes__ = {'simpleType': <EaseXML.Nodes.ItemNode objec...
dict __ns_nodes__ = {}
MetaAttribute complexType = <EaseXML.main.MetaAttribute object at 0xb7...
MetaAttribute maxOccurs = <EaseXML.main.MetaAttribute object at 0xb7b8...
MetaAttribute minOccurs = <EaseXML.main.MetaAttribute object at 0xb7b8...
MetaAttribute name = <EaseXML.main.MetaAttribute object at 0xb7b8c1ec>
MetaAttribute ref = <EaseXML.main.MetaAttribute object at 0xb7b8c3cc>
MetaAttribute simpleType = <EaseXML.main.MetaAttribute object at 0xb7b...
MetaAttribute type = <EaseXML.main.MetaAttribute object at 0xb7b8c32c>

Class Variable Details

__name__

Type:
str
Value:
'Element'                                                              

__nodes__

Type:
dict
Value:
{'complexType': <EaseXML.Nodes.ItemNode object at 0xb7b8c16c>,
 'maxOccurs': <EaseXML.Attributes.StringAttribute object at 0xb7b8c1ac\
>,
 'minOccurs': <EaseXML.Attributes.IntegerAttribute object at 0xb7b8c28\
c>,
 'name': <EaseXML.Attributes.StringAttribute object at 0xb7dab4ac>,
 'ref': <EaseXML.Attributes.StringAttribute object at 0xb7b8c18c>,
 'simpleType': <EaseXML.Nodes.ItemNode object at 0xb7b8c22c>,
...                                                                    

__ns_nodes__

Type:
dict
Value:
{}                                                                     

complexType

Type:
MetaAttribute
Value:
<EaseXML.main.MetaAttribute object at 0xb7b8c42c>                      

maxOccurs

Type:
MetaAttribute
Value:
<EaseXML.main.MetaAttribute object at 0xb7b8c3ac>                      

minOccurs

Type:
MetaAttribute
Value:
<EaseXML.main.MetaAttribute object at 0xb7b8c2cc>                      

name

Type:
MetaAttribute
Value:
<EaseXML.main.MetaAttribute object at 0xb7b8c1ec>                      

ref

Type:
MetaAttribute
Value:
<EaseXML.main.MetaAttribute object at 0xb7b8c3cc>                      

simpleType

Type:
MetaAttribute
Value:
<EaseXML.main.MetaAttribute object at 0xb7b8c2ac>                      

type

Type:
MetaAttribute
Value:
<EaseXML.main.MetaAttribute object at 0xb7b8c32c>                      

Generated by Epydoc 2.1 on Sun Dec 12 17:20:24 2004 http://epydoc.sf.net