org.apache.hivemind.schema.rules
Class PushAttributeRule

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.hivemind.schema.rules.BaseRule
          extended by org.apache.hivemind.schema.rules.PushAttributeRule
All Implemented Interfaces:
Locatable, LocationHolder, Rule

public class PushAttributeRule
extends BaseRule

A rule that reads an attribute, passes it through a translator, then pushes the result onto the processor stack.

Author:
Howard Lewis Ship

Constructor Summary
PushAttributeRule()
           
 
Method Summary
 void begin(SchemaProcessor processor, Element element)
          Uses the translator to convert the specified attribute into an object and pushes that object onto the processor stack.
 void end(SchemaProcessor processor, Element element)
          Invokes SchemaProcessor.pop().
 java.lang.String getAttributeName()
           
 void setAttributeName(java.lang.String string)
           
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

PushAttributeRule

public PushAttributeRule()
Method Detail

begin

public void begin(SchemaProcessor processor,
                  Element element)
Uses the translator to convert the specified attribute into an object and pushes that object onto the processor stack.

Specified by:
begin in interface Rule
Overrides:
begin in class BaseRule

end

public void end(SchemaProcessor processor,
                Element element)
Invokes SchemaProcessor.pop().

Specified by:
end in interface Rule
Overrides:
end in class BaseRule

setAttributeName

public void setAttributeName(java.lang.String string)

getAttributeName

public java.lang.String getAttributeName()