org.umber.catalan.process.workers.xml
Class DirectiveStack.Attribute

java.lang.Object
  extended byorg.umber.catalan.process.workers.xml.DirectiveStack.Directive
      extended byorg.umber.catalan.process.workers.xml.DirectiveStack.Attribute
Enclosing class:
DirectiveStack

public static class DirectiveStack.Attribute
extends DirectiveStack.Directive

A Directive to create a new attribute (Datum property) inside the current element. The attribute name and/or value can be specified as a static value, or pulled dynamically from the input data stream.


Constructor Summary
DirectiveStack.Attribute(java.lang.String name, java.lang.Object value)
          Creates a new instance of AttributeName.
 
Method Summary
 java.lang.String getName()
          Retrieves the name property of this Attribute directive.
 
Methods inherited from class org.umber.catalan.process.workers.xml.DirectiveStack.Directive
getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectiveStack.Attribute

public DirectiveStack.Attribute(java.lang.String name,
                                java.lang.Object value)
Creates a new instance of AttributeName. If both name and value are specified in the constructor, the static attribute will be created without touching the current node. If only one of them is specified, the current node will be used for whichever is missing. If neither name nor value parameter is specified, the Directive will consume the current node and the following node.

Parameters:
name - the attribute name
value - the attribute value
Method Detail

getName

public java.lang.String getName()
Retrieves the name property of this Attribute directive.

Returns:
the attribute name