org.apache.hivemind.schema.impl
Class AttributeModelImpl

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.hivemind.parse.BaseAnnotationHolder
          extended by org.apache.hivemind.schema.impl.AttributeModelImpl
All Implemented Interfaces:
Locatable, LocationHolder, AnnotationHolder, AttributeModel

public final class AttributeModelImpl
extends BaseAnnotationHolder
implements AttributeModel

Implementation of AttributeModel.

Author:
Howard Lewis Ship

Constructor Summary
AttributeModelImpl()
           
 
Method Summary
 java.lang.String getName()
          The name of the attribute.
 java.lang.String getTranslator()
          Returns the translator used to convert the attribute value.
 boolean isRequired()
          Returns true if the attribute is required (must be specified).
 boolean isUnique()
          Returns true if the attribute is supposed to be considered unique in relation to the configuration point.
 void setName(java.lang.String string)
           
 void setRequired(boolean b)
           
 void setTranslator(java.lang.String string)
           
 void setUnique(boolean b)
           
 
Methods inherited from class org.apache.hivemind.parse.BaseAnnotationHolder
getAnnotation, setAnnotation
 
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
 
Methods inherited from interface org.apache.hivemind.parse.AnnotationHolder
getAnnotation, setAnnotation
 

Constructor Detail

AttributeModelImpl

public AttributeModelImpl()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: AttributeModel
The name of the attribute.

Specified by:
getName in interface AttributeModel

isRequired

public boolean isRequired()
Description copied from interface: AttributeModel
Returns true if the attribute is required (must be specified). Otherwise, the attribute is optional and may be omitted.

Specified by:
isRequired in interface AttributeModel

setName

public void setName(java.lang.String string)

setRequired

public void setRequired(boolean b)

setUnique

public void setUnique(boolean b)

isUnique

public boolean isUnique()
Description copied from interface: AttributeModel
Returns true if the attribute is supposed to be considered unique in relation to the configuration point.

Specified by:
isUnique in interface AttributeModel
Returns:
True if the attribute must be unique with respect to it's xpath, otherwise false

getTranslator

public java.lang.String getTranslator()
Description copied from interface: AttributeModel
Returns the translator used to convert the attribute value. This is used to locate a Translator.

Specified by:
getTranslator in interface AttributeModel

setTranslator

public void setTranslator(java.lang.String string)