|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object i3.dragos.gm.core.schema.Cardinality
public class Cardinality
The cardinality of edge types, attributes etc.
Field Summary | |
---|---|
static Cardinality |
OBL_SET
Set contains [1:n] elements. |
static Cardinality |
OBL_UNIQUE
Set contains [1:1] elements. |
static Cardinality |
OPT_SET
Set contains [0:n] elements. |
static Cardinality |
OPT_UNIQUE
Set contains [0:1] elements. |
Constructor Summary | |
---|---|
Cardinality(int min,
int max)
Creates a new Cardinality instance. |
Method Summary | |
---|---|
boolean |
applys(int value)
Determines whether value is in the interval of this Cardinality. |
boolean |
equals(java.lang.Object o)
|
int |
getMaximum()
Returns the mininum for this Cardinality. |
int |
getMinimum()
Returns the maxinum for this Cardinality. |
int |
hashCode()
|
java.lang.String |
toString()
Returns a String representation of this Cardinality. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Cardinality OPT_UNIQUE
public static final Cardinality OBL_UNIQUE
public static final Cardinality OPT_SET
public static final Cardinality OBL_SET
Constructor Detail |
---|
public Cardinality(int min, int max)
min
- The mininum for this Cardinality.max
- The maxinum for this Cardinality.Method Detail |
---|
public int getMinimum()
public int getMaximum()
public boolean applys(int value)
value
is in the interval of this Cardinality.
value
- the value to check.
true
if the given value is contained in this interval, false
otherwise.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |