public interface ETypedElement extends ENamedElement
The following features are supported:
EcorePackage.getETypedElement()
Modifier and Type | Field and Description |
---|---|
static int |
UNBOUNDED_MULTIPLICITY
A value indicating that there is no
upper bound . |
static int |
UNSPECIFIED_MULTIPLICITY
A value indicating that there is an unspecified
upper bound . |
Modifier and Type | Method and Description |
---|---|
EGenericType |
getEGenericType()
Returns the value of the 'EGeneric Type' containment reference
|
EClassifier |
getEType()
Returns the value of the 'EType' reference
|
int |
getLowerBound()
Returns the value of the 'Lower Bound' attribute
|
int |
getUpperBound()
Returns the value of the 'Upper Bound' attribute.
|
boolean |
isMany()
Returns the value of the 'Many' attribute
|
boolean |
isOrdered()
Returns the value of the 'Ordered' attribute.
|
boolean |
isRequired()
Returns the value of the 'Required' attribute
|
boolean |
isUnique()
Returns the value of the 'Unique' attribute.
|
void |
setEGenericType(EGenericType value)
Sets the value of the '
EGeneric Type ' containment reference |
void |
setEType(EClassifier value)
Sets the value of the '
EType ' reference |
void |
setLowerBound(int value)
Sets the value of the '
Lower Bound ' attribute |
void |
setOrdered(boolean value)
Sets the value of the '
Ordered ' attribute |
void |
setUnique(boolean value)
Sets the value of the '
Unique ' attribute |
void |
setUpperBound(int value)
Sets the value of the '
Upper Bound ' attribute |
getName, setName
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
static final int UNBOUNDED_MULTIPLICITY
upper bound
.getUpperBound()
,
Constant Field Valuesstatic final int UNSPECIFIED_MULTIPLICITY
upper bound
.getUpperBound()
,
Constant Field Valuesboolean isOrdered()
"true"
.
It represents whether order is meaningful.
setOrdered(boolean)
,
EcorePackage.getETypedElement_Ordered()
void setOrdered(boolean value)
Ordered
' attribute.
value
- the new value of the 'Ordered' attribute.isOrdered()
boolean isUnique()
"true"
.
It represents whether values must be unique.
setUnique(boolean)
,
EcorePackage.getETypedElement_Unique()
void setUnique(boolean value)
Unique
' attribute.
value
- the new value of the 'Unique' attribute.isUnique()
int getLowerBound()
It represents the minimum number of values that must appear in a valid instance.
setLowerBound(int)
,
EcorePackage.getETypedElement_LowerBound()
void setLowerBound(int value)
Lower Bound
' attribute.
value
- the new value of the 'Lower Bound' attribute.getLowerBound()
int getUpperBound()
"1"
.
It represents the maximum number of values that must appear in a valid instance;
the value -1
, i.e., (@link #UNBOUNDED_MULTIPLICITY}}, represents unbounded,
and the value -2
, i.e., (@link #UNSPECIFIED_MULTIPLICITY}}, represents unspecified.
setUpperBound(int)
,
EcorePackage.getETypedElement_UpperBound()
void setUpperBound(int value)
Upper Bound
' attribute.
value
- the new value of the 'Upper Bound' attribute.getUpperBound()
boolean isMany()
It represents whether more than one value may appear in a valid instance.
EcorePackage.getETypedElement_Many()
boolean isRequired()
It represents whether at least one value is required for a valid instance.
EcorePackage.getETypedElement_Required()
EClassifier getEType()
It represents the type of the element
and is derived from the generic type
.
,
setEType(EClassifier)
,
EcorePackage.getETypedElement_EType()
void setEType(EClassifier value)
EType
' reference.
value
- the new value of the 'EType' reference.getEType()
EGenericType getEGenericType()
It represents the generic type of the element.
The type
is derived from this, i.e., it represents the erasure
of the generic type.
setEGenericType(EGenericType)
,
EcorePackage.getETypedElement_EGenericType()
void setEGenericType(EGenericType value)
EGeneric Type
' containment reference.
value
- the new value of the 'EGeneric Type' containment reference.getEGenericType()