Class IndexedSetting

  • All Implemented Interfaces:
    org.eclipse.emf.ecore.EStructuralFeature.Setting

    public class IndexedSetting
    extends java.lang.Object
    implements org.eclipse.emf.ecore.EStructuralFeature.Setting
    An IndexedSetting is a EStructuralFeature.Setting whose EStructuralFeature is a multi reference or attribute that is indexed. This means the value of the Setting is the Object at the IndexedSetting's index in the list referenced by the structural feature. In a "standard" Setting, the whole list would be the settings value.
    Author:
    Lucas Koehler
    • Constructor Summary

      Constructors 
      Constructor Description
      IndexedSetting​(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, int index)
      Creates a new IndexedSetting.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get​(boolean resolve)  
      org.eclipse.emf.ecore.EObject getEObject()  
      org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature()  
      int getIndex()
      Returns the index of this IndexedSetting.
      boolean isSet()  
      void set​(java.lang.Object newValue)  
      void unset()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IndexedSetting

        public IndexedSetting​(org.eclipse.emf.ecore.EObject eObject,
                              org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
                              int index)
        Creates a new IndexedSetting.
        Parameters:
        eObject - The EObject holding a list
        eStructuralFeature - The specific feature holding the list
        index - The index that defines which list item is the value of this EStructuralFeature.Setting
    • Method Detail

      • getEObject

        public org.eclipse.emf.ecore.EObject getEObject()
        Specified by:
        getEObject in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
      • getEStructuralFeature

        public org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature()
        Specified by:
        getEStructuralFeature in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
      • get

        public java.lang.Object get​(boolean resolve)
        Specified by:
        get in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
      • set

        public void set​(java.lang.Object newValue)
        Specified by:
        set in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
      • isSet

        public boolean isSet()
        Specified by:
        isSet in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
      • unset

        public void unset()
        Specified by:
        unset in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
      • getIndex

        public int getIndex()
        Returns the index of this IndexedSetting. The index defines the list index of this setting's value: The list is resolved from the holding EObject and the EStructuralFeature of this IndexedSetting.
        Returns:
        The list index