public interface IModelTypeAttribute extends IModelElement
| Modifier and Type | Interface and Description |
|---|---|
static class |
IModelTypeAttribute.AttributeType
Enum defining the possible attribute types.
|
static class |
IModelTypeAttribute.ValueSetType
Enum defining the possible value set types.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_ATTRIBUTE_TYPE |
static String |
PROPERTY_DATATYPE |
static String |
PROPERTY_PRODUCT_RELEVANT |
static String |
PROPERTY_VALUE_SET_TYPE |
static String |
XML_TAG |
static String |
XML_WRAPPER_TAG |
DESCRIPTIONS_PROPERTY_LOCALE, DESCRIPTIONS_XML_TAG, DESCRIPTIONS_XML_WRAPPER_TAG, EXTENSION_PROPERTIES_PROPERTY_ID, EXTENSION_PROPERTIES_PROPERTY_NULL, EXTENSION_PROPERTIES_XML_TAG, EXTENSION_PROPERTIES_XML_WRAPPER_TAG, LABELS_PROPERTY_LOCALE, LABELS_PROPERTY_PLURAL_VALUE, LABELS_PROPERTY_VALUE, LABELS_XML_TAG, LABELS_XML_WRAPPER_TAG, PROPERTY_NAME| Modifier and Type | Method and Description |
|---|---|
IModelTypeAttribute.AttributeType |
getAttributeType() |
Class<?> |
getDatatype() |
IModelType |
getModelType()
Returns the model type this attribute belongs to.
|
Object |
getValue(IModelObject modelObject)
Returns the value of the given model object's attribute identified by this model type
attribute.
|
IModelTypeAttribute.ValueSetType |
getValueSetType()
Returns the type of value set restricting this attribute
|
boolean |
isProductRelevant()
Returns if this attribute is product relevant.
|
void |
setValue(IModelObject modelObject,
Object value)
Sets the given model object's attribute identified by this model type attribute to the given
value.
|
getDescription, getExtensionPropertyIds, getExtensionPropertyValue, getLabel, getName, getRepository, initExtPropertiesFromXml, initFromXmlstatic final String XML_TAG
static final String XML_WRAPPER_TAG
static final String PROPERTY_DATATYPE
static final String PROPERTY_VALUE_SET_TYPE
static final String PROPERTY_ATTRIBUTE_TYPE
static final String PROPERTY_PRODUCT_RELEVANT
IModelType getModelType()
Class<?> getDatatype() throws ClassNotFoundException
Class.ClassNotFoundException - if the datatype's class can not be loaded.IModelTypeAttribute.AttributeType getAttributeType()
IModelTypeAttribute.ValueSetType getValueSetType()
boolean isProductRelevant()
Object getValue(IModelObject modelObject)
modelObject - a model object corresponding to the IModelType this attribute
belongs toIllegalArgumentException - if the model object does not have an attribute fitting this
model type attribute or that attribute is not accessible for any reasonvoid setValue(IModelObject modelObject, Object value)
IModelTypeAttribute.AttributeType.CHANGEABLE.modelObject - a model object corresponding to the IModelType this attribute
belongs tovalue - an object of this model type attribute's datatypeIllegalArgumentException - if the model object does not have a changeable attribute
fitting this model type attribute or that attribute is not accessible for any
reason or the value does not fit the attribute's datatype.Copyright © 2014. All rights reserved.