Package org.eclipse.epsilon.epl.dom
Class Cardinality
java.lang.Object
org.eclipse.epsilon.common.module.AbstractModuleElement
org.eclipse.epsilon.epl.dom.Cardinality
- All Implemented Interfaces:
ModuleElement
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
static final int
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected static int
int
int
boolean
isInBounds
(int n) boolean
isMany()
boolean
isOne()
boolean
Methods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, getChildren, getComments, getData, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri, toString
-
Field Details
-
UNBOUNDED
public static final int UNBOUNDED- See Also:
-
lowerBound
protected int lowerBound -
upperBound
protected int upperBound
-
-
Constructor Details
-
Cardinality
public Cardinality() -
Cardinality
public Cardinality(int lowerBound, int upperBound)
-
-
Method Details
-
build
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classAbstractModuleElement
-
getBound
-
getUpperBound
public int getUpperBound() -
getLowerBound
public int getLowerBound() -
isUnbounded
public boolean isUnbounded() -
isMany
public boolean isMany() -
isOne
public boolean isOne() -
isInBounds
public boolean isInBounds(int n)
-