|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MultiplicityElement
A representation of the model object 'Multiplicity Element'. A multiplicity is a definition of an inclusive interval of non-negative integers beginning with a lower bound and ending with a (possibly infinite) upper bound. A multiplicity element embeds this information to specify the allowable cardinalities for an instantiation of this element.
The following features are supported:
PivotPackage.getMultiplicityElement()
Method Summary | |
---|---|
java.math.BigInteger |
getLower()
Returns the value of the 'Lower' attribute. |
java.math.BigInteger |
getUpper()
Returns the value of the 'Upper' attribute. |
boolean |
includesCardinality(java.math.BigInteger C)
The query includesCardinality() checks whether the specified cardinality is valid for this multiplicity. |
boolean |
includesMultiplicity(MultiplicityElement M)
The query includesMultiplicity() checks whether this multiplicity includes all the cardinalities allowed by the specified multiplicity. |
boolean |
isMultivalued()
The query isMultivalued() checks whether this multiplicity has an upper bound greater than one. |
boolean |
isOrdered()
Returns the value of the 'Is Ordered' attribute. |
boolean |
isUnique()
Returns the value of the 'Is Unique' attribute. |
java.math.BigInteger |
lowerBound()
The query lowerBound() returns the lower bound of the multiplicity as an integer. |
void |
setIsOrdered(boolean value)
Sets the value of the ' Is Ordered ' attribute. |
void |
setIsUnique(boolean value)
Sets the value of the ' Is Unique ' attribute. |
void |
setLower(java.math.BigInteger value)
Sets the value of the ' Lower ' attribute. |
void |
setUpper(java.math.BigInteger value)
Sets the value of the ' Upper ' attribute. |
java.math.BigInteger |
upperBound()
The query upperBound() returns the upper bound of the multiplicity for a bounded multiplicity as an unlimited natural. |
Methods inherited from interface org.eclipse.ocl.examples.pivot.Element |
---|
allOwnedElements, createOwnedComment, getETarget, getOwnedComment, validateNotOwnSelf |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.ocl.examples.pivot.util.Visitable |
---|
accept, eClass |
Method Detail |
---|
boolean isOrdered()
"false"
.
For a multivalued multiplicity, this attribute specifies whether the values in an instantiation of this element are sequentially ordered.
setIsOrdered(boolean)
,
PivotPackage.getMultiplicityElement_IsOrdered()
void setIsOrdered(boolean value)
Is Ordered
' attribute.
value
- the new value of the 'Is Ordered' attribute.isOrdered()
boolean isUnique()
"true"
.
For a multivalued multiplicity, this attributes specifies whether the values in an instantiation of this element are unique.
setIsUnique(boolean)
,
PivotPackage.getMultiplicityElement_IsUnique()
void setIsUnique(boolean value)
Is Unique
' attribute.
value
- the new value of the 'Is Unique' attribute.isUnique()
java.math.BigInteger getLower()
"1"
.
Specifies the lower bound of the multiplicity interval.
setLower(BigInteger)
,
PivotPackage.getMultiplicityElement_Lower()
void setLower(java.math.BigInteger value)
Lower
' attribute.
value
- the new value of the 'Lower' attribute.getLower()
java.math.BigInteger getUpper()
"1"
.
Specifies the upper bound of the multiplicity interval.
setUpper(BigInteger)
,
PivotPackage.getMultiplicityElement_Upper()
void setUpper(java.math.BigInteger value)
Upper
' attribute.
value
- the new value of the 'Upper' attribute.getUpper()
java.math.BigInteger lowerBound()
java.math.BigInteger upperBound()
boolean isMultivalued()
boolean includesCardinality(java.math.BigInteger C)
boolean includesMultiplicity(MultiplicityElement M)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |