Class PropertyGeneric
java.lang.Object
de.mid.innovator.m2msdk.model.transformation.property.PropertyDescriptorImpl
de.mid.innovator.m2msdk.model.transformation.property.PropertyGeneric
- All Implemented Interfaces:
PropertyDescriptorIF,Serializable
Property descriptor which can be instanced without a metamodel and which is
redirected at runtime to the property descriptor of the metamodel for its
property type. Its property type is not constant, but created at runtime.
- Version:
- 11.4.1
- Author:
- jmback
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter(MappingElementList filterElements, PropertyValue iValue, ExpressionContext inputList) Mass Filters Elements by PropertyValue.Get a long NLS description of the effect and the behavior of the property descriptor.getKnownNames(MappingElementIF element) Get list of known property names.Get the result type of this property descriptor.getValue(MappingElementIF element, ExpressionContext expressionContext) Read value from item.getValues(MappingElementList elements) Read values from items.booleanisLogged()Is it necessary that modifications done with the descriptor are logged?voidsetPropertyType(PropertyTypeIF iPropertyType) setValue(MappingElementIF el, PropertyValue value) Set value for item.toString()Methods inherited from class de.mid.innovator.m2msdk.model.transformation.property.PropertyDescriptorImpl
addSubDescriptor, addSubDescriptor, getMetaModel, getPropertyType, getSubDescriptors, getValue, getValueAsString
-
Constructor Details
-
PropertyGeneric
public PropertyGeneric() -
PropertyGeneric
-
-
Method Details
-
getValue
public PropertyValue getValue(MappingElementIF element, ExpressionContext expressionContext) throws M2MException, RemoteException Description copied from interface:PropertyDescriptorIFRead value from item.- Specified by:
getValuein interfacePropertyDescriptorIF- Overrides:
getValuein classPropertyDescriptorImpl- Parameters:
element- TODOexpressionContext- context containing the model element and the source and the target and the anchors- Returns:
- items value
- Throws:
M2MExceptionRemoteExceptionRemoteException
-
getValues
Description copied from interface:PropertyDescriptorIFRead values from items.- Specified by:
getValuesin interfacePropertyDescriptorIF- Overrides:
getValuesin classPropertyDescriptorImpl- Parameters:
elements- the elements from which the value should be read.- Returns:
- a list of all values
- Throws:
M2MExceptionRemoteExceptionRemoteException
-
setValue
public OperationResult setValue(MappingElementIF el, PropertyValue value) throws M2MException, RemoteException Description copied from interface:PropertyDescriptorIFSet value for item.- Specified by:
setValuein interfacePropertyDescriptorIF- Overrides:
setValuein classPropertyDescriptorImpl- Parameters:
el- item where to set the property (maybe null, meaning to set the value of the descriptor itself)value- to be set- Returns:
- false result, if error; true result, if identically changed; else setted value
- Throws:
M2MException- exception while settingRemoteException
-
setPropertyType
-
toString
- Overrides:
toStringin classPropertyDescriptorImpl
-
getDescription
Description copied from interface:PropertyDescriptorIFGet a long NLS description of the effect and the behavior of the property descriptor.- Specified by:
getDescriptionin interfacePropertyDescriptorIF- Overrides:
getDescriptionin classPropertyDescriptorImpl- Returns:
- long NLS string with description for user
-
getKnownNames
public ParameterProposalList getKnownNames(MappingElementIF element) throws M2MException, RemoteException Description copied from interface:PropertyDescriptorIFGet list of known property names. Even with a known name, a property descriptor may fail for getting or setting a value!- Specified by:
getKnownNamesin interfacePropertyDescriptorIF- Overrides:
getKnownNamesin classPropertyDescriptorImpl- Parameters:
element- Mapping element to be treated, maybe null.- Returns:
- List of known property names.
- Throws:
M2MExceptionRemoteExceptionRemoteException
-
getResult
Description copied from interface:PropertyDescriptorIFGet the result type of this property descriptor. The result type is determined by the property type.- Specified by:
getResultin interfacePropertyDescriptorIF- Overrides:
getResultin classPropertyDescriptorImpl- Returns:
- result type
-
filter
public MappingElementList filter(MappingElementList filterElements, PropertyValue iValue, ExpressionContext inputList) throws M2MException, RemoteException Description copied from interface:PropertyDescriptorIFMass Filters Elements by PropertyValue. Filter the elements from the input list which have the given value as descriptor value.- Specified by:
filterin interfacePropertyDescriptorIF- Overrides:
filterin classPropertyDescriptorImpl- Parameters:
filterElements- TODOiValue- given valueinputList- list of model elements to check- Returns:
- Elements having the given value.
- Throws:
M2MExceptionRemoteException
-
isLogged
public boolean isLogged()Description copied from interface:PropertyDescriptorIFIs it necessary that modifications done with the descriptor are logged?- Specified by:
isLoggedin interfacePropertyDescriptorIF- Overrides:
isLoggedin classPropertyDescriptorImpl- Returns:
- true, if it is necessary.
-