| Home | Trees | Index | Help |
|---|
object --+
|
ParserObj
GObjgnue.common.definitions.GParser.
| Method Summary | |
|---|---|
__init__(self,
parent,
type)
| |
Set the action attribute of a given object to the specified action. | |
Return a XML representation of the object. | |
Get the contents of this object. | |
Return a compareable and identifying id of an object within a tree. | |
Set attributes loaded by GParser. | |
Add an object to the list of children | |
Assign all attributes from a given object to this one. | |
Build an object tree representing the difference between two object trees. | |
Return a XML representation of the object. | |
Moves downward though the children of an object till it finds the child with the specified name. | |
Moves downward through the children of an object till it finds the child of the specified type. | |
Find all children of a specific type. | |
Moves upward though the parents of an object till it finds the parent of the specified type. | |
Returns the content of any GContent objects that are children of this object. | |
Return a useful description of the object. | |
| any |
Returns the immediate parent of an object instance in a GObj tree. |
Merge another object tree into this tree. | |
Set the immediate parent of an object instance in a GObj tree | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
Return repr(x)... | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... | |
| Method Details |
|---|
__init__(self,
parent=None,
type='_NotSet_')
|
_diffActionWalker_(self, obj, action)Set the action attribute of a given object to the specified action.
|
_dumpXML_(self, lookupDict, treeDump, gap, xmlnamespaces, textEncoding, stripPrefixes, escape)Return a XML representation of the object.
|
_getAsContents_(self)Get the contents of this object. Usually this will be used by getChildrenAsContents ().
|
_id_(self, maxIdLength=None)Return a compareable and identifying id of an object within a tree. Usually this is it's name (if available) or it's object type (as given in the constructor).
|
_set_initial_attributes_(self, attributes)Set attributes loaded by GParser.
|
addChild(self, child)Add an object to the list of children
|
assign(self, source, recursive=False)Assign all attributes from a given object to this one. If the recursive option is given, all of the source's children will be duplicated and assigned to this object.
|
diff(self, goal, maxIdLength=None)Build an object tree representing the difference between two object trees.
|
dumpXML(self, lookupDict, treeDump=False, gap=' ', xmlnamespaces={}, textEncoding='<locale>', stripPrefixes=None, escape=True)Return a XML representation of the object.
|
findChildNamed(self, name, childType=None)Moves downward though the children of an object till it finds the child with the specified name.
|
findChildOfType(self, childType, includeSelf=True, allowAllChildren=False)Moves downward through the children of an object till it finds the child of the specified type.
|
findChildrenOfType(self, childType, includeSelf=True, allowAllChildren=False)Find all children of a specific type.
|
findParentOfType(self, parentType, includeSelf=True)Moves upward though the parents of an object till it finds the parent of the specified type.
|
getChildrenAsContent(self)Returns the content of any GContent objects that are children of this object.
|
getDescription(self)Return a useful description of the object. Currently used by GNUe Designer. |
getParent(self)Returns the immediate parent of an object instance in a GObj tree.
|
merge(self, other, maxIdLength=None, overwrite=False)Merge another object tree into this tree. All attributes and child nodes from the other object are merged into this object. If any child node exists in both objects with the same name (id), the merge is done recursively.
|
setParent(self, newParent)Set the immediate parent of an object instance in a GObj tree
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Aug 28 23:05:08 2008 | http://epydoc.sf.net |