java.lang.Object
org.apache.hivemind.impl.BaseLocatable
org.apache.hivemind.schema.rules.BaseRule
org.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.
Fields inherited from class org.apache.hivemind.impl.BaseLocatable |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_className
private java.lang.String _className
CreateObjectRule
public CreateObjectRule()
CreateObjectRule
public CreateObjectRule(java.lang.String className)
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)