|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ebi.adfconverter.tools.checker.Cardinality
Class for checking item or field cardinality in a table. It define the number of possible occurences for an object (item or field)
| Constructor Summary | |
Cardinality(java.lang.String name,
int lowerBound)
Constructor of a cardinality Object with a given lower bound |
|
Cardinality(java.lang.String name,
int lowerBound,
int upperBound)
Constructor of a cardinality Object with a given lower bound |
|
| Method Summary | |
boolean |
availableElement()
Infocates if an element can still be add |
int |
getAvailableNumber()
Retrieves the number of still available element |
int |
getElementNumber()
Retrieves the number of already found element |
int |
getlowerBound()
Retrieves the lower bound |
java.lang.String |
getName()
Retrieves the name of the element |
int |
getupperBound()
Retrieves the upper bound |
void |
init()
init the cardinality. |
boolean |
minimumAchieve()
indicates if the minimal number of the element has been achieved |
void |
newElement()
To count when a new element has been bound and update for still available elements |
java.lang.String |
toString()
Represents the cardinality as String |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Cardinality(java.lang.String name,
int lowerBound)
name - the name of the element with the given cardinalitylowerBound - a specified lowerboud for cardinality
public Cardinality(java.lang.String name,
int lowerBound,
int upperBound)
name - the name of the element with the given cardinalitylowerBound - a specified lowerbound for cardinalityupperBound - a specified upperbound for cardinality| Method Detail |
public boolean availableElement()
public int getAvailableNumber()
public int getElementNumber()
public int getlowerBound()
public java.lang.String getName()
public int getupperBound()
public void init()
public boolean minimumAchieve()
public void newElement()
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||