public interface Item extends IdentifiedElement
IntegrityPackage.getItem()
Modifier and Type | Method and Description |
---|---|
Type |
getType()
Returns the value of the 'Type' container reference.
|
FieldValue |
getValue(org.eclipse.emf.common.util.Enumerator enumerator)
Returns the
FieldValue instance holding a value for the specified field, if any. |
FieldValue |
getValue(String name)
Returns the
FieldValue instance holding a value for the specified field name, if any. |
boolean |
getValueBoolean(org.eclipse.emf.common.util.Enumerator enumerator)
Returns the boolean value associated to the specified field.
|
boolean |
getValueBoolean(String name)
Returns the boolean value 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.
|
MDWEList<Element> |
getValueChildList(String name,
boolean createOnDemand)
Returns the list of elements associated to the specified field.
|
Date |
getValueDate(org.eclipse.emf.common.util.Enumerator enumerator)
Returns the date value associated to the specified field.
|
Date |
getValueDate(String name)
Returns the date value associated to the specified field.
|
double |
getValueDouble(org.eclipse.emf.common.util.Enumerator enumerator)
Returns the double value associated to the specified field.
|
double |
getValueDouble(String name)
Returns the double value associated to the specified field.
|
Element |
getValueElement(org.eclipse.emf.common.util.Enumerator enumerator)
Returns the element associated to the specified field.
|
Element |
getValueElement(String name)
Returns the element 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.
|
MDWEList<Element> |
getValueElementList(String name,
boolean createOnDemand)
Returns the list of elements associated to the specified field.
|
float |
getValueFloat(org.eclipse.emf.common.util.Enumerator enumerator)
Returns the float value associated to the specified field.
|
float |
getValueFloat(String name)
Returns the float value associated to the specified field.
|
int |
getValueInt(org.eclipse.emf.common.util.Enumerator enumerator)
Returns the integer value associated to the specified field.
|
int |
getValueInt(String name)
Returns the integer value 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.
|
MDWEList<Object> |
getValueList(String name,
boolean createOnDemand)
Returns the list of values associated to the specified field.
|
long |
getValueLong(org.eclipse.emf.common.util.Enumerator enumerator)
Returns the long value associated to the specified field.
|
long |
getValueLong(String name)
Returns the long 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.
|
RichText |
getValueRichText(String name)
Returns the rich text value associated to the specified field.
|
MDWEList<FieldValue> |
getValues()
Returns the value of the 'Values' containment reference list.
|
String |
getValueString(org.eclipse.emf.common.util.Enumerator enumerator)
Returns the String value associated to the specified field.
|
String |
getValueString(String name)
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(org.eclipse.emf.common.util.Enumerator enumerator,
boolean value)
Changes the boolean value associated to the specified field.
|
void |
setValueBoolean(String name,
boolean value)
Changes the boolean 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 |
setValueDate(String name,
Date value)
Changes the date 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 |
setValueDouble(String name,
double value)
Changes the double value 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 |
setValueElement(String name,
Element element)
Changes the element 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 |
setValueFloat(String name,
float value)
Changes the float 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 |
setValueInt(String name,
int value)
Changes the integer 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 |
setValueLong(String name,
long value)
Changes the long 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 |
setValueRichText(String name,
RichText value)
Changes the rich text 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.
|
void |
setValueString(String name,
String value)
Changes the String value associated to the specified field.
|
getId, setId
eUninitialize
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
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
Type getType()
Items
'.
setType(Type)
,
IntegrityPackage.getItem_Type()
,
Type.getItems()
void setType(Type value)
Type
' container reference.
value
- the new value of the 'Type' container reference.getType()
MDWEList<FieldValue> getValues()
FieldValue
.
IntegrityPackage.getItem_Values()
FieldValue getValue(String name)
FieldValue
instance holding a value for the specified field name, if any.name
- the name of the field.FieldValue
instance, null
if none.FieldValue getValue(org.eclipse.emf.common.util.Enumerator enumerator)
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()
.
enumerator
- an enumerator whose 'value' and 'literal' references a field.FieldValue
instance, null
if none.boolean getValueBoolean(String name)
Here are the steps to identify the value:
FieldBooleanValue
instance matching the specified field, if any.false
if no such field is found or if it has no default value.name
- the name of the field.Date getValueDate(String name)
Here are the steps to identify the value:
FieldDateValue
instance matching the specified field, if any.null
if no such field is found or if it has no default value.name
- the name of the field.double getValueDouble(String name)
Here are the steps to identify the value:
FieldDoubleValue
instance matching the specified field, if any.0.0
if no such field is found or if it has no default value.name
- the name of the field.Element getValueElement(String name)
Here are the steps to identify the value:
FieldElementValue
instance matching the specified field, if any.null
if no such field is found or if it has no default value.name
- the name of the field.float getValueFloat(String name)
Here are the steps to identify the value:
FieldFloatValue
instance matching the specified field, if any.0.0
if no such field is found or if it has no default value.name
- the name of the field.int getValueInt(String name)
Here are the steps to identify the value:
FieldIntValue
instance matching the specified field, if any.0
if no such field is found or if it has no default value.name
- the name of the field.long getValueLong(String name)
Here are the steps to identify the value:
FieldLongValue
instance matching the specified field, if any.0
if no such field is found or if it has no default value.name
- the name of the field.String getValueString(String name)
Here are the steps to identify the value:
FieldStringValue
instance matching the specified field, if any.name
- the name of the field.RichText getValueRichText(String name)
Here are the steps to identify the value:
FieldStringValue
or FieldRichTextValue
instance matching the specified field, if
any.name
- the name of the field.boolean getValueBoolean(org.eclipse.emf.common.util.Enumerator enumerator)
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:
FieldBooleanValue
instance matching the specified field, if any.false
if no such field is found or if it has no default value.enumerator
- an enumerator whose 'value' and 'literal' references a field.Date getValueDate(org.eclipse.emf.common.util.Enumerator enumerator)
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:
FieldDateValue
instance matching the specified field, if any.null
if no such field is found or if it has no default value.enumerator
- an enumerator whose 'value' and 'literal' references a field.double getValueDouble(org.eclipse.emf.common.util.Enumerator enumerator)
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:
FieldDoubleValue
instance matching the specified field, if any.0.0
if no such field is found or if it has no default value.enumerator
- an enumerator whose 'value' and 'literal' references a field.Element getValueElement(org.eclipse.emf.common.util.Enumerator enumerator)
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:
FieldElementValue
instance matching the specified field, if any.null
if no such field is found or if it has no default value.enumerator
- an enumerator whose 'value' and 'literal' references a field.float getValueFloat(org.eclipse.emf.common.util.Enumerator enumerator)
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:
FieldFloatValue
instance matching the specified field, if any.0.0
if no such field is found or if it has no default value.enumerator
- an enumerator whose 'value' and 'literal' references a field.int getValueInt(org.eclipse.emf.common.util.Enumerator enumerator)
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:
FieldIntValue
instance matching the specified field, if any.0
if no such field is found or if it has no default value.enumerator
- an enumerator whose 'value' and 'literal' references a field.long getValueLong(org.eclipse.emf.common.util.Enumerator enumerator)
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:
FieldLongValue
instance matching the specified field, if any.0
if no such field is found or if it has no default value.enumerator
- an enumerator whose 'value' and 'literal' references a field.String getValueString(org.eclipse.emf.common.util.Enumerator enumerator)
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:
FieldStringValue
instance matching the specified field, if any.enumerator
- an enumerator whose 'value' and 'literal' references a field.RichText getValueRichText(org.eclipse.emf.common.util.Enumerator enumerator)
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:
FieldStringValue
or FieldRichTextValue
instance matching the specified field, if
any.enumerator
- an enumerator whose 'value' and 'literal' references a field.MDWEList<Element> getValueElementList(String name, boolean createOnDemand)
Here are the steps to identify the value:
FieldElementListValue
or FieldChildListValue
instance matching the specified field, if
any.createOnDemand
is false.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:
createOnDemand
should be true
so
that a FieldElementListValue
instance is created and assigned to the item.createOnDemand
should be false
to avoid creating a FieldElementListValue
instance that is not necessary.
name
- the name of the field.createOnDemand
- indicates whether a new FieldElementListValue
instance must be created if it does not yet exist.MDWEList<Element> getValueChildList(String name, boolean createOnDemand)
Here are the steps to identify the value:
FieldChildListValue
instance matching the specified field, if any.createOnDemand
is false.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:
createOnDemand
should be true
so
that a FieldChildListValue
instance is created and assigned to the item.createOnDemand
should be false
to avoid creating a FieldChildListValue
instance that is not
necessary.name
- the name of the field.createOnDemand
- indicates whether a new FieldChildListValue
instance must be created if it does not yet exist.MDWEList<Object> getValueList(String name, boolean createOnDemand)
Here are the steps to identify the value:
FieldListValue
instance matching the specified field, if any.createOnDemand
is false.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:
createOnDemand
should be true
so
that a FieldListValue
instance is created and assigned to the item.createOnDemand
should be false
to avoid creating a FieldListValue
instance that is not necessary.name
- the name of the field.createOnDemand
- indicates whether a new FieldListValue
instance must be created if it does not yet exist.MDWEList<Element> getValueElementList(org.eclipse.emf.common.util.Enumerator enumerator, boolean createOnDemand)
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:
FieldElementListValue
or FieldChildListValue
instance matching the specified field, if
any.createOnDemand
is false.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:
createOnDemand
should be true
so
that a FieldElementListValue
instance is created and assigned to the item.createOnDemand
should be false
to avoid creating a FieldElementListValue
instance that is not necessary.
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.MDWEList<Element> getValueChildList(org.eclipse.emf.common.util.Enumerator enumerator, boolean createOnDemand)
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:
FieldChildListValue
instance matching the specified field, if any.createOnDemand
is false.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:
createOnDemand
should be true
so
that a FieldChildListValue
instance is created and assigned to the item.createOnDemand
should be false
to avoid creating a FieldChildListValue
instance that is not
necessary.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.MDWEList<Object> getValueList(org.eclipse.emf.common.util.Enumerator enumerator, boolean createOnDemand)
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:
FieldListValue
instance matching the specified field, if any.createOnDemand
is false.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:
createOnDemand
should be true
so
that a FieldListValue
instance is created and assigned to the item.createOnDemand
should be false
to avoid creating a FieldListValue
instance that is not necessary.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.void setValueBoolean(String name, boolean value)
FieldBooleanValue
instance is created if it does not yet exist for this field.name
- the name of the field.value
- the new value of the field for this item.void setValueDate(String name, Date value)
FieldDateValue
instance is created if it does not yet exist for this field.name
- the name of the field.value
- the new value of the field for this item.void setValueDouble(String name, double value)
FieldDoubleValue
instance is created if it does not yet exist for this field.name
- the name of the field.value
- the new value of the field for this item.void setValueFloat(String name, float value)
FieldFloatValue
instance is created if it does not yet exist for this field.name
- the name of the field.value
- the new value of the field for this item.void setValueInt(String name, int value)
FieldIntValue
instance is created if it does not yet exist for this field.name
- the name of the field.value
- the new value of the field for this item.void setValueLong(String name, long value)
FieldLongValue
instance is created if it does not yet exist for this field.name
- the name of the field.value
- the new value of the field for this item.void setValueString(String name, String value)
FieldStringValue
instance is created if it does not yet exist for this field.name
- the name of the field.value
- the new value of the field for this item.void setValueRichText(String name, RichText value)
FieldRichTextValue
instance is created if it does not yet exist for this field.name
- the name of the field.value
- the new value of the field for this item.void setValueElement(String name, Element element)
FieldElementValue
instance is created if it does not yet exist for this field.name
- the name of the field.element
- the associated element of the field for this item.void setValueBoolean(org.eclipse.emf.common.util.Enumerator enumerator, boolean value)
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()
.
enumerator
- an enumerator whose 'value' and 'literal' references a field.value
- the new value of the field for this item.void setValueDate(org.eclipse.emf.common.util.Enumerator enumerator, Date value)
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()
.
enumerator
- an enumerator whose 'value' and 'literal' references a field.value
- the new value of the field for this item.void setValueDouble(org.eclipse.emf.common.util.Enumerator enumerator, double value)
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()
.
enumerator
- an enumerator whose 'value' and 'literal' references a field.value
- the new value of the field for this item.void setValueFloat(org.eclipse.emf.common.util.Enumerator enumerator, float value)
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()
.
enumerator
- an enumerator whose 'value' and 'literal' references a field.value
- the new value of the field for this item.void setValueInt(org.eclipse.emf.common.util.Enumerator enumerator, int value)
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()
.
enumerator
- an enumerator whose 'value' and 'literal' references a field.value
- the new value of the field for this item.void setValueLong(org.eclipse.emf.common.util.Enumerator enumerator, long value)
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()
.
enumerator
- an enumerator whose 'value' and 'literal' references a field.value
- the new value of the field for this item.void setValueString(org.eclipse.emf.common.util.Enumerator enumerator, String value)
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()
.
enumerator
- an enumerator whose 'value' and 'literal' references a field.value
- the new value of the field for this item.void setValueRichText(org.eclipse.emf.common.util.Enumerator enumerator, RichText value)
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()
.
enumerator
- an enumerator whose 'value' and 'literal' references a field.value
- the new value of the field for this item.void setValueElement(org.eclipse.emf.common.util.Enumerator enumerator, Element element)
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()
.
enumerator
- an enumerator whose 'value' and 'literal' references a field.element
- the associated element of the field for this item.boolean isVersionedItem()
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.
true
if the Item
is versioned, otherwise false
.