Interface Item

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Type getType()
      Returns the value of the 'Type' container reference.
      FieldValue getValue​(String name)
      Returns the FieldValue instance holding a value for the specified field name, if any.
      FieldValue getValue​(org.eclipse.emf.common.util.Enumerator enumerator)
      Returns the FieldValue instance holding a value for the specified field, if any.
      boolean getValueBoolean​(String name)
      Returns the boolean value associated to the specified field.
      boolean getValueBoolean​(org.eclipse.emf.common.util.Enumerator enumerator)
      Returns the boolean value associated to the specified field.
      MDWEList<Element> getValueChildList​(String name, boolean createOnDemand)
      Returns the list of elements associated to the specified field.
      MDWEList<Element> getValueChildList​(org.eclipse.emf.common.util.Enumerator enumerator, boolean createOnDemand)
      Returns the list of elements associated to the specified field.
      Date getValueDate​(String name)
      Returns the date value associated to the specified field.
      Date getValueDate​(org.eclipse.emf.common.util.Enumerator enumerator)
      Returns the date value associated to the specified field.
      double getValueDouble​(String name)
      Returns the double value associated to the specified field.
      double getValueDouble​(org.eclipse.emf.common.util.Enumerator enumerator)
      Returns the double value associated to the specified field.
      Element getValueElement​(String name)
      Returns the element associated to the specified field.
      Element getValueElement​(org.eclipse.emf.common.util.Enumerator enumerator)
      Returns the element associated to the specified field.
      MDWEList<Element> getValueElementList​(String name, boolean createOnDemand)
      Returns the list of elements associated to the specified field.
      MDWEList<Element> getValueElementList​(org.eclipse.emf.common.util.Enumerator enumerator, boolean createOnDemand)
      Returns the list of elements associated to the specified field.
      float getValueFloat​(String name)
      Returns the float value associated to the specified field.
      float getValueFloat​(org.eclipse.emf.common.util.Enumerator enumerator)
      Returns the float value associated to the specified field.
      int getValueInt​(String name)
      Returns the integer value associated to the specified field.
      int getValueInt​(org.eclipse.emf.common.util.Enumerator enumerator)
      Returns the integer value associated to the specified field.
      MDWEList<Object> getValueList​(String name, boolean createOnDemand)
      Returns the list of values associated to the specified field.
      MDWEList<Object> getValueList​(org.eclipse.emf.common.util.Enumerator enumerator, boolean createOnDemand)
      Returns the list of values associated to the specified field.
      long getValueLong​(String name)
      Returns the long value associated to the specified field.
      long getValueLong​(org.eclipse.emf.common.util.Enumerator enumerator)
      Returns the long value associated to the specified field.
      RichText getValueRichText​(String name)
      Returns the rich text value associated to the specified field.
      RichText getValueRichText​(org.eclipse.emf.common.util.Enumerator enumerator)
      Returns the rich text value associated to the specified field.
      MDWEList<FieldValue> getValues()
      Returns the value of the 'Values' containment reference list.
      String getValueString​(String name)
      Returns the String value associated to the specified field.
      String getValueString​(org.eclipse.emf.common.util.Enumerator enumerator)
      Returns the String value associated to the specified field.
      boolean isVersionedItem()
      Tests if the Item is versioned.
      void setType​(Type value)
      Sets the value of the 'Type' container reference.
      void setValueBoolean​(String name, boolean value)
      Changes the boolean value associated to the specified field.
      void setValueBoolean​(org.eclipse.emf.common.util.Enumerator enumerator, boolean value)
      Changes the boolean value associated to the specified field.
      void setValueDate​(String name, Date value)
      Changes the date value associated to the specified field.
      void setValueDate​(org.eclipse.emf.common.util.Enumerator enumerator, Date value)
      Changes the date value associated to the specified field.
      void setValueDouble​(String name, double value)
      Changes the double value associated to the specified field.
      void setValueDouble​(org.eclipse.emf.common.util.Enumerator enumerator, double value)
      Changes the double value associated to the specified field.
      void setValueElement​(String name, Element element)
      Changes the element associated to the specified field.
      void setValueElement​(org.eclipse.emf.common.util.Enumerator enumerator, Element element)
      Changes the element associated to the specified field.
      void setValueFloat​(String name, float value)
      Changes the float value associated to the specified field.
      void setValueFloat​(org.eclipse.emf.common.util.Enumerator enumerator, float value)
      Changes the float value associated to the specified field.
      void setValueInt​(String name, int value)
      Changes the integer value associated to the specified field.
      void setValueInt​(org.eclipse.emf.common.util.Enumerator enumerator, int value)
      Changes the integer value associated to the specified field.
      void setValueLong​(String name, long value)
      Changes the long value associated to the specified field.
      void setValueLong​(org.eclipse.emf.common.util.Enumerator enumerator, long value)
      Changes the long value associated to the specified field.
      void setValueRichText​(String name, RichText value)
      Changes the rich text value associated to the specified field.
      void setValueRichText​(org.eclipse.emf.common.util.Enumerator enumerator, RichText value)
      Changes the rich text value associated to the specified field.
      void setValueString​(String name, String value)
      Changes the String value associated to the specified field.
      void setValueString​(org.eclipse.emf.common.util.Enumerator enumerator, String value)
      Changes the String value associated to the specified field.
      • Methods inherited from interface org.eclipse.emf.ecore.EModelElement

        getEAnnotation, getEAnnotations
      • Methods inherited from interface org.eclipse.emf.ecore.EObject

        eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
      • Methods inherited from interface org.eclipse.emf.common.notify.Notifier

        eAdapters, eDeliver, eNotify, eSetDeliver
      • Methods inherited from interface com.sodius.mdw.corext.model.emf.OnDemandEObject

        eIsInitialized
    • Method Detail

      • setType

        void setType​(Type value)
        Sets the value of the 'Type' container reference.
        Parameters:
        value - the new value of the 'Type' container reference.
        See Also:
        getType()
      • getValue

        FieldValue getValue​(String name)
        Returns the FieldValue instance holding a value for the specified field name, if any.
        Parameters:
        name - the name of the field.
        Returns:
        the corresponding FieldValue instance, null if none.
      • getValue

        FieldValue getValue​(org.eclipse.emf.common.util.Enumerator enumerator)
        Returns the FieldValue instance holding a value for the specified field, if any.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        Returns:
        the corresponding FieldValue instance, null if none.
      • getValueBoolean

        boolean getValueBoolean​(String name)
        Returns the boolean value associated to the specified field.

        Here are the steps to identify the value:

        1. Return the value of the FieldBooleanValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. Return false if no such field is found or if it has no default value.
        Parameters:
        name - the name of the field.
        Returns:
        the boolean value associated to the specified field.
      • getValueDate

        Date getValueDate​(String name)
        Returns the date value associated to the specified field.

        Here are the steps to identify the value:

        1. Return the value of the FieldDateValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. Return null if no such field is found or if it has no default value.
        Parameters:
        name - the name of the field.
        Returns:
        the date value associated to the specified field.
      • getValueDouble

        double getValueDouble​(String name)
        Returns the double value associated to the specified field.

        Here are the steps to identify the value:

        1. Return the value of the FieldDoubleValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. Return 0.0 if no such field is found or if it has no default value.
        Parameters:
        name - the name of the field.
        Returns:
        the double value associated to the specified field.
      • getValueElement

        Element getValueElement​(String name)
        Returns the element associated to the specified field.

        Here are the steps to identify the value:

        1. Return the value of the FieldElementValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. Return null if no such field is found or if it has no default value.
        Parameters:
        name - the name of the field.
        Returns:
        the element associated to the specified field.
      • getValueFloat

        float getValueFloat​(String name)
        Returns the float value associated to the specified field.

        Here are the steps to identify the value:

        1. Return the value of the FieldFloatValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. Return 0.0 if no such field is found or if it has no default value.
        Parameters:
        name - the name of the field.
        Returns:
        the float value associated to the specified field.
      • getValueInt

        int getValueInt​(String name)
        Returns the integer value associated to the specified field.

        Here are the steps to identify the value:

        1. Return the value of the FieldIntValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. Return 0 if no such field is found or if it has no default value.
        Parameters:
        name - the name of the field.
        Returns:
        the integer value associated to the specified field.
      • getValueLong

        long getValueLong​(String name)
        Returns the long value associated to the specified field.

        Here are the steps to identify the value:

        1. Return the value of the FieldLongValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. Return 0 if no such field is found or if it has no default value.
        Parameters:
        name - the name of the field.
        Returns:
        the long value associated to the specified field.
      • getValueString

        String getValueString​(String name)
        Returns the String value associated to the specified field.

        Here are the steps to identify the value:

        1. Return the value of the FieldStringValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. Return an empty String if no such field is found or if it has no default value.
        Parameters:
        name - the name of the field.
        Returns:
        the String value associated to the specified field.
      • getValueRichText

        RichText getValueRichText​(String name)
        Returns the rich text value associated to the specified field.

        Here are the steps to identify the value:

        1. Return the value of the FieldStringValue or FieldRichTextValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. Return an empty text if no such field is found or if it has no default value.
        Parameters:
        name - the name of the field.
        Returns:
        the rich text value associated to the specified field.
      • getValueBoolean

        boolean getValueBoolean​(org.eclipse.emf.common.util.Enumerator enumerator)
        Returns the boolean value associated to the specified field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Here are the steps to identify the value:

        1. Return the value of the FieldBooleanValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. Return false if no such field is found or if it has no default value.
        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        Returns:
        the boolean value associated to the specified field.
      • getValueDate

        Date getValueDate​(org.eclipse.emf.common.util.Enumerator enumerator)
        Returns the date value associated to the specified field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Here are the steps to identify the value:

        1. Return the value of the FieldDateValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. Return null if no such field is found or if it has no default value.
        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        Returns:
        the date value associated to the specified field.
      • getValueDouble

        double getValueDouble​(org.eclipse.emf.common.util.Enumerator enumerator)
        Returns the double value associated to the specified field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Here are the steps to identify the value:

        1. Return the value of the FieldDoubleValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. Return 0.0 if no such field is found or if it has no default value.
        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        Returns:
        the double value associated to the specified field.
      • getValueElement

        Element getValueElement​(org.eclipse.emf.common.util.Enumerator enumerator)
        Returns the element associated to the specified field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Here are the steps to identify the value:

        1. Return the value of the FieldElementValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. Return null if no such field is found or if it has no default value.
        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        Returns:
        the element associated to the specified field.
      • getValueFloat

        float getValueFloat​(org.eclipse.emf.common.util.Enumerator enumerator)
        Returns the float value associated to the specified field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Here are the steps to identify the value:

        1. Return the value of the FieldFloatValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. Return 0.0 if no such field is found or if it has no default value.
        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        Returns:
        the float value associated to the specified field.
      • getValueInt

        int getValueInt​(org.eclipse.emf.common.util.Enumerator enumerator)
        Returns the integer value associated to the specified field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Here are the steps to identify the value:

        1. Return the value of the FieldIntValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. Return 0 if no such field is found or if it has no default value.
        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        Returns:
        the integer value associated to the specified field.
      • getValueLong

        long getValueLong​(org.eclipse.emf.common.util.Enumerator enumerator)
        Returns the long value associated to the specified field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Here are the steps to identify the value:

        1. Return the value of the FieldLongValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. Return 0 if no such field is found or if it has no default value.
        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        Returns:
        the long value associated to the specified field.
      • getValueString

        String getValueString​(org.eclipse.emf.common.util.Enumerator enumerator)
        Returns the String value associated to the specified field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Here are the steps to identify the value:

        1. Return the value of the FieldStringValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. Return an empty String if no such field is found or if it has no default value.
        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        Returns:
        the String value associated to the specified field.
      • getValueRichText

        RichText getValueRichText​(org.eclipse.emf.common.util.Enumerator enumerator)
        Returns the rich text value associated to the specified field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Here are the steps to identify the value:

        1. Return the value of the FieldStringValue or FieldRichTextValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. Return an empty text if no such field is found or if it has no default value.
        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        Returns:
        the rich text value associated to the specified field.
      • getValueElementList

        MDWEList<Element> getValueElementList​(String name,
                                              boolean createOnDemand)
        Returns the list of elements associated to the specified field.

        Here are the steps to identify the value:

        1. Return the value of the FieldElementListValue or FieldChildListValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. If no such field is found or if it has no default value:
          • Return an empty non modifiable list if createOnDemand is false.
          • Create a new FieldElementListValue instance and return it if createOnDemand is true.

        The createOnDemand parameter controls what shall be done when there is not yet a field value representing the specified field:

        • If the intent of the caller is to add or remove elements in the returned list, createOnDemand should be true so that a FieldElementListValue instance is created and assigned to the item.
        • If the intent of the caller is to only look for the size of the list or determine whether it contains an element (i.e. read-only access), createOnDemand should be false to avoid creating a FieldElementListValue instance that is not necessary.
        Parameters:
        name - the name of the field.
        createOnDemand - indicates whether a new FieldElementListValue instance must be created if it does not yet exist.
        Returns:
        the list of elements associated to the specified field.
      • getValueChildList

        MDWEList<Element> getValueChildList​(String name,
                                            boolean createOnDemand)
        Returns the list of elements associated to the specified field.

        Here are the steps to identify the value:

        1. Return the value of the FieldChildListValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. If no such field is found or if it has no default value:
          • Return an empty non modifiable list if createOnDemand is false.
          • Create a new FieldChildListValue instance and return it if createOnDemand is true.

        The createOnDemand parameter controls what shall be done when there is not yet a field value representing the specified field:

        • If the intent of the caller is to add or remove elements in the returned list, createOnDemand should be true so that a FieldChildListValue instance is created and assigned to the item.
        • If the intent of the caller is to only look for the size of the list or determine whether it contains an element (i.e. read-only access), createOnDemand should be false to avoid creating a FieldChildListValue instance that is not necessary.
        Parameters:
        name - the name of the field.
        createOnDemand - indicates whether a new FieldChildListValue instance must be created if it does not yet exist.
        Returns:
        the list of elements associated to the specified field.
      • getValueList

        MDWEList<Object> getValueList​(String name,
                                      boolean createOnDemand)
        Returns the list of values associated to the specified field.

        Here are the steps to identify the value:

        1. Return the value of the FieldListValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. If no such field is found or if it has no default value:
          • Return an empty non modifiable list if createOnDemand is false.
          • Create a new FieldChildListValue instance and return it if createOnDemand is true.

        The createOnDemand parameter controls what shall be done when there is not yet a field value representing the specified field:

        • If the intent of the caller is to add or remove values in the returned list, createOnDemand should be true so that a FieldListValue instance is created and assigned to the item.
        • If the intent of the caller is to only look for the size of the list or determine whether it contains a value (i.e. read-only access), createOnDemand should be false to avoid creating a FieldListValue instance that is not necessary.
        Parameters:
        name - the name of the field.
        createOnDemand - indicates whether a new FieldListValue instance must be created if it does not yet exist.
        Returns:
        the list of values associated to the specified field.
      • getValueElementList

        MDWEList<Element> getValueElementList​(org.eclipse.emf.common.util.Enumerator enumerator,
                                              boolean createOnDemand)
        Returns the list of elements associated to the specified field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Here are the steps to identify the value:

        1. Return the value of the FieldElementListValue or FieldChildListValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. If no such field is found or if it has no default value:
          • Return an empty non modifiable list if createOnDemand is false.
          • Create a new FieldElementListValue instance and return it if createOnDemand is true.

        The createOnDemand parameter controls what shall be done when there is not yet a field value representing the specified field:

        • If the intent of the caller is to add or remove elements in the returned list, createOnDemand should be true so that a FieldElementListValue instance is created and assigned to the item.
        • If the intent of the caller is to only look for the size of the list or determine whether it contains an element (i.e. read-only access), createOnDemand should be false to avoid creating a FieldElementListValue instance that is not necessary.
        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        createOnDemand - indicates whether a new FieldElementListValue instance must be created if it does not yet exist.
        Returns:
        the list of elements associated to the specified field.
      • getValueChildList

        MDWEList<Element> getValueChildList​(org.eclipse.emf.common.util.Enumerator enumerator,
                                            boolean createOnDemand)
        Returns the list of elements associated to the specified field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Here are the steps to identify the value:

        1. Return the value of the FieldChildListValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. If no such field is found or if it has no default value:
          • Return an empty non modifiable list if createOnDemand is false.
          • Create a new FieldChildListValue instance and return it if createOnDemand is true.

        The createOnDemand parameter controls what shall be done when there is not yet a field value representing the specified field:

        • If the intent of the caller is to add or remove elements in the returned list, createOnDemand should be true so that a FieldChildListValue instance is created and assigned to the item.
        • If the intent of the caller is to only look for the size of the list or determine whether it contains an element (i.e. read-only access), createOnDemand should be false to avoid creating a FieldChildListValue instance that is not necessary.
        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        createOnDemand - indicates whether a new FieldChildListValue instance must be created if it does not yet exist.
        Returns:
        the list of elements associated to the specified field.
      • getValueList

        MDWEList<Object> getValueList​(org.eclipse.emf.common.util.Enumerator enumerator,
                                      boolean createOnDemand)
        Returns the list of values associated to the specified field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Here are the steps to identify the value:

        1. Return the value of the FieldListValue instance matching the specified field, if any.
        2. Return the default value of the specified field, if any.
        3. If no such field is found or if it has no default value:
          • Return an empty non modifiable list if createOnDemand is false.
          • Create a new FieldChildListValue instance and return it if createOnDemand is true.

        The createOnDemand parameter controls what shall be done when there is not yet a field value representing the specified field:

        • If the intent of the caller is to add or remove values in the returned list, createOnDemand should be true so that a FieldListValue instance is created and assigned to the item.
        • If the intent of the caller is to only look for the size of the list or determine whether it contains a value (i.e. read-only access), createOnDemand should be false to avoid creating a FieldListValue instance that is not necessary.
        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        createOnDemand - indicates whether a new FieldListValue instance must be created if it does not yet exist.
        Returns:
        the list of values associated to the specified field.
      • setValueBoolean

        void setValueBoolean​(String name,
                             boolean value)
        Changes the boolean value associated to the specified field. A new FieldBooleanValue instance is created if it does not yet exist for this field.
        Parameters:
        name - the name of the field.
        value - the new value of the field for this item.
      • setValueDate

        void setValueDate​(String name,
                          Date value)
        Changes the date value associated to the specified field. A new FieldDateValue instance is created if it does not yet exist for this field.
        Parameters:
        name - the name of the field.
        value - the new value of the field for this item.
      • setValueDouble

        void setValueDouble​(String name,
                            double value)
        Changes the double value associated to the specified field. A new FieldDoubleValue instance is created if it does not yet exist for this field.
        Parameters:
        name - the name of the field.
        value - the new value of the field for this item.
      • setValueFloat

        void setValueFloat​(String name,
                           float value)
        Changes the float value associated to the specified field. A new FieldFloatValue instance is created if it does not yet exist for this field.
        Parameters:
        name - the name of the field.
        value - the new value of the field for this item.
      • setValueInt

        void setValueInt​(String name,
                         int value)
        Changes the integer value associated to the specified field. A new FieldIntValue instance is created if it does not yet exist for this field.
        Parameters:
        name - the name of the field.
        value - the new value of the field for this item.
      • setValueLong

        void setValueLong​(String name,
                          long value)
        Changes the long value associated to the specified field. A new FieldLongValue instance is created if it does not yet exist for this field.
        Parameters:
        name - the name of the field.
        value - the new value of the field for this item.
      • setValueString

        void setValueString​(String name,
                            String value)
        Changes the String value associated to the specified field. A new FieldStringValue instance is created if it does not yet exist for this field.
        Parameters:
        name - the name of the field.
        value - the new value of the field for this item.
      • setValueRichText

        void setValueRichText​(String name,
                              RichText value)
        Changes the rich text value associated to the specified field. A new FieldRichTextValue instance is created if it does not yet exist for this field.
        Parameters:
        name - the name of the field.
        value - the new value of the field for this item.
      • setValueElement

        void setValueElement​(String name,
                             Element element)
        Changes the element associated to the specified field. A new FieldElementValue instance is created if it does not yet exist for this field.
        Parameters:
        name - the name of the field.
        element - the associated element of the field for this item.
      • setValueBoolean

        void setValueBoolean​(org.eclipse.emf.common.util.Enumerator enumerator,
                             boolean value)
        Changes the boolean value associated to the specified field. A new FieldBooleanValue instance is created if it does not yet exist for this field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        value - the new value of the field for this item.
      • setValueDate

        void setValueDate​(org.eclipse.emf.common.util.Enumerator enumerator,
                          Date value)
        Changes the date value associated to the specified field. A new FieldDateValue instance is created if it does not yet exist for this field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        value - the new value of the field for this item.
      • setValueDouble

        void setValueDouble​(org.eclipse.emf.common.util.Enumerator enumerator,
                            double value)
        Changes the double value associated to the specified field. A new FieldDoubleValue instance is created if it does not yet exist for this field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        value - the new value of the field for this item.
      • setValueFloat

        void setValueFloat​(org.eclipse.emf.common.util.Enumerator enumerator,
                           float value)
        Changes the float value associated to the specified field. A new FieldFloatValue instance is created if it does not yet exist for this field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        value - the new value of the field for this item.
      • setValueInt

        void setValueInt​(org.eclipse.emf.common.util.Enumerator enumerator,
                         int value)
        Changes the integer value associated to the specified field. A new FieldIntValue instance is created if it does not yet exist for this field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        value - the new value of the field for this item.
      • setValueLong

        void setValueLong​(org.eclipse.emf.common.util.Enumerator enumerator,
                          long value)
        Changes the long value associated to the specified field. A new FieldLongValue instance is created if it does not yet exist for this field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        value - the new value of the field for this item.
      • setValueString

        void setValueString​(org.eclipse.emf.common.util.Enumerator enumerator,
                            String value)
        Changes the String value associated to the specified field. A new FieldStringValue instance is created if it does not yet exist for this field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        value - the new value of the field for this item.
      • setValueRichText

        void setValueRichText​(org.eclipse.emf.common.util.Enumerator enumerator,
                              RichText value)
        Changes the rich text value associated to the specified field. A new FieldRichTextValue instance is created if it does not yet exist for this field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        value - the new value of the field for this item.
      • setValueElement

        void setValueElement​(org.eclipse.emf.common.util.Enumerator enumerator,
                             Element element)
        Changes the element associated to the specified field. A new FieldElementValue instance is created if it does not yet exist for this field.

        The enumerator enables to look for a field based either on its identifier or its name. A field matches the enumerator if the field identifier equals the enumerator getValue() or if the field name equals the enumerator getLiteral().

        Parameters:
        enumerator - an enumerator whose 'value' and 'literal' references a field.
        element - the associated element of the field for this item.
      • isVersionedItem

        boolean isVersionedItem()
        Tests if the Item is versioned.

        This test checks if the Major and the Minor Revision ID on the Item are not null and checks if the element is not the Live Item.

        Returns:
        true if the Item is versioned, otherwise false.
        Since:
        1.7.0