org.apache.hivemind.schema.rules
Class PushContentRule

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.PushContentRule
All Implemented Interfaces:
Locatable, LocationHolder, Rule

public class PushContentRule
extends BaseRule
implements Rule

A rule that reads the element's content, passes it through the content translator, then pushes the result onto the processor stack.

Since:
1.1
Author:
Knut Wannheden

Constructor Summary
PushContentRule()
           
 
Method Summary
 void begin(SchemaProcessor processor, Element element)
          Uses the content translator to convert the element content into an object and pushes that object onto the processor stack.
 void end(SchemaProcessor processor, Element element)
          Invokes SchemaProcessor.pop().
 
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

PushContentRule

public PushContentRule()
Method Detail

begin

public void begin(SchemaProcessor processor,
                  Element element)
Uses the content translator to convert the element content 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