public interface IModelElement
| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTIONS_PROPERTY_LOCALE |
static String |
DESCRIPTIONS_XML_TAG |
static String |
DESCRIPTIONS_XML_WRAPPER_TAG |
static String |
EXTENSION_PROPERTIES_PROPERTY_ID |
static String |
EXTENSION_PROPERTIES_PROPERTY_NULL |
static String |
EXTENSION_PROPERTIES_XML_TAG |
static String |
EXTENSION_PROPERTIES_XML_WRAPPER_TAG |
static String |
LABELS_PROPERTY_LOCALE |
static String |
LABELS_PROPERTY_PLURAL_VALUE |
static String |
LABELS_PROPERTY_VALUE |
static String |
LABELS_XML_TAG |
static String |
LABELS_XML_WRAPPER_TAG |
static String |
PROPERTY_NAME |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription(Locale locale)
Returns the description for the given locale.
|
Set<String> |
getExtensionPropertyIds()
Returns a set of the extension property ids defined for this element.
|
Object |
getExtensionPropertyValue(String propertyId) |
String |
getLabel(Locale locale)
Returns the label for the given locale.
|
String |
getName()
Returns the name of this model type.
|
IRuntimeRepository |
getRepository()
Returns the repository this model element belongs to.
|
void |
initExtPropertiesFromXml(XMLStreamReader parser)
Initializes the model element's extension properties with the data stored in the xml element
at the parser's current position.
|
void |
initFromXml(XMLStreamReader parser)
Initializes the model element's state with the data stored in the xml element at the parser's
current position.
|
static final String PROPERTY_NAME
static final String DESCRIPTIONS_XML_TAG
static final String DESCRIPTIONS_XML_WRAPPER_TAG
static final String DESCRIPTIONS_PROPERTY_LOCALE
static final String LABELS_XML_TAG
static final String LABELS_XML_WRAPPER_TAG
static final String LABELS_PROPERTY_LOCALE
static final String LABELS_PROPERTY_VALUE
static final String LABELS_PROPERTY_PLURAL_VALUE
static final String EXTENSION_PROPERTIES_XML_TAG
static final String EXTENSION_PROPERTIES_XML_WRAPPER_TAG
static final String EXTENSION_PROPERTIES_PROPERTY_ID
static final String EXTENSION_PROPERTIES_PROPERTY_NULL
Object getExtensionPropertyValue(String propertyId) throws IllegalArgumentException
propertyId - the id of the desired extension property. Returns the value of the
extension property defined by the given propertyId or
null if the extension property's isNull attribute is
true.IllegalArgumentException - if no such property exists.Set<String> getExtensionPropertyIds()
String getName()
void initFromXml(XMLStreamReader parser) throws XMLStreamException
XMLStreamExceptionvoid initExtPropertiesFromXml(XMLStreamReader parser) throws XMLStreamException
<ExtensionProperties>.XMLStreamExceptionIRuntimeRepository getRepository()
null.String getLabel(Locale locale)
Returns the element's name if no label exists for the given locale.
Copyright © 2014. All rights reserved.