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

Quick Search    Search Deep

org.apache.hivemind.schema.impl
Class AttributeModelImpl  view AttributeModelImpl download AttributeModelImpl.java

java.lang.Object
  extended byorg.apache.hivemind.impl.BaseLocatable
      extended byorg.apache.hivemind.parse.BaseAnnotationHolder
          extended byorg.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.


Field Summary
private  java.lang.String _name
           
private  boolean _required
           
private  java.lang.String _translator
           
private  boolean _unique
           
 
Fields inherited from class org.apache.hivemind.parse.BaseAnnotationHolder
 
Fields inherited from class org.apache.hivemind.impl.BaseLocatable
 
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
 

Field Detail

_name

private java.lang.String _name

_required

private boolean _required

_unique

private boolean _unique

_translator

private java.lang.String _translator
Constructor Detail

AttributeModelImpl

public AttributeModelImpl()
Method Detail

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)