| Home | Trees | Index | Help |
|---|
| Package EaseXML :: Module Nodes :: Class ItemNode |
|
object--+ |Node--+ | ItemNode
Class used to refer to an existing XMLObject type. Suppose you have an XMLObject type like this one:
class FooBar(XMLObject):
glop = StringAttribute()
You can then use it in other XMLObjects:
class Blah(XMLObject):
fb = ItemNode('FooBar')
blah = Blah( fb = FooBar(glop = 'HelloWorld') )
blah.toXml() would output:
<Blah>
<FooBar glop="HelloWorld" />
</Blah>
optional keyword specifies wether the Item is mandatory or not.
| Method Summary | |
|---|---|
__init__(self,
itemType,
default,
optional,
main)
| |
getValueFromDom(self,
dom,
attrName,
**kw)
| |
XML representation of the Node | |
| Inherited from Node | |
Type checking. | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Method Details |
|---|
xmlrepr(self, parentInstance=None)XML representation of the Node Returns a string representing the Node as XML data.
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Sun Dec 12 17:20:24 2004 | http://epydoc.sf.net |