|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IModelElement
Base Interface for all model elements.
| Field Summary | |
|---|---|
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
|
| Method Summary | |
|---|---|
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. |
| Field Detail |
|---|
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
| Method Detail |
|---|
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
XMLStreamException
void 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.
String getDescription(Locale locale)
Returns an empty string if no description exists for the given locale.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||