Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.hivemind.schema.rules
Class CreateObjectRule  view CreateObjectRule download CreateObjectRule.java

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

public class CreateObjectRule
extends BaseRule

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


Field Summary
private  java.lang.String _className
           
 
Fields inherited from class org.apache.hivemind.impl.BaseLocatable
 
Constructor Summary
CreateObjectRule()
           
CreateObjectRule(java.lang.String className)
           
 
Method Summary
 void begin(org.apache.hivemind.schema.SchemaProcessor processor, org.apache.hivemind.Element element)
          Creates the new object and pushes it onto the processor's stack.
 void end(org.apache.hivemind.schema.SchemaProcessor processor, org.apache.hivemind.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
 

Field Detail

_className

private java.lang.String _className
Constructor Detail

CreateObjectRule

public CreateObjectRule()

CreateObjectRule

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

begin

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

Specified by:
begin in interface org.apache.hivemind.schema.Rule
Overrides:
begin in class BaseRule

end

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

Specified by:
end in interface org.apache.hivemind.schema.Rule
Overrides:
end in class BaseRule

getClassName

public java.lang.String getClassName()

setClassName

public void setClassName(java.lang.String string)