Class FeatureMapEntryItem

java.lang.Object
com.esprow.oapi.util.FeatureMapEntryItem
All Implemented Interfaces:
MixedContent.Item

public class FeatureMapEntryItem extends Object
The generic FeatureMap Entry Item corresponding to other XML nodes, not supported by Orchestra API.
  • 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

      protected org.eclipse.emf.ecore.util.FeatureMap.Entry createEntry(Object value)
      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

      protected Object resolve(org.eclipse.emf.ecore.util.FeatureMap.Entry entry)
      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

      public Object getValue()
      Description copied from interface: MixedContent.Item
      Returns the actual value.
      Specified by:
      getValue in interface MixedContent.Item
      Returns:
      the value object
    • getFeatureName

      public String getFeatureName()
      Returns the name of the wrapped element or attribute.
      Returns:
      the name of the wrapped element or attribute