Interface Item
-
- All Superinterfaces:
Comparable<Object>,Element,org.eclipse.emf.ecore.EModelElement,org.eclipse.emf.ecore.EObject,IdentifiedElement,MDWEObject,MDWObject,org.eclipse.emf.common.notify.Notifier,com.sodius.mdw.corext.model.emf.OnDemandEObject
public interface Item extends IdentifiedElement
- See Also:
IntegrityPackage.getItem()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TypegetType()Returns the value of the 'Type' container reference.FieldValuegetValue(String name)Returns theFieldValueinstance holding a value for the specified field name, if any.FieldValuegetValue(org.eclipse.emf.common.util.Enumerator enumerator)Returns theFieldValueinstance holding a value for the specified field, if any.booleangetValueBoolean(String name)Returns the boolean value associated to the specified field.booleangetValueBoolean(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.DategetValueDate(String name)Returns the date value associated to the specified field.DategetValueDate(org.eclipse.emf.common.util.Enumerator enumerator)Returns the date value associated to the specified field.doublegetValueDouble(String name)Returns the double value associated to the specified field.doublegetValueDouble(org.eclipse.emf.common.util.Enumerator enumerator)Returns the double value associated to the specified field.ElementgetValueElement(String name)Returns the element associated to the specified field.ElementgetValueElement(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.floatgetValueFloat(String name)Returns the float value associated to the specified field.floatgetValueFloat(org.eclipse.emf.common.util.Enumerator enumerator)Returns the float value associated to the specified field.intgetValueInt(String name)Returns the integer value associated to the specified field.intgetValueInt(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.longgetValueLong(String name)Returns the long value associated to the specified field.longgetValueLong(org.eclipse.emf.common.util.Enumerator enumerator)Returns the long value associated to the specified field.RichTextgetValueRichText(String name)Returns the rich text value associated to the specified field.RichTextgetValueRichText(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.StringgetValueString(String name)Returns the String value associated to the specified field.StringgetValueString(org.eclipse.emf.common.util.Enumerator enumerator)Returns the String value associated to the specified field.booleanisVersionedItem()Tests if theItemis versioned.voidsetType(Type value)Sets the value of the 'Type' container reference.voidsetValueBoolean(String name, boolean value)Changes the boolean value associated to the specified field.voidsetValueBoolean(org.eclipse.emf.common.util.Enumerator enumerator, boolean value)Changes the boolean value associated to the specified field.voidsetValueDate(String name, Date value)Changes the date value associated to the specified field.voidsetValueDate(org.eclipse.emf.common.util.Enumerator enumerator, Date value)Changes the date value associated to the specified field.voidsetValueDouble(String name, double value)Changes the double value associated to the specified field.voidsetValueDouble(org.eclipse.emf.common.util.Enumerator enumerator, double value)Changes the double value associated to the specified field.voidsetValueElement(String name, Element element)Changes the element associated to the specified field.voidsetValueElement(org.eclipse.emf.common.util.Enumerator enumerator, Element element)Changes the element associated to the specified field.voidsetValueFloat(String name, float value)Changes the float value associated to the specified field.voidsetValueFloat(org.eclipse.emf.common.util.Enumerator enumerator, float value)Changes the float value associated to the specified field.voidsetValueInt(String name, int value)Changes the integer value associated to the specified field.voidsetValueInt(org.eclipse.emf.common.util.Enumerator enumerator, int value)Changes the integer value associated to the specified field.voidsetValueLong(String name, long value)Changes the long value associated to the specified field.voidsetValueLong(org.eclipse.emf.common.util.Enumerator enumerator, long value)Changes the long value associated to the specified field.voidsetValueRichText(String name, RichText value)Changes the rich text value associated to the specified field.voidsetValueRichText(org.eclipse.emf.common.util.Enumerator enumerator, RichText value)Changes the rich text value associated to the specified field.voidsetValueString(String name, String value)Changes the String value associated to the specified field.voidsetValueString(org.eclipse.emf.common.util.Enumerator enumerator, String value)Changes the String value associated to the specified field.-
Methods inherited from interface com.sodius.mdw.metamodel.integrity.Element
eUninitialize
-
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 com.sodius.mdw.metamodel.integrity.IdentifiedElement
getId, setId
-
Methods inherited from interface com.sodius.mdw.core.model.MDWObject
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
-
-
-
-
Method Detail
-
getType
Type getType()
Returns the value of the 'Type' container reference. It is bidirectional and its opposite is 'Items'.- Returns:
- the value of the 'Type' container reference.
- See Also:
setType(Type),IntegrityPackage.getItem_Type(),Type.getItems()
-
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()
-
getValues
MDWEList<FieldValue> getValues()
Returns the value of the 'Values' containment reference list. The list contents are of typeFieldValue.- Returns:
- the value of the 'Values' containment reference list.
- See Also:
IntegrityPackage.getItem_Values()
-
getValue
FieldValue getValue(String name)
Returns theFieldValueinstance holding a value for the specified field name, if any.- Parameters:
name- the name of the field.- Returns:
- the corresponding
FieldValueinstance,nullif none.
-
getValue
FieldValue getValue(org.eclipse.emf.common.util.Enumerator enumerator)
Returns theFieldValueinstance 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 enumeratorgetLiteral().- Parameters:
enumerator- an enumerator whose 'value' and 'literal' references a field.- Returns:
- the corresponding
FieldValueinstance,nullif none.
-
getValueBoolean
boolean getValueBoolean(String name)
Returns the boolean value associated to the specified field.Here are the steps to identify the value:
- Return the value of the
FieldBooleanValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- Return
falseif 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.
- Return the value of the
-
getValueDate
Date getValueDate(String name)
Returns the date value associated to the specified field.Here are the steps to identify the value:
- Return the value of the
FieldDateValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- Return
nullif 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.
- Return the value of the
-
getValueDouble
double getValueDouble(String name)
Returns the double value associated to the specified field.Here are the steps to identify the value:
- Return the value of the
FieldDoubleValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- Return
0.0if 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.
- Return the value of the
-
getValueElement
Element getValueElement(String name)
Returns the element associated to the specified field.Here are the steps to identify the value:
- Return the value of the
FieldElementValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- Return
nullif 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.
- Return the value of the
-
getValueFloat
float getValueFloat(String name)
Returns the float value associated to the specified field.Here are the steps to identify the value:
- Return the value of the
FieldFloatValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- Return
0.0if 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.
- Return the value of the
-
getValueInt
int getValueInt(String name)
Returns the integer value associated to the specified field.Here are the steps to identify the value:
- Return the value of the
FieldIntValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- Return
0if 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.
- Return the value of the
-
getValueLong
long getValueLong(String name)
Returns the long value associated to the specified field.Here are the steps to identify the value:
- Return the value of the
FieldLongValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- Return
0if 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.
- Return the value of the
-
getValueString
String getValueString(String name)
Returns the String value associated to the specified field.Here are the steps to identify the value:
- Return the value of the
FieldStringValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- 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.
- Return the value of the
-
getValueRichText
RichText getValueRichText(String name)
Returns the rich text value associated to the specified field.Here are the steps to identify the value:
- Return the value of the
FieldStringValueorFieldRichTextValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- 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.
- Return the value of the
-
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 enumeratorgetLiteral().Here are the steps to identify the value:
- Return the value of the
FieldBooleanValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- Return
falseif 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.
- Return the value of the
-
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 enumeratorgetLiteral().Here are the steps to identify the value:
- Return the value of the
FieldDateValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- Return
nullif 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.
- Return the value of the
-
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 enumeratorgetLiteral().Here are the steps to identify the value:
- Return the value of the
FieldDoubleValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- Return
0.0if 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.
- Return the value of the
-
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 enumeratorgetLiteral().Here are the steps to identify the value:
- Return the value of the
FieldElementValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- Return
nullif 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.
- Return the value of the
-
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 enumeratorgetLiteral().Here are the steps to identify the value:
- Return the value of the
FieldFloatValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- Return
0.0if 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.
- Return the value of the
-
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 enumeratorgetLiteral().Here are the steps to identify the value:
- Return the value of the
FieldIntValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- Return
0if 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.
- Return the value of the
-
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 enumeratorgetLiteral().Here are the steps to identify the value:
- Return the value of the
FieldLongValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- Return
0if 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.
- Return the value of the
-
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 enumeratorgetLiteral().Here are the steps to identify the value:
- Return the value of the
FieldStringValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- 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.
- Return the value of the
-
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 enumeratorgetLiteral().Here are the steps to identify the value:
- Return the value of the
FieldStringValueorFieldRichTextValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- 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.
- Return the value of the
-
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:
- Return the value of the
FieldElementListValueorFieldChildListValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- If no such field is found or if it has no default value:
- Return an empty non modifiable list if
createOnDemandis false. - Create a new
FieldElementListValueinstance and return it ifcreateOnDemandis true.
- Return an empty non modifiable list if
The
createOnDemandparameter 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,
createOnDemandshould betrueso that aFieldElementListValueinstance 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),
createOnDemandshould befalseto avoid creating aFieldElementListValueinstance that is not necessary.
- Parameters:
name- the name of the field.createOnDemand- indicates whether a newFieldElementListValueinstance must be created if it does not yet exist.- Returns:
- the list of elements associated to the specified field.
- Return the value of the
-
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:
- Return the value of the
FieldChildListValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- If no such field is found or if it has no default value:
- Return an empty non modifiable list if
createOnDemandis false. - Create a new
FieldChildListValueinstance and return it ifcreateOnDemandis true.
- Return an empty non modifiable list if
The
createOnDemandparameter 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,
createOnDemandshould betrueso that aFieldChildListValueinstance 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),
createOnDemandshould befalseto avoid creating aFieldChildListValueinstance that is not necessary.
- Parameters:
name- the name of the field.createOnDemand- indicates whether a newFieldChildListValueinstance must be created if it does not yet exist.- Returns:
- the list of elements associated to the specified field.
- Return the value of the
-
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:
- Return the value of the
FieldListValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- If no such field is found or if it has no default value:
- Return an empty non modifiable list if
createOnDemandis false. - Create a new
FieldChildListValueinstance and return it ifcreateOnDemandis true.
- Return an empty non modifiable list if
The
createOnDemandparameter 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,
createOnDemandshould betrueso that aFieldListValueinstance 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),
createOnDemandshould befalseto avoid creating aFieldListValueinstance that is not necessary.
- Parameters:
name- the name of the field.createOnDemand- indicates whether a newFieldListValueinstance must be created if it does not yet exist.- Returns:
- the list of values associated to the specified field.
- Return the value of the
-
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 enumeratorgetLiteral().Here are the steps to identify the value:
- Return the value of the
FieldElementListValueorFieldChildListValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- If no such field is found or if it has no default value:
- Return an empty non modifiable list if
createOnDemandis false. - Create a new
FieldElementListValueinstance and return it ifcreateOnDemandis true.
- Return an empty non modifiable list if
The
createOnDemandparameter 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,
createOnDemandshould betrueso that aFieldElementListValueinstance 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),
createOnDemandshould befalseto avoid creating aFieldElementListValueinstance that is not necessary.
- Parameters:
enumerator- an enumerator whose 'value' and 'literal' references a field.createOnDemand- indicates whether a newFieldElementListValueinstance must be created if it does not yet exist.- Returns:
- the list of elements associated to the specified field.
- Return the value of the
-
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 enumeratorgetLiteral().Here are the steps to identify the value:
- Return the value of the
FieldChildListValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- If no such field is found or if it has no default value:
- Return an empty non modifiable list if
createOnDemandis false. - Create a new
FieldChildListValueinstance and return it ifcreateOnDemandis true.
- Return an empty non modifiable list if
The
createOnDemandparameter 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,
createOnDemandshould betrueso that aFieldChildListValueinstance 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),
createOnDemandshould befalseto avoid creating aFieldChildListValueinstance that is not necessary.
- Parameters:
enumerator- an enumerator whose 'value' and 'literal' references a field.createOnDemand- indicates whether a newFieldChildListValueinstance must be created if it does not yet exist.- Returns:
- the list of elements associated to the specified field.
- Return the value of the
-
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 enumeratorgetLiteral().Here are the steps to identify the value:
- Return the value of the
FieldListValueinstance matching the specified field, if any. - Return the default value of the specified field, if any.
- If no such field is found or if it has no default value:
- Return an empty non modifiable list if
createOnDemandis false. - Create a new
FieldChildListValueinstance and return it ifcreateOnDemandis true.
- Return an empty non modifiable list if
The
createOnDemandparameter 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,
createOnDemandshould betrueso that aFieldListValueinstance 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),
createOnDemandshould befalseto avoid creating aFieldListValueinstance that is not necessary.
- Parameters:
enumerator- an enumerator whose 'value' and 'literal' references a field.createOnDemand- indicates whether a newFieldListValueinstance must be created if it does not yet exist.- Returns:
- the list of values associated to the specified field.
- Return the value of the
-
setValueBoolean
void setValueBoolean(String name, boolean value)
Changes the boolean value associated to the specified field. A newFieldBooleanValueinstance 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 newFieldDateValueinstance 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 newFieldDoubleValueinstance 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 newFieldFloatValueinstance 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 newFieldIntValueinstance 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 newFieldLongValueinstance 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 newFieldStringValueinstance 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 newFieldRichTextValueinstance 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 newFieldElementValueinstance 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 newFieldBooleanValueinstance 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 enumeratorgetLiteral().- 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 newFieldDateValueinstance 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 enumeratorgetLiteral().- 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 newFieldDoubleValueinstance 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 enumeratorgetLiteral().- 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 newFieldFloatValueinstance 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 enumeratorgetLiteral().- 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 newFieldIntValueinstance 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 enumeratorgetLiteral().- 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 newFieldLongValueinstance 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 enumeratorgetLiteral().- 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 newFieldStringValueinstance 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 enumeratorgetLiteral().- 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 newFieldRichTextValueinstance 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 enumeratorgetLiteral().- 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 newFieldElementValueinstance 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 enumeratorgetLiteral().- 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 theItemis versioned.This test checks if the Major and the Minor Revision ID on the
Itemare not null and checks if the element is not the Live Item.- Returns:
trueif theItemis versioned, otherwisefalse.- Since:
- 1.7.0
-
-