Module BasicClasses :: Class RelNode
[show private | hide private]
[frames | no frames]

Class RelNode

    object --+        
             |        
      BIObject --+    
                 |    
    object --+   |    
             |   |    
BIXMLWriteable --+    
                 |    
       FormulaNode --+
                     |
                    RelNode


A formula node which represents a relationship among its arguments. The arguments, formula nodes themselves, are in the instance variable arguments. The text binding entity of the predicate, if any, is in the instance variable entity.
Method Summary
  __init__(self, oStack, parser, attrs, **args)
  computeXMLArgs(self)
  getText(self, tBinding, descend)
  isPredicate(self)
True.
    Inherited from FormulaNode
integer addArgument(self, argument)
Add argument to the list of arguments of this formula node.
  getEntities(self, recursive)
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.
  isEntity(self)
Return True if the formula node represents a predicate (i.e.
  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 an Entity and set the entity as the formula node text binding entity.
  writeXMLNestedItems(self, out, indent)
    Inherited from BIXMLWriteable
  writeXML(self, out, indent, **kwArgs)
Outputs the complete XML representation of the given object.
  writeXMLClose(self, out, indent)
Prints the closing tag of the object: </tag>.
  writeXMLOpen(self, out, indent, closing)
Writes opening tag into the XML output.
  XMLAttrs(self)
Computes the string representation of the object's attributes, which are included into the XML tag.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T

Instance Variable Summary
OntologyClasses.Predicate predicate: A Predicate instance representing the predicate of the relationship.
    Inherited from FormulaNode
list arguments: The arguments (children) of this formula node.
Entity entity: The Entity used as text binding for this formula node.

Class Variable Summary
str XMLTag = 'relnode'
    Inherited from BIXMLWriteable
list persistentAttrs: The list of attributes to be included in the XML output.

Method Details

isPredicate(self)

True.
Overrides:
BasicClasses.FormulaNode.isPredicate

Instance Variable Details

predicate

A Predicate instance representing the predicate of the relationship.
Type:
OntologyClasses.Predicate

Class Variable Details

XMLTag

Type:
str
Value:
'relnode'                                                              

Generated by Epydoc 2.0 on Tue Nov 21 15:32:22 2006 http://epydoc.sf.net