Class MappingElementInnovator
java.lang.Object
de.mid.innovator.m2msdk.model.transformation.MappingElementBaseImpl
de.mid.innovator.m2msdk.model.innovator.MappingElementInnovator
- All Implemented Interfaces:
MappingElementIF,Serializable
- Direct Known Subclasses:
MappingElementInnovatorDTD
Innovator mapping element.
- Version:
- 10.1.1
- Author:
- nagl
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMappingElementInnovator(MappingElementInnovator referenceElement, de.mid.innovator.srv2api.icw2elem.ELElement elElement) MappingElementInnovator(SessionInterface iSession) MappingElementInnovator(SessionInterface iSession, de.mid.innovator.model.common.VModelElement el) MappingElementInnovator(SessionInterface iSession, de.mid.innovator.model.common.VModelElement el, Integer virtualIndex) -
Method Summary
Modifier and TypeMethodDescriptioncloneIndexed(int index) Creates from the original Element an cloned indexed elementcreateElement(ModelTransformationStepIF step, CreateDescriptorIF createDescriptor, MappingAnchor additionalTargets) Create a new element in the same model as this element.voiddelete()Delete the mapping element.static MappingElementInnovatorget(MappingElementIF el) static <T extends de.mid.innovator.srv2api.icw2elem.ELElement>
Tget(MappingElementIF el, Class<T> returnType) Convert a VModelElementList to an Innovator type elementstatic de.mid.innovator.model.common.VModelElementListget(MappingElementList inputList) Convert a MappingElementList to a VModelElementList, omitting non Innovator Elements.static MappingElementInnovatorGet the children of the element.Get the display name of element's type.de.mid.innovator.srv2api.icw2elem.ELElementGet Innovator element from mapping elementgetHash()Get the hash value of the element inside the mapping model.getIcon()Get the icon of the element.de.mid.innovator.model.common.VModelElementstatic de.mid.innovator.model.common.VModelElementstatic <T extends de.mid.innovator.srv2api.icw2elem.ELElement>
TgetInnovatorElement(MappingElementIF mel, Class<T> returnType) static de.mid.innovator.model.common.VModelElementgetModel()Get the model of the element.getName()Get the name.getObject(ExpressionContext expressionContext, String descriptor, PropertyDescriptorList subDescriptors) Return the element associated.getObjectAOX(String descriptor, PropertyDescriptorList subDescriptors) getObjectDynamic(de.mid.innovator.model.common.VModelElement el, String descriptor, PropertyDescriptorList subDescriptors) getObjects(ExpressionContext expressionContext, String descriptor, PropertyDescriptorList subDescriptors) Return the element associated.getObjectsAOX(String descriptor, PropertyDescriptorList subDescriptors) getOwner()Get the owner of the element.getPath()Get the path of the element inside the model.getProperty(ExpressionContext expressionContext, String descriptor) Return the property's value.getProperty(ExpressionContext expressionContext, String descriptor, PropertyDescriptorList subDescriptors) Return the property.getPropertyAOXElementProperty(EnumPropertyInnovator innoProp, PropertyDescriptorList subDescriptors) Get the targets of the element.getType()Get the name of element's type.getURI()Get the URI.static booleanisInstanceOf(Object objOwner, Class<? extends de.mid.innovator.srv2api.icw2elem.ELObject> innovatorInterface) Check, if Element is instance of given element classbooleansetElementProperty(PropertyDescriptorIF descriptor, PropertyValue value) Set the property.voidsetVirtualIndex(int index) static MappingElementListtoList(SessionInterface iSession, de.mid.innovator.model.common.VModelElementList l) static MappingElementListtoList(SessionInterface iSession, de.mid.innovator.model.common.VModelElementList l, Integer virtualIndex) Converts a VModelElementList to a MappingElementListstatic de.mid.innovator.model.common.VModelElementListConverts a VModelElementList to a MappingElementListtoString()Methods inherited from class de.mid.innovator.m2msdk.model.transformation.MappingElementBaseImpl
equals, equals, getBulkInfo, getElementProperty, getObject, getObjects, getOwnerTransitive, getSession, getVirtualIndex, hashCode, isNotNull, isVirtualIndexed
-
Constructor Details
-
MappingElementInnovator
public MappingElementInnovator(SessionInterface iSession, de.mid.innovator.model.common.VModelElement el) - Parameters:
iSession-el- new element
-
MappingElementInnovator
public MappingElementInnovator(SessionInterface iSession, de.mid.innovator.model.common.VModelElement el, Integer virtualIndex) -
MappingElementInnovator
-
MappingElementInnovator
public MappingElementInnovator(MappingElementInnovator referenceElement, de.mid.innovator.srv2api.icw2elem.ELElement elElement) - Parameters:
referenceElement- for determine session and modelelElement- Innovator Element
-
-
Method Details
-
toList
public static MappingElementList toList(SessionInterface iSession, de.mid.innovator.model.common.VModelElementList l, Integer virtualIndex) Converts a VModelElementList to a MappingElementList- Parameters:
iSession-l- input list- Returns:
- output list
-
toList
public static MappingElementList toList(SessionInterface iSession, de.mid.innovator.model.common.VModelElementList l) -
toList
Converts a VModelElementList to a MappingElementList- Parameters:
l- input list- Returns:
- output list
-
getHash
Description copied from interface:MappingElementIFGet the hash value of the element inside the mapping model. Equal elements have same hash. Different elements have different hash.- Specified by:
getHashin interfaceMappingElementIF- Overrides:
getHashin classMappingElementBaseImpl- Returns:
- the elements hash value unique within one model.
-
setVirtualIndex
public void setVirtualIndex(int index) - Overrides:
setVirtualIndexin classMappingElementBaseImpl
-
get
- Parameters:
el-- Returns:
- converted MappingElementInnovator, if possible
-
getInnovatorElement
public static de.mid.innovator.model.common.VModelElement getInnovatorElement(MappingElementList obj) -
get
-
isMappingElementInnovator
- Parameters:
el-- Returns:
- checks, if MappingElement of Innovator type
-
getInnovatorElement
public de.mid.innovator.model.common.VModelElement getInnovatorElement()- Returns:
- the innovator element if possible
-
getInnovatorElement
- Parameters:
el-- Returns:
- the innovator element if possible
-
getURI
Description copied from interface:MappingElementIFGet the URI. The URI can be used to retrieve an element from the mapping meta model.- Specified by:
getURIin interfaceMappingElementIF- Overrides:
getURIin classMappingElementBaseImpl- Returns:
- URI of the element
-
getName
Description copied from interface:MappingElementIFGet the name.- Specified by:
getNamein interfaceMappingElementIF- Overrides:
getNamein classMappingElementBaseImpl- Returns:
- the elements name
-
getPath
Description copied from interface:MappingElementIFGet the path of the element inside the model.- Specified by:
getPathin interfaceMappingElementIF- Overrides:
getPathin classMappingElementBaseImpl- Returns:
- the elements path
-
getType
Description copied from interface:MappingElementIFGet the name of element's type.- Specified by:
getTypein interfaceMappingElementIF- Overrides:
getTypein classMappingElementBaseImpl- Returns:
- the name of elements type
-
getMetaModel
- Throws:
M2MExceptionRemoteException
-
getModel
Description copied from interface:MappingElementIFGet the model of the element.- Specified by:
getModelin interfaceMappingElementIF- Overrides:
getModelin classMappingElementBaseImpl- Returns:
- the elements model
- Throws:
M2MExceptionRemoteException
-
toString
-
createElement
public MappingElementInnovator createElement(ModelTransformationStepIF step, CreateDescriptorIF createDescriptor, MappingAnchor additionalTargets) throws M2MException, RemoteException Description copied from interface:MappingElementIFCreate a new element in the same model as this element.- Specified by:
createElementin interfaceMappingElementIF- Overrides:
createElementin classMappingElementBaseImpl- Parameters:
createDescriptor- description what to createadditionalTargets- additional anchor elements for the new element- Returns:
- a newly created element with the current element as owner spawned through the additional target elements
- Throws:
M2MExceptionRemoteException
-
getOwner
Description copied from interface:MappingElementIFGet the owner of the element.- Specified by:
getOwnerin interfaceMappingElementIF- Overrides:
getOwnerin classMappingElementBaseImpl- Returns:
- the owning element
-
getELElement
public de.mid.innovator.srv2api.icw2elem.ELElement getELElement()Get Innovator element from mapping element- Returns:
- Innovator element
-
getChildren
Description copied from interface:MappingElementIFGet the children of the element.- Returns:
- the children elements
-
getTargets
Description copied from interface:MappingElementIFGet the targets of the element.- Specified by:
getTargetsin interfaceMappingElementIF- Overrides:
getTargetsin classMappingElementBaseImpl- Returns:
- the target elements ( e.g. dependency or relationship target ) otherwise returns nothing
-
getIcon
Description copied from interface:MappingElementIFGet the icon of the element. Either provide the fully qualified file name or the name in the classpath or the file name for Innovator bitmaps.- Specified by:
getIconin interfaceMappingElementIF- Overrides:
getIconin classMappingElementBaseImpl- Returns:
- the name of the elements icon, if exists
-
getObject
public MappingElementIF getObject(ExpressionContext expressionContext, String descriptor, PropertyDescriptorList subDescriptors) throws M2MException, RemoteException Description copied from interface:MappingElementIFReturn the element associated.- Specified by:
getObjectin interfaceMappingElementIF- Overrides:
getObjectin classMappingElementBaseImpl- Parameters:
expressionContext- the context in which the navigatable object should be calculated.descriptor- navigation directivesubDescriptors- sub descriptors or parameters of the navigation directive- Returns:
- Element, if found
- Throws:
M2MExceptionRemoteException
-
getObjects
public MappingElementList getObjects(ExpressionContext expressionContext, String descriptor, PropertyDescriptorList subDescriptors) throws M2MException, RemoteException Description copied from interface:MappingElementIFReturn the element associated.- Specified by:
getObjectsin interfaceMappingElementIF- Overrides:
getObjectsin classMappingElementBaseImpl- Parameters:
expressionContext- the context in which the related objects should be calculated.descriptor- navigation directivesubDescriptors- sub descriptors or parameters of the navigation directive- Returns:
- List of Elements
- Throws:
M2MExceptionRemoteException
-
getObjectAOX
public MappingElementIF getObjectAOX(String descriptor, PropertyDescriptorList subDescriptors) throws M2MException, RemoteException - Throws:
M2MExceptionRemoteException
-
getObjectsAOX
public MappingElementList getObjectsAOX(String descriptor, PropertyDescriptorList subDescriptors) throws M2MException, RemoteException - Throws:
M2MExceptionRemoteException
-
getObjectDynamic
public MappingElementIF getObjectDynamic(de.mid.innovator.model.common.VModelElement el, String descriptor, PropertyDescriptorList subDescriptors) throws RemoteException, M2MException - Throws:
RemoteExceptionM2MException
-
get
Convert a MappingElementList to a VModelElementList, omitting non Innovator Elements.- Parameters:
inputList- mapping elements- Returns:
- Innovator elements
-
get
public static <T extends de.mid.innovator.srv2api.icw2elem.ELElement> T get(MappingElementIF el, Class<T> returnType) Convert a VModelElementList to an Innovator type element- Type Parameters:
T-- Parameters:
el- input elementreturnType- innovator class type- Returns:
- converted element
-
setElementProperty
public OperationResult setElementProperty(PropertyDescriptorIF descriptor, PropertyValue value) throws AbortException, SevereException, M2MException, RemoteException Description copied from interface:MappingElementIFSet the property.- Specified by:
setElementPropertyin interfaceMappingElementIF- Overrides:
setElementPropertyin classMappingElementBaseImpl- Parameters:
descriptor- property namevalue-- Returns:
- false on error
- Throws:
M2MExceptionRemoteExceptionAbortExceptionSevereException
-
getProperty
public PropertyValue getProperty(ExpressionContext expressionContext, String descriptor) throws M2MException, RemoteException Description copied from interface:MappingElementIFReturn the property's value. Remark: This is the property of type "Property".- Specified by:
getPropertyin interfaceMappingElementIF- Overrides:
getPropertyin classMappingElementBaseImpl- Parameters:
expressionContext- TODOdescriptor- property name- Returns:
- primitive, if found
- Throws:
M2MExceptionRemoteException
-
getProperty
public PropertyValue getProperty(ExpressionContext expressionContext, String descriptor, PropertyDescriptorList subDescriptors) throws M2MException, RemoteException Description copied from interface:MappingElementIFReturn the property.- Specified by:
getPropertyin interfaceMappingElementIF- Overrides:
getPropertyin classMappingElementBaseImpl- Parameters:
expressionContext- TODOdescriptor- property namesubDescriptors- optional list of subdescriptors- Returns:
- primitive, if found
- Throws:
M2MExceptionRemoteException
-
getPropertyAOXElementProperty
public PropertyValue getPropertyAOXElementProperty(EnumPropertyInnovator innoProp, PropertyDescriptorList subDescriptors) throws M2MException, RemoteException - Throws:
M2MExceptionRemoteException
-
isInstanceOf
public static boolean isInstanceOf(Object objOwner, Class<? extends de.mid.innovator.srv2api.icw2elem.ELObject> innovatorInterface) Check, if Element is instance of given element class- Parameters:
objOwner- Mapping elementinnovatorInterface-- Returns:
- true if element is of specified type
-
getInnovatorElement
public static <T extends de.mid.innovator.srv2api.icw2elem.ELElement> T getInnovatorElement(MappingElementIF mel, Class<T> returnType) -
getDisplayType
Description copied from interface:MappingElementIFGet the display name of element's type.- Specified by:
getDisplayTypein interfaceMappingElementIF- Overrides:
getDisplayTypein classMappingElementBaseImpl- Returns:
- the display name of elements type
- Throws:
RemoteException
-
delete
Description copied from interface:MappingElementIFDelete the mapping element.- Specified by:
deletein interfaceMappingElementIF- Overrides:
deletein classMappingElementBaseImpl- Throws:
M2MExceptionRemoteException
-
cloneIndexed
Description copied from interface:MappingElementIFCreates from the original Element an cloned indexed element- Specified by:
cloneIndexedin interfaceMappingElementIF- Overrides:
cloneIndexedin classMappingElementBaseImpl- Parameters:
index-- Returns:
- a copy of the mapping element with an index
-
getBulkInfoSpecialist2
-
getBulkInfoSpecialist
- Specified by:
getBulkInfoSpecialistin interfaceMappingElementIF- Overrides:
getBulkInfoSpecialistin classMappingElementBaseImpl
-