|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IModelType
| Field Summary | |
|---|---|
static String |
PROPERTY_CLASS
|
static String |
PROPERTY_SUPERTYPE
|
static String |
XML_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 | |
|---|---|
IModelTypeAssociation |
getAssociation(String name)
Returns the association with the given name declared in this type or one of it's
super types. |
List<IModelTypeAssociation> |
getAssociations()
Returns the type's associations including those defined in it's super types. |
IModelTypeAttribute |
getAttribute(String name)
Returns the attribute with the given name declared in this type or one of it's
super types. |
List<IModelTypeAttribute> |
getAttributes()
Returns a list containing the type's attributes including those defined in the type's super types. |
Object |
getAttributeValue(IModelObject modelObject,
String attributeName)
Returns the value of the given model object's attribute identified by the given attribute name. |
IModelTypeAssociation |
getDeclaredAssociation(int index)
Returns the association at the given index. |
IModelTypeAssociation |
getDeclaredAssociation(String name)
Returns the association with the given name declared in this type. |
List<IModelTypeAssociation> |
getDeclaredAssociations()
Returns a list containing all associations declared in this model type. |
IModelTypeAttribute |
getDeclaredAttribute(int index)
Returns the declared attribute at the given index. |
IModelTypeAttribute |
getDeclaredAttribute(String name)
Returns the attribute with the given name declared in this type. |
List<IModelTypeAttribute> |
getDeclaredAttributes()
Returns a list containing all attributes declared in this model type. |
Class<?> |
getJavaClass()
Returns the Java class for this type. |
Class<?> |
getJavaInterface()
Returns the Java interface for this type. |
IModelType |
getSuperType()
Returns this model type's super type or null if it has none. |
List<IModelObject> |
getTargetObjects(IModelObject source,
String associationName)
Returns a list of the target(s) of the given model object's association identified by the given association name. |
void |
setAttributeValue(IModelObject modelObject,
String attributeName,
Object value)
Sets the given model object's attribute identified by the given name 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 PROPERTY_CLASS
static final String PROPERTY_SUPERTYPE
| Method Detail |
|---|
Class<?> getJavaClass()
throws ClassNotFoundException
ClassNotFoundException - if the class could not be loaded.
Class<?> getJavaInterface()
throws ClassNotFoundException
ClassNotFoundException - if the class could not be loaded.IModelType getSuperType()
null if it has none.
List<IModelTypeAttribute> getDeclaredAttributes()
List<IModelTypeAttribute> getAttributes()
IModelTypeAttribute getDeclaredAttribute(int index)
throws IndexOutOfBoundsException
index.
IndexOutOfBoundsException - if no attribute exists for the given index.
IModelTypeAttribute getDeclaredAttribute(String name)
throws IllegalArgumentException
name declared in this type. Attributes
defined in the type's super types are not returned.
IllegalArgumentException - if no attribute with the given name exists.
IModelTypeAttribute getAttribute(String name)
throws IllegalArgumentException
name declared in this type or one of it's
super types.
IllegalArgumentException - if no attribute with the given name exists.List<IModelTypeAssociation> getDeclaredAssociations()
List<IModelTypeAssociation> getAssociations()
IModelTypeAssociation getDeclaredAssociation(int index)
index. Associations defined in the type's
super types are not returned.
IndexOutOfBoundsException - if no association exists for the given index.IModelTypeAssociation getDeclaredAssociation(String name)
name declared in this type. Associations
defined in the type's super types are not considered.
IllegalArgumentException - if no association with the given name exists.
List<IModelObject> getTargetObjects(IModelObject source,
String associationName)
source - a model object corresponding to this model typeassociationName - the name of the association
IllegalArgumentException - if the model does not fit this model type, has no
association by the given name or that association is not accessible for any
reason
Object getAttributeValue(IModelObject modelObject,
String attributeName)
modelObject - a model object corresponding to this model typeattributeName - the name of the attribute
IllegalArgumentException - if the model object does not fit this model type, has no
attribute by the given name or that attribute is not accessible for any reasonIModelTypeAttribute.getValue(IModelObject)
void setAttributeValue(IModelObject modelObject,
String attributeName,
Object value)
IModelTypeAttribute.AttributeType.CHANGEABLE.
modelObject - a model object corresponding to this model typevalue - an object of the datatype for the IModelTypeAttribute by the given name
IllegalArgumentException - if the model object does not fit this model type, has no
changeable attribute by the given name or that attribute is not accessible for
any reason or the value does not fit the attribute's datatype.IModelTypeAttribute.setValue(IModelObject, Object)
IModelTypeAssociation getAssociation(String name)
throws IllegalArgumentException
name declared in this type or one of it's
super types.
IllegalArgumentException - if no association with the given name exists.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||