Home | Trees | Index | Help |
---|
Package EaseXML :: Module Node :: Class Node |
|
object
--+
|
Node
ChoiceNode
,
CommentNode
,
ItemNode
,
ListNode
,
ProcessingInstructionNode
,
RawNode
,
TextNode
This is the base class for XMLObject's content. Each node has:
For each of these properties, there are getters and setters.
xmlrepr
is the method responsible of giving a string representing
the node. User defined nodes should override it.getValueFromDom
is used to build a Node given its DOM tree.checkType
is responsible for node type checking during assignment.
It returns True when assignment is legitim, False either.Method Summary | |
---|---|
__init__(self,
main,
itemType,
default,
optional,
noLimit,
name)
| |
Type checking. | |
getDefaultValue(self)
| |
getItemType(self)
| |
getName(self)
| |
getParentType(self)
| |
getRegistry(self)
| |
getType(self)
| |
getValue(self)
| |
getValueFromDom(self,
dom,
attrName,
**kw)
| |
isMain(self)
| |
isNoLimit(self)
| |
isOptional(self)
| |
resetValue(self)
| |
setDefaultValue(self,
default)
| |
setItemType(self,
type)
| |
setMain(self,
m)
| |
setName(self,
name)
| |
setNoLimit(self,
val)
| |
setOptional(self,
val)
| |
setParentType(self,
parentType)
| |
setRegistry(self,
reg)
| |
setType(self,
type)
| |
setValue(self,
value)
| |
XML representation of the Node | |
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 |
---|
checkType(self, val)Type checking.
|
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 |