public class ElementModelImpl extends SchemaImpl implements ElementModel
ElementModel.| Constructor and Description |
|---|
ElementModelImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributeModel(AttributeModel attributeModel) |
void |
addRule(Rule rule) |
AttributeModel |
getAttributeModel(java.lang.String name) |
java.util.List |
getAttributeModels()
Returns a List of
AttributeModels. |
java.lang.String |
getContentTranslator()
Returns the translator used for character content within the body of the element; may return
null.
|
java.lang.String |
getElementName()
Returns the name of the element.
|
java.lang.String |
getKeyAttribute()
Returns the name of the attribute whose value can be used as a key for an instance of an
Element with this ElementModel.
|
java.util.List |
getRules()
Returns a List of
Rule. |
void |
setContentTranslator(java.lang.String string) |
void |
setElementName(java.lang.String string) |
void |
setKeyAttribute(java.lang.String keyAttribute) |
addElementModel, canInstancesBeKeyed, getDefiningModule, getElementModel, getId, getModuleId, getVisibility, setId, setModule, setVisibility, validateKeyAttributes, visibleToModulegetAnnotation, setAnnotationgetLocation, setLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetElementModelgetAnnotation, setAnnotationgetLocationpublic ElementModelImpl()
public java.lang.String getElementName()
ElementModelgetElementName in interface ElementModelpublic void setElementName(java.lang.String string)
public void addAttributeModel(AttributeModel attributeModel)
public java.util.List getAttributeModels()
ElementModelAttributeModels. The List is unmodifiable and won't be null, but
may be empty.getAttributeModels in interface ElementModelpublic AttributeModel getAttributeModel(java.lang.String name)
getAttributeModel in interface ElementModelpublic void setKeyAttribute(java.lang.String keyAttribute)
public java.lang.String getKeyAttribute()
ElementModelgetKeyAttribute in interface ElementModelpublic java.util.List getRules()
ElementModelRule. The List is unmodifiable and
won't but null, but could be empty.getRules in interface ElementModelpublic java.lang.String getContentTranslator()
ElementModelgetContentTranslator in interface ElementModelpublic void setContentTranslator(java.lang.String string)