Package gnue :: Package designer :: Package base :: Module parsertoobj :: Class BaseObject
[show private | hide private]

Type BaseObject

object --+    
         |    
 ParserObj --+
             |
            BaseObject


This class is used by ProxyObjectFactory. If used by itself, you will get plenty of attribute errors as it depends on attributes set on ProxyObject.
Method Summary
  __init__(self, parent, **kwargs)
  __getitem__(self, name)
  __new__(cls, *args, **kwargs)
(Static method)
  __setitem__(self, name, value)
  create_required_children(self)
Create any of the "required" child tags
  get(self, name, default)
    Inherited from ParserObj
  _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.
  _id_(self, maxIdLength)
Return a compareable and identifying id of an object within a tree.
  _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)
Assign all attributes from a given object to this one.
  diff(self, goal, maxIdLength)
Build an object tree representing the difference between two object trees.
  dumpXML(self, lookupDict, treeDump, gap, xmlnamespaces, textEncoding, stripPrefixes, escape)
Return a XML representation of the object.
  findChildNamed(self, name, childType)
Moves downward though the children of an object till it finds the child with the specified name.
  findChildOfType(self, childType, includeSelf, allowAllChildren)
Moves downward through the children of an object till it finds the child of the specified type.
  findChildrenOfType(self, childType, includeSelf, allowAllChildren)
Find all children of a specific type.
  findParentOfType(self, parentType, includeSelf)
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.
any getParent(self)
Returns the immediate parent of an object instance in a GObj tree.
  merge(self, other, maxIdLength, overwrite)
Merge another object tree into this tree.
  setParent(self, newParent)
Set the immediate parent of an object instance in a GObj tree
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
Return hash(x)...
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
Return repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
Return str(x)...

Instance Method Details

__init__(self, parent=None, **kwargs)
(Constructor)

Overrides:
gnue.common.definitions.GParserHelpers.ParserObj.__init__

__getitem__(self, name)
(Indexing operator)

__setitem__(self, name, value)
(Index assignment operator)

create_required_children(self)

Create any of the "required" child tags

get(self, name, default=None)


Static Method Details

__new__(cls, *args, **kwargs)
(Instance creation method)

Overrides:
__builtin__.object.__new__


GNUe Home

Private API

Developer's Corner