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

Quick Search    Search Deep

org.apache.hivemind.schema
Interface AttributeModel  view AttributeModel download AttributeModel.java

All Superinterfaces:
org.apache.hivemind.parse.AnnotationHolder, org.apache.hivemind.Locatable

public interface AttributeModel
extends org.apache.hivemind.Locatable, org.apache.hivemind.parse.AnnotationHolder

Part of a Schema, used to specify an attribute allowed within an ElementModel.


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.
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 
Methods inherited from interface org.apache.hivemind.parse.AnnotationHolder
getAnnotation, setAnnotation
 

Method Detail

getName

public java.lang.String getName()
The name of the attribute.


isRequired

public boolean isRequired()
Returns true if the attribute is required (must be specified). Otherwise, the attribute is optional and may be omitted.


getTranslator

public java.lang.String getTranslator()
Returns the translator used to convert the attribute value. This is used to locate a Translator.


isUnique

public boolean isUnique()
Returns true if the attribute is supposed to be considered unique in relation to the configuration point.