|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IModelTypeAttribute
| Nested Class Summary | |
|---|---|
static class |
IModelTypeAttribute.AttributeType
Enum defining the possible attribute types. |
static class |
IModelTypeAttribute.ValueSetType
Enum defining the possible value set types. |
| Field Summary | |
|---|---|
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
|
| Fields inherited from interface org.faktorips.runtime.modeltype.IModelElement |
|---|
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 |
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface org.faktorips.runtime.modeltype.IModelElement |
|---|
getDescription, getExtensionPropertyIds, getExtensionPropertyValue, getLabel, getName, getRepository, initExtPropertiesFromXml, initFromXml |
| Field Detail |
|---|
static 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
| Method Detail |
|---|
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 to
IllegalArgumentException - if the model object does not have an attribute fitting this
model type attribute or that attribute is not accessible for any reason
void 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 datatype
IllegalArgumentException - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||