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 Type
getType()
Returns the value of the 'Type' container reference.FieldValue
getValue(String name)
Returns theFieldValue
instance holding a value for the specified field name, if any.FieldValue
getValue(org.eclipse.emf.common.util.Enumerator enumerator)
Returns theFieldValue
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 theItem
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 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 theFieldValue
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 theFieldValue
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 enumeratorgetLiteral()
.- 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:
- Return the value of the
FieldBooleanValue
instance matching the specified field, if any. - Return the default value of the specified field, if any.
- 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.
- 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
FieldDateValue
instance matching the specified field, if any. - Return the default value of the specified field, if any.
- 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.
- 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
FieldDoubleValue
instance matching the specified field, if any. - Return the default value of the specified field, if any.
- 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.
- 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
FieldElementValue
instance matching the specified field, if any. - Return the default value of the specified field, if any.
- 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.
- 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
FieldFloatValue
instance matching the specified field, if any. - Return the default value of the specified field, if any.
- 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.
- 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
FieldIntValue
instance matching the specified field, if any. - Return the default value of the specified field, if any.
- 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.
- 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
FieldLongValue
instance matching the specified field, if any. - Return the default value of the specified field, if any.
- 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.
- 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
FieldStringValue
instance 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
FieldStringValue
orFieldRichTextValue
instance 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
FieldBooleanValue
instance matching the specified field, if any. - Return the default value of the specified field, if any.
- 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.
- 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
FieldDateValue
instance matching the specified field, if any. - Return the default value of the specified field, if any.
- 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.
- 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
FieldDoubleValue
instance matching the specified field, if any. - Return the default value of the specified field, if any.
- 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.
- 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
FieldElementValue
instance matching the specified field, if any. - Return the default value of the specified field, if any.
- 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.
- 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
FieldFloatValue
instance matching the specified field, if any. - Return the default value of the specified field, if any.
- 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.
- 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
FieldIntValue
instance matching the specified field, if any. - Return the default value of the specified field, if any.
- 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.
- 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
FieldLongValue
instance matching the specified field, if any. - Return the default value of the specified field, if any.
- 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.
- 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
FieldStringValue
instance 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
FieldStringValue
orFieldRichTextValue
instance 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
FieldElementListValue
orFieldChildListValue
instance 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
createOnDemand
is false. - Create a new
FieldElementListValue
instance and return it ifcreateOnDemand
is true.
- Return an empty non modifiable list if
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 betrue
so that aFieldElementListValue
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 befalse
to avoid creating aFieldElementListValue
instance that is not necessary.
- Parameters:
name
- the name of the field.createOnDemand
- indicates whether a newFieldElementListValue
instance 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
FieldChildListValue
instance 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
createOnDemand
is false. - Create a new
FieldChildListValue
instance and return it ifcreateOnDemand
is true.
- Return an empty non modifiable list if
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 betrue
so that aFieldChildListValue
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 befalse
to avoid creating aFieldChildListValue
instance that is not necessary.
- Parameters:
name
- the name of the field.createOnDemand
- indicates whether a newFieldChildListValue
instance 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
FieldListValue
instance 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
createOnDemand
is false. - Create a new
FieldChildListValue
instance and return it ifcreateOnDemand
is true.
- Return an empty non modifiable list if
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 betrue
so that aFieldListValue
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 befalse
to avoid creating aFieldListValue
instance that is not necessary.
- Parameters:
name
- the name of the field.createOnDemand
- indicates whether a newFieldListValue
instance 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
FieldElementListValue
orFieldChildListValue
instance 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
createOnDemand
is false. - Create a new
FieldElementListValue
instance and return it ifcreateOnDemand
is true.
- Return an empty non modifiable list if
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 betrue
so that aFieldElementListValue
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 befalse
to avoid creating aFieldElementListValue
instance that is not necessary.
- Parameters:
enumerator
- an enumerator whose 'value' and 'literal' references a field.createOnDemand
- indicates whether a newFieldElementListValue
instance 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
FieldChildListValue
instance 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
createOnDemand
is false. - Create a new
FieldChildListValue
instance and return it ifcreateOnDemand
is true.
- Return an empty non modifiable list if
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 betrue
so that aFieldChildListValue
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 befalse
to avoid creating aFieldChildListValue
instance that is not necessary.
- Parameters:
enumerator
- an enumerator whose 'value' and 'literal' references a field.createOnDemand
- indicates whether a newFieldChildListValue
instance 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
FieldListValue
instance 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
createOnDemand
is false. - Create a new
FieldChildListValue
instance and return it ifcreateOnDemand
is true.
- Return an empty non modifiable list if
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 betrue
so that aFieldListValue
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 befalse
to avoid creating aFieldListValue
instance that is not necessary.
- Parameters:
enumerator
- an enumerator whose 'value' and 'literal' references a field.createOnDemand
- indicates whether a newFieldListValue
instance 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 newFieldBooleanValue
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 newFieldDateValue
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 newFieldDoubleValue
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 newFieldFloatValue
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 newFieldIntValue
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 newFieldLongValue
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 newFieldStringValue
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 newFieldRichTextValue
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 newFieldElementValue
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 newFieldBooleanValue
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 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 newFieldDateValue
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 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 newFieldDoubleValue
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 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 newFieldFloatValue
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 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 newFieldIntValue
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 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 newFieldLongValue
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 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 newFieldStringValue
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 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 newFieldRichTextValue
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 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 newFieldElementValue
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 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 theItem
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 theItem
is versioned, otherwisefalse
.- Since:
- 1.7.0
-
-