Package com.esprow.oapi.util
Class FeatureMapEntryItem
java.lang.Object
com.esprow.oapi.util.FeatureMapEntryItem
- All Implemented Interfaces:
MixedContent.Item
The generic
FeatureMap
Entry Item corresponding to other XML nodes, not supported by Orchestra API.-
Constructor Summary
ConstructorDescriptionFeatureMapEntryItem
(org.eclipse.emf.ecore.util.FeatureMap.Entry entry) Create an item wrapping the given entry -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.emf.ecore.util.FeatureMap.Entry
createEntry
(Object value) Create an entry corresponding to the given value object.Returns the name of the wrapped element or attribute.getValue()
Returns the actual value.protected Object
resolve
(org.eclipse.emf.ecore.util.FeatureMap.Entry entry) Create a value object instance from the given entry.
-
Constructor Details
-
FeatureMapEntryItem
public FeatureMapEntryItem(org.eclipse.emf.ecore.util.FeatureMap.Entry entry) Create an item wrapping the given entry- Parameters:
entry
- the entry to be wrapped- See Also:
-
FeatureMapUtil.createEntry(org.eclipse.emf.ecore.EStructuralFeature, Object)
-
-
Method Details
-
createEntry
Create an entry corresponding to the given value object. This method is called by the framework once the client creates new Item.- Parameters:
value
- the value object- Returns:
- the feature map entry
-
resolve
Create a value object instance from the given entry. This method is called by the framework once the client requests the actual value.- Parameters:
entry
- the feature map entry- Returns:
- the value object
-
getValue
Description copied from interface:MixedContent.Item
Returns the actual value.- Specified by:
getValue
in interfaceMixedContent.Item
- Returns:
- the value object
-
getFeatureName
Returns the name of the wrapped element or attribute.- Returns:
- the name of the wrapped element or attribute
-