org.apache.hivemind.schema.rules
Class CreateObjectRule

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

public class CreateObjectRule
extends BaseRule

Basic Rule for creating a new object. Created from the the <create-object> element. Generally, this is the first rule in a sequence of rules.

Author:
Howard Lewis Ship

Constructor Summary
CreateObjectRule()
           
CreateObjectRule(java.lang.String className)
           
 
Method Summary
 void begin(SchemaProcessor processor, Element element)
          Creates the new object and pushes it onto the processor's stack.
 void end(SchemaProcessor processor, Element element)
          Pops the object off of the processor's stack.
 java.lang.String getClassName()
           
 void setClassName(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

CreateObjectRule

public CreateObjectRule()

CreateObjectRule

public CreateObjectRule(java.lang.String className)
Method Detail

begin

public void begin(SchemaProcessor processor,
                  Element element)
Creates the new object and pushes it onto the processor's stack. If the object implement LocationHolder then the Location of the element is assigned to the object.

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

end

public void end(SchemaProcessor processor,
                Element element)
Pops the object off of the processor's stack.

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

getClassName

public java.lang.String getClassName()

setClassName

public void setClassName(java.lang.String string)