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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.apache.hivemind.impl.BaseLocatable
      extended byorg.apache.hivemind.schema.rules.BaseRule
          extended byorg.apache.hivemind.schema.rules.ReadAttributeRule
All Implemented Interfaces:
org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, org.apache.hivemind.schema.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.


Field Summary
private  java.lang.String _attributeName
           
private  java.lang.String _propertyName
           
private  boolean _skipIfNull
           
private  java.lang.String _translator
           
private static org.apache.commons.logging.Log LOG
           
 
Fields inherited from class org.apache.hivemind.impl.BaseLocatable
 
Constructor Summary
ReadAttributeRule()
           
ReadAttributeRule(java.lang.String attributeName, java.lang.String propertyName, java.lang.String translator, org.apache.hivemind.Location location)
           
 
Method Summary
 void begin(org.apache.hivemind.schema.SchemaProcessor processor, org.apache.hivemind.Element element)
          Does nothing; subclasses may override.
 java.lang.String getAttributeName()
           
 java.lang.String getPropertyName()
           
 boolean getSkipIfNull()
           
 java.lang.String getTranslator()
           
 void setAttributeName(java.lang.String string)
           
 void setPropertyName(java.lang.String string)
           
 void setSkipIfNull(boolean b)
           
 void setTranslator(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
 

Field Detail

LOG

private static final org.apache.commons.logging.Log LOG

_attributeName

private java.lang.String _attributeName

_propertyName

private java.lang.String _propertyName

_skipIfNull

private boolean _skipIfNull

_translator

private java.lang.String _translator
Constructor Detail

ReadAttributeRule

public ReadAttributeRule()

ReadAttributeRule

public ReadAttributeRule(java.lang.String attributeName,
                         java.lang.String propertyName,
                         java.lang.String translator,
                         org.apache.hivemind.Location location)
Method Detail

begin

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

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

getAttributeName

public java.lang.String getAttributeName()

getPropertyName

public java.lang.String getPropertyName()

getSkipIfNull

public boolean getSkipIfNull()

getTranslator

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

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)