java.lang.Object
org.apache.hivemind.impl.BaseLocatable
org.apache.hivemind.parse.BaseAnnotationHolder
org.apache.hivemind.schema.impl.AttributeModelImpl
- All Implemented Interfaces:
- org.apache.hivemind.parse.AnnotationHolder, org.apache.hivemind.schema.AttributeModel, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder
- public final class AttributeModelImpl
- extends org.apache.hivemind.parse.BaseAnnotationHolder
- implements org.apache.hivemind.schema.AttributeModel
Implementation of org.apache.hivemind.schema.AttributeModel.
Fields inherited from class org.apache.hivemind.impl.BaseLocatable |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_name
private java.lang.String _name
_required
private boolean _required
_unique
private boolean _unique
_translator
private java.lang.String _translator
AttributeModelImpl
public AttributeModelImpl()
getName
public java.lang.String getName()
- Description copied from interface:
org.apache.hivemind.schema.AttributeModel
- The name of the attribute.
- Specified by:
getName
in interface org.apache.hivemind.schema.AttributeModel
isRequired
public boolean isRequired()
- Description copied from interface:
org.apache.hivemind.schema.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 org.apache.hivemind.schema.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:
org.apache.hivemind.schema.AttributeModel
- Returns true if the attribute is supposed to be considered unique in relation to the configuration point.
- Specified by:
isUnique
in interface org.apache.hivemind.schema.AttributeModel
getTranslator
public java.lang.String getTranslator()
- Description copied from interface:
org.apache.hivemind.schema.AttributeModel
- Returns the translator used to convert the attribute value. This is used
to locate a org.apache.hivemind.schema.Translator.
- Specified by:
getTranslator
in interface org.apache.hivemind.schema.AttributeModel
setTranslator
public void setTranslator(java.lang.String string)