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