|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hl7.meta.Cardinality
public class Cardinality
A flyweight implementation for cardinalities of HL7 v3 attributes and associations.
| Field Summary | |
|---|---|
static int |
UNBOUNDED
|
| Method Summary | |
|---|---|
static Cardinality |
create(java.lang.String s)
Looks up cardinality by its string representation. |
int |
getMax()
Gets the maximum cardinality. |
int |
getMin()
Gets the minimum cardinality. |
java.lang.String |
toString()
Converts cardinality to its string representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int UNBOUNDED
| Method Detail |
|---|
public static Cardinality create(java.lang.String s)
s - the string to look up
java.lang.IllegalArgumentException - if the string cannot be looked uppublic int getMin()
public int getMax()
public java.lang.String toString()
toString in class java.lang.Objectjava.lang.IllegalArgumentException - on internal error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||