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
AttributeModel s. |
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, visibleToModule
getAnnotation, setAnnotation
getLocation, setLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getElementModel
getAnnotation, setAnnotation
getLocation
public ElementModelImpl()
public java.lang.String getElementName()
ElementModel
getElementName
in interface ElementModel
public void setElementName(java.lang.String string)
public void addAttributeModel(AttributeModel attributeModel)
public java.util.List getAttributeModels()
ElementModel
AttributeModel
s. The List is unmodifiable and won't be null, but
may be empty.getAttributeModels
in interface ElementModel
public AttributeModel getAttributeModel(java.lang.String name)
getAttributeModel
in interface ElementModel
public void setKeyAttribute(java.lang.String keyAttribute)
public java.lang.String getKeyAttribute()
ElementModel
getKeyAttribute
in interface ElementModel
public java.util.List getRules()
ElementModel
Rule
. The List is unmodifiable and
won't but null, but could be empty.getRules
in interface ElementModel
public java.lang.String getContentTranslator()
ElementModel
getContentTranslator
in interface ElementModel
public void setContentTranslator(java.lang.String string)