org.apache.hivemind.schema.rules
Class ReadAttributeRule
java.lang.Object
|
+--org.apache.hivemind.impl.BaseLocatable
|
+--org.apache.hivemind.schema.rules.BaseRule
|
+--org.apache.hivemind.schema.rules.ReadAttributeRule
- All Implemented Interfaces:
- Locatable, LocationHolder, Rule
- public class ReadAttributeRule
- extends BaseRule
Reads an attribute of an element and uses it to set a property of the top object
on the stack. Created from the <read-attribute>
element.
- Author:
- Howard Lewis Ship
Methods inherited from class org.apache.hivemind.schema.rules.BaseRule |
end |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadAttributeRule
public ReadAttributeRule()
ReadAttributeRule
public ReadAttributeRule(java.lang.String attributeName,
java.lang.String propertyName,
java.lang.String translator,
Location location)
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
getAttributeName
public java.lang.String getAttributeName()
getPropertyName
public java.lang.String getPropertyName()
getSkipIfNull
public boolean getSkipIfNull()
setAttributeName
public void setAttributeName(java.lang.String string)
setPropertyName
public void setPropertyName(java.lang.String string)
setSkipIfNull
public void setSkipIfNull(boolean b)
setTranslator
public void setTranslator(java.lang.String string)