org.apache.hivemind.schema.rules
Class SetParentRule

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

public class SetParentRule
extends BaseRule

Used to set a property of the child object to its parent object. The child object is the top object on the SchemaProcessor stack, the parent object is the next object in. Created from the <set-parent> element.

Author:
Howard Lewis Ship

Constructor Summary
SetParentRule()
           
 
Method Summary
 void begin(SchemaProcessor processor, Element element)
          Does nothing; subclasses may override.
 java.lang.String getPropertyName()
           
 void setPropertyName(java.lang.String string)
           
 
Methods inherited from class org.apache.hivemind.schema.rules.BaseRule
end
 
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

SetParentRule

public SetParentRule()
Method Detail

getPropertyName

public java.lang.String getPropertyName()
Since:
1.1

setPropertyName

public void setPropertyName(java.lang.String string)

begin

public void begin(SchemaProcessor processor,
                  Element element)
Description copied from class: BaseRule
Does nothing; subclasses may override.

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