Class PropertyTransfer
java.lang.Object
de.mid.innovator.m2msdk.model.transformation.property.PropertyTransfer
Transfer one property from source to target.
- Version:
- 10.1.1
- Author:
- jmback
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyTransfer(SessionInterface iSession, PropertyDescriptorIF source, PropertyDescriptorIF target, PropertyTransferOperator operation) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheck(MappingElementIF source, MappingElementIF target, PropertyValue iOld) Check whether there will be a modification if the transfer would be executed.booleancheckApply(MappingElementIF sourceElement, MappingElementIF candidate) Is the candidate a corresponding mapping element for the source regarding to the property transfer?evaluate(MappingElementIF source, MappingElementIF target) Transfer properties from source to target.filter(MappingElementIF referenceElement, MappingElementList filterElements, ExpressionContext ec) Filter the mapping elements so that all elements have the target property of the value of the source property value.getNew(MappingElementIF element) Get the new value of the transfer for a source element.getOld(MappingElementIF element) Get the old value of the transfer for a source element.Description of the target.toString()
-
Constructor Details
-
PropertyTransfer
public PropertyTransfer(SessionInterface iSession, PropertyDescriptorIF source, PropertyDescriptorIF target, PropertyTransferOperator operation) throws SevereException, RemoteException - Throws:
SevereExceptionRemoteException
-
-
Method Details
-
evaluate
public PropertyTransferVector evaluate(MappingElementIF source, MappingElementIF target) throws M2MException, RemoteException Transfer properties from source to target.- Parameters:
source- model elementtarget- model element- Returns:
- has there been a modification on target?
- Throws:
M2MException- errorRemoteException
-
check
public boolean check(MappingElementIF source, MappingElementIF target, PropertyValue iOld) throws M2MException, RemoteException Check whether there will be a modification if the transfer would be executed.- Parameters:
source- model elementtarget- model elementiOld- old value of target before transfer- Returns:
- true if there would be a modification when executing this transfer
- Throws:
M2MException- errorRemoteException
-
checkApply
public boolean checkApply(MappingElementIF sourceElement, MappingElementIF candidate) throws M2MException, RemoteException Is the candidate a corresponding mapping element for the source regarding to the property transfer?- Parameters:
sourceElement- source mapping elementcandidate- target mapping element- Returns:
- true, if candidate is as target for source.
- Throws:
M2MExceptionRemoteException
-
filter
public MappingElementList filter(MappingElementIF referenceElement, MappingElementList filterElements, ExpressionContext ec) throws M2MException, RemoteException Filter the mapping elements so that all elements have the target property of the value of the source property value.- Parameters:
referenceElement- reference elementfilterElements- List of mapping elements to filter- Returns:
- filtered list
- Throws:
M2MExceptionRemoteException
-
toString
-
getNew
Get the new value of the transfer for a source element.- Parameters:
element- source mapping element- Returns:
- new value after transfer
- Throws:
M2MExceptionRemoteException
-
getOld
Get the old value of the transfer for a source element.- Parameters:
element- source mapping element- Returns:
- old value before transfer
- Throws:
M2MExceptionRemoteException
-
getTargetDescription
Description of the target. This maybe the name of the modified property.- Returns:
- Description of the target.
-