Class MappingElementJavaBeans
java.lang.Object
de.mid.innovator.m2msdk.model.transformation.MappingElementBaseImpl
de.mid.innovator.m2msdk.model.javabeans.MappingElementJavaBeans
- All Implemented Interfaces:
MappingElementIF,Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMappingElementJavaBeans(SessionInterface session) MappingElementJavaBeans(SessionInterface session, Object beanObject, MappingElementJavaBeans parent, int nr) MappingElementJavaBeans(SessionInterface session, Object beanObject, String uri) Der Konstruktor fuer das Root Element -
Method Summary
Modifier and TypeMethodDescriptioncreateElement(ModelTransformationStepIF step, CreateDescriptorIF createDescriptor, MappingAnchor anchor) Create a new element in the same model as this element.Get the children of the element.getHash()Get the hash value of the element inside the mapping model.getIcon()Get the icon of the element.getModel()Get the model of the element.getName()Get the name.getObject(ExpressionContext expressionContext, String descriptor, PropertyDescriptorList subDescriptors) Return the element associated.getOwner()Get the owner of the element.getOwnerTransitive(MappingElementIF sentinel) Get transitive owner up to a sentinel.getPath()Get the path of the element inside the model.getProperty(ExpressionContext expressionContext, String descriptor) Return the property's value.getTag()Get the targets of the element.getType()Get the name of element's type.getURI()Get the URI.voidsetBeanObject(Object beanObject) setElementProperty(PropertyDescriptorIF descriptor, PropertyValue value) Set the property.toString()Methods inherited from class de.mid.innovator.m2msdk.model.transformation.MappingElementBaseImpl
cloneIndexed, delete, equals, equals, getBulkInfo, getBulkInfoSpecialist, getDisplayType, getElementProperty, getObject, getObjects, getObjects, getProperty, getSession, getVirtualIndex, hashCode, isNotNull, isVirtualIndexed, setVirtualIndex
-
Constructor Details
-
MappingElementJavaBeans
Der Konstruktor fuer das Root Element- Parameters:
session-beanObject-uri-
-
MappingElementJavaBeans
public MappingElementJavaBeans(SessionInterface session, Object beanObject, MappingElementJavaBeans parent, int nr) - Parameters:
session-beanObject-parent-nr- Die Nummer wird benutzt um eine eindeutige URI in der Form file:/Dateiname#Element,nr;Element,nr zu erstellen
-
MappingElementJavaBeans
-
-
Method Details
-
getBeanObject
-
setBeanObject
-
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.
-
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
-
getModel
Description copied from interface:MappingElementIFGet the model of the element.- Specified by:
getModelin interfaceMappingElementIF- Overrides:
getModelin classMappingElementBaseImpl- Returns:
- the elements model
- Throws:
M2MExceptionRemoteException
-
getMetaModel
- Throws:
M2MExceptionRemoteException
-
getTag
-
getName
Description copied from interface:MappingElementIFGet the name.- Specified by:
getNamein interfaceMappingElementIF- Overrides:
getNamein classMappingElementBaseImpl- Returns:
- the elements name
-
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
-
getChildren
Description copied from interface:MappingElementIFGet the children of the element.- Returns:
- the children elements
-
getOwner
Description copied from interface:MappingElementIFGet the owner of the element.- Specified by:
getOwnerin interfaceMappingElementIF- Overrides:
getOwnerin classMappingElementBaseImpl- Returns:
- the owning element
-
getOwnerTransitive
Description copied from interface:MappingElementIFGet transitive owner up to a sentinel.- Specified by:
getOwnerTransitivein interfaceMappingElementIF- Overrides:
getOwnerTransitivein classMappingElementBaseImpl- Parameters:
sentinel- maybe null- Returns:
- gets owner transitive
-
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
-
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
-
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
-
setElementProperty
Description copied from interface:MappingElementIFSet the property.- Specified by:
setElementPropertyin interfaceMappingElementIF- Overrides:
setElementPropertyin classMappingElementBaseImpl- Parameters:
descriptor- property namevalue-- Returns:
- false on error
-
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
-
createElement
public MappingElementIF createElement(ModelTransformationStepIF step, CreateDescriptorIF createDescriptor, MappingAnchor anchor) throws M2MException 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 createanchor- 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:
M2MException
-
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
-
toString
-