| Trees | Index | Help |
|---|
| Module BasicClasses :: Class FormulaNode |
|
object --+
|
BIObject --+
|
object --+ |
| |
BIXMLWriteable --+
|
FormulaNode
EntityNode,
RelNode| Method Summary | |
|---|---|
__init__(self,
oStack,
attrs,
**args)
| |
| integer |
Add argument to the list of arguments of this formula node. |
computeXMLArgs(self)
| |
Return a list of all entities used as a text binding in this node and, if recursive==True, in the subtree rooted by this node. | |
Return True if the formula node represents a predicate
(i.e. | |
Return True if the formula node represents a predicate
(i.e. | |
True if this formula node has arguments, that is, if it is not a leaf in the formula tree. | |
Resolve entityId into an Entity and set the entity as the formula
node text binding entity. | |
writeXMLNestedItems(self,
out,
indent)
| |
| Inherited from BIXMLWriteable | |
Outputs the complete XML representation of the given object. | |
Prints the closing tag of the object: </tag>. | |
Writes opening tag into the XML output. | |
Computes the string representation of the object's attributes, which are included into the XML tag. | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
| Instance Variable Summary | |
|---|---|
| list | arguments: The arguments (children) of this formula node. |
Entity |
entity: The Entity used as text binding for this
formula node. |
| Class Variable Summary | |
|---|---|
| Inherited from BIObject | |
NoneType |
XMLTag = None |
| Inherited from BIXMLWriteable | |
list |
persistentAttrs: The list of attributes to be included in the XML output. |
| Method Details |
|---|
addArgument(self, argument)Add argument to the list of arguments of this formula node.
|
getEntities(self, recursive=False)Return a list of all entities used as a text binding in this node and, ifrecursive==True, in the subtree rooted by this
node.
|
isEntity(self)ReturnTrue if the formula node represents a predicate
(i.e. relationship). In the FormulaNode class, this method
returns False. It overriden in the EntityNode
class inherited from FormulaNode to return
True.
|
isPredicate(self)ReturnTrue if the formula node represents a predicate
(i.e. relationship). In the FormulaNode class, this method
returns False. It overriden in the relationship node
classes inherited from FormulaNode to return
True.
|
nestedItemsPresent(self)True if this formula node has arguments, that is, if it is not a leaf in the formula tree. |
setEntity(self, entityId)Resolve entityId into anEntity and set the entity as the formula
node text binding entity.
|
| Instance Variable Details |
|---|
argumentsThe arguments (children) of this formula node. This list remains empty for leaves in the formula tree, that is, theEntityNodes.
|
entityTheEntity used as text binding for this
formula node. In the rare cases when the formula node does not have a
text binding, the entity is set to None.
|
| Trees | Index | Help |
|---|
| Generated by Epydoc 2.0 on Tue Nov 21 15:32:22 2006 | http://epydoc.sf.net |