org.apache.hivemind.schema.impl
Class ElementModelImpl
java.lang.Object
|
+--org.apache.hivemind.impl.BaseLocatable
|
+--org.apache.hivemind.schema.impl.SchemaImpl
|
+--org.apache.hivemind.schema.impl.ElementModelImpl
- All Implemented Interfaces:
- ElementModel, Locatable, LocationHolder, Schema
- public class ElementModelImpl
- extends SchemaImpl
- implements ElementModel
Implementation of ElementModel
.
- Author:
- Howard Lewis Ship
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
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)