story.dbcore.nodes
Class InstanceNode

java.lang.Object
  extended by story.dbcore.nodes.GenericNode
      extended by story.dbcore.nodes.InstanceNode
All Implemented Interfaces:
RenderableObject

public class InstanceNode
extends GenericNode

InstanceNode is an extension of GenericNode for instances of other nodes.


Field Summary
 
Fields inherited from class story.dbcore.nodes.GenericNode
ATT_EXPANSION, ATT_SUBNODETYPE_ID
 
Constructor Summary
InstanceNode(Document doc, NodeRepository parentRepository, NodeConfig config, NodeInstancing definition, LinkRepository linkRepository)
           
 
Method Summary
 NodeInstancing getInstancing()
          Get the instancing that defines this node.
 void redefine(NodeInstancing newDefinition)
          Change the definition of this instance node.
 java.lang.StringBuffer renderAllInformation()
          Render all the information about this node.
 void validate()
          Run the validation routine on the definition.
 
Methods inherited from class story.dbcore.nodes.GenericNode
address, attributeEquals, attributeGreaterThan, attributeModified, directlyLinkedFrom, directlyLinkedFrom, directlyLinksTo, directlyLinksTo, enableAttributeInheritance, getAttributeIDs, getAttributeValue, getDocument, getID, getMaxAttributeLength, getProxy, getRelatedNodes, getRepository, getType, isRelatedTo, numNodesLinkedFrom, numNodesLinksTo, render, renderAttributes, setAttribute, setRepository, unlinkLinkFrom, unlinkLinksFrom, unlinkLinksTo, unlinkLinkTo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceNode

public InstanceNode(Document doc,
                    NodeRepository parentRepository,
                    NodeConfig config,
                    NodeInstancing definition,
                    LinkRepository linkRepository)
             throws Scheherexception
Throws:
Scheherexception
Method Detail

redefine

public void redefine(NodeInstancing newDefinition)
              throws Scheherexception
Change the definition of this instance node. Validates the new definition and throws an exception in case of problem.

Throws:
Scheherexception

renderAllInformation

public java.lang.StringBuffer renderAllInformation()
                                            throws Scheherexception
Render all the information about this node.

Overrides:
renderAllInformation in class GenericNode
Throws:
Scheherexception

getInstancing

public NodeInstancing getInstancing()
                             throws Scheherexception
Get the instancing that defines this node.

Throws:
Scheherexception

validate

public void validate()
              throws Scheherexception
Run the validation routine on the definition. This is done automatically on constrution but is available for revalidation.

Throws:
Scheherexception


Copyright © 2011 David K. Elson. All Rights Reserved.