org.apache.shale.clay.parser.builder.chain
Class BuilderRuleContext

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by org.apache.commons.chain.impl.ContextBase
              extended by org.apache.shale.clay.parser.builder.chain.BuilderRuleContext
All Implemented Interfaces:
Serializable, Cloneable, Map, Context

public class BuilderRuleContext
extends ContextBase

This context is used by the BuilderFactory to invoke the Globals.FIND_BUILDER_COMMAND_NAME chain passing this context. When the chain has stopped, the context will contain the Builder needed to convert the html Node into a ElementBean.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
BuilderRuleContext()
           
 
Method Summary
 Builder getBuilder()
           Returns the target Builder.
 Node getNode()
           Returns the current html Node.
 void setBuilder(Builder builder)
           Sets the target Builder.
 void setNode(Node node)
           Sets the current html Node.
 
Methods inherited from class org.apache.commons.chain.impl.ContextBase
clear, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, values
 
Methods inherited from class java.util.HashMap
clone, containsKey, size
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, equals, hashCode, size
 

Constructor Detail

BuilderRuleContext

public BuilderRuleContext()
Method Detail

getNode

public Node getNode()

Returns the current html Node.

Returns:
current node

setNode

public void setNode(Node node)

Sets the current html Node.

Parameters:
node - current html node

getBuilder

public Builder getBuilder()

Returns the target Builder.

Returns:
assigned builder

setBuilder

public void setBuilder(Builder builder)

Sets the target Builder.

Parameters:
builder - assigned to the node


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.