|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ocl.examples.pivot.internal.operations.MonikeredElementOperations org.eclipse.ocl.examples.pivot.internal.operations.MultiplicityElementOperations
public class MultiplicityElementOperations
A static utility class that provides operations related to 'Multiplicity Element' model objects.
The following operations are supported:
Validate Lower Ge0
Validate Upper Ge Lower
Lower Bound
Upper Bound
Is Multivalued
Includes Cardinality
Includes Multiplicity
Constructor Summary | |
---|---|
protected |
MultiplicityElementOperations()
|
Method Summary | |
---|---|
static boolean |
includesCardinality(MultiplicityElement multiplicityElement,
java.math.BigInteger C)
The query includesCardinality() checks whether the specified cardinality is valid for this multiplicity. |
static boolean |
includesMultiplicity(MultiplicityElement multiplicityElement,
MultiplicityElement M)
The query includesMultiplicity() checks whether this multiplicity includes all the cardinalities allowed by the specified multiplicity. |
static boolean |
isMultivalued(MultiplicityElement multiplicityElement)
The query isMultivalued() checks whether this multiplicity has an upper bound greater than one. |
static java.math.BigInteger |
lowerBound(MultiplicityElement multiplicityElement)
The query lowerBound() returns the lower bound of the multiplicity as an integer. |
static java.math.BigInteger |
upperBound(MultiplicityElement multiplicityElement)
The query upperBound() returns the upper bound of the multiplicity for a bounded multiplicity as an unlimited natural. |
static boolean |
validateLowerGe0(MultiplicityElement multiplicityElement,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
The lower bound must be a non-negative integer literal. |
static boolean |
validateUpperGeLower(MultiplicityElement multiplicityElement,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
The upper bound must be greater than or equal to the lower bound. |
Methods inherited from class org.eclipse.ocl.examples.pivot.internal.operations.MonikeredElementOperations |
---|
hasMoniker |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MultiplicityElementOperations()
Method Detail |
---|
public static boolean validateLowerGe0(MultiplicityElement multiplicityElement, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
multiplicityElement
- The receiving 'Multiplicity Element' model object.diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
public static boolean validateUpperGeLower(MultiplicityElement multiplicityElement, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
multiplicityElement
- The receiving 'Multiplicity Element' model object.diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
public static java.math.BigInteger lowerBound(MultiplicityElement multiplicityElement)
multiplicityElement
- The receiving 'Multiplicity Element' model object.
public static java.math.BigInteger upperBound(MultiplicityElement multiplicityElement)
multiplicityElement
- The receiving 'Multiplicity Element' model object.
public static boolean isMultivalued(MultiplicityElement multiplicityElement)
multiplicityElement
- The receiving 'Multiplicity Element' model object.
public static boolean includesCardinality(MultiplicityElement multiplicityElement, java.math.BigInteger C)
multiplicityElement
- The receiving 'Multiplicity Element' model object.
public static boolean includesMultiplicity(MultiplicityElement multiplicityElement, MultiplicityElement M)
multiplicityElement
- The receiving 'Multiplicity Element' model object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |