org.apache.hivemind.schema.impl
Class ElementModelImpl
java.lang.Object
org.apache.hivemind.impl.BaseLocatable
org.apache.hivemind.parse.BaseAnnotationHolder
org.apache.hivemind.schema.impl.SchemaImpl
org.apache.hivemind.schema.impl.ElementModelImpl
- All Implemented Interfaces:
- Locatable, LocationHolder, AnnotationHolder, ElementModel, Schema
public class ElementModelImpl
- extends SchemaImpl
- implements ElementModel
Implementation of ElementModel
.
- Author:
- Howard Lewis Ship
Methods inherited from class org.apache.hivemind.schema.impl.SchemaImpl |
addElementModel, canInstancesBeKeyed, getDefiningModule, getElementModel, getId, getModuleId, getVisibility, setId, setModule, setVisibility, validateKeyAttributes, visibleToModule |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElementModelImpl
public ElementModelImpl()
getElementName
public java.lang.String getElementName()
- Description copied from interface:
ElementModel
- Returns the name of the element.
- Specified by:
getElementName
in interface ElementModel
setElementName
public void setElementName(java.lang.String string)
addAttributeModel
public void addAttributeModel(AttributeModel attributeModel)
getAttributeModels
public java.util.List getAttributeModels()
- Description copied from interface:
ElementModel
- Returns a List of
AttributeModel
s. The List is unmodifiable and won't be null, but
may be empty.
- Specified by:
getAttributeModels
in interface ElementModel
getAttributeModel
public AttributeModel getAttributeModel(java.lang.String name)
- Specified by:
getAttributeModel
in interface ElementModel
setKeyAttribute
public void setKeyAttribute(java.lang.String keyAttribute)
getKeyAttribute
public java.lang.String getKeyAttribute()
- Description copied from interface:
ElementModel
- Returns the name of the attribute whose value can be used as a key for an instance of an
Element with this ElementModel. This key is usually used to index a configuration
contribution inside a Map.
- Specified by:
getKeyAttribute
in interface ElementModel
addRule
public void addRule(Rule rule)
getRules
public java.util.List getRules()
- Description copied from interface:
ElementModel
- Returns a List of
Rule
. The List is unmodifiable and
won't but null, but could be empty.
- Specified by:
getRules
in interface ElementModel
getContentTranslator
public java.lang.String getContentTranslator()
- Description copied from interface:
ElementModel
- Returns the translator used for character content within the body of the element; may return
null.
- Specified by:
getContentTranslator
in interface ElementModel
setContentTranslator
public void setContentTranslator(java.lang.String string)