org.umber.catalan.transform.xml
Class DirectiveStack.Directive

java.lang.Object
  extended byorg.umber.catalan.transform.xml.DirectiveStack.Directive
Direct Known Subclasses:
DirectiveStack.Attribute, DirectiveStack.EndElement, DirectiveStack.Pcdata, DirectiveStack.Repeat, DirectiveStack.StartElement
Enclosing class:
DirectiveStack

public abstract static class DirectiveStack.Directive
extends java.lang.Object

A single operation to perform on a node while creating a Bellows Datum tree from a list of nodes.


Constructor Summary
DirectiveStack.Directive(java.lang.Object value)
          Creates a new instance of Directive.
 
Method Summary
 java.lang.Object getValue()
          Retrieves the static value of this directive.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectiveStack.Directive

public DirectiveStack.Directive(java.lang.Object value)
Creates a new instance of Directive. The optional value parameter provides a place to include static text for the Directive. For example, the StartElement Directive might use value to hold the Datum type (the XML element name) if it does not change between nodes. If value is null, the processor should use the contents of the node for the operation, instead of value.

Parameters:
value - the optional Directive text
Method Detail

getValue

public java.lang.Object getValue()
Retrieves the static value of this directive. A null implies that the NodeProcessor should pull the value from the incoming data, not from the Directive object.

Returns:
the directive value