|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.cmc.tcgui.datadef.AttributeType
cz.cmc.tcgui.datadef.AttributeTypeSet
AttributeTypeSet is used to mark attributes which store set of elements.
| Constructor Summary | |
AttributeTypeSet()
Creates new AttributeTypeSet with min and max cardinality set to 1. |
|
AttributeTypeSet(int minCardinality,
int maxCardinality)
Creates new AttributeTypeSet with min and max cardinality set to given values. |
|
| Method Summary | |
boolean |
addSetElement(String newSetElement)
Adds new String element to list(set) of allowed set elements. |
Object |
clone()
Clones this AttributeTypeSet |
boolean |
containsElement(String element)
Tests whether element is already present in the set definition domain. |
int |
getMaxCardinality()
Returns value of maximal cardinality of this AttributeTypeSet. |
int |
getMinCardinality()
Returns value of minimal cardinality of this AttributeTypeSet. |
boolean |
removeSetElement(String setElement)
Removes String element from list(set) of allowed set elements. |
String[] |
setElements()
Returns array of Strings, containing allowed set elements. |
String |
toString()
Returns String representing this object. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AttributeTypeSet()
public AttributeTypeSet(int minCardinality,
int maxCardinality)
minCardinality - limit for minimal cardinalitymaxCardinality - limit for maximal cardinality| Method Detail |
public int getMinCardinality()
public int getMaxCardinality()
public boolean addSetElement(String newSetElement)
newSetElement - String representing new element of set domain
public boolean removeSetElement(String setElement)
setElement - String representing element of set domain
public String[] setElements()
public boolean containsElement(String element)
element - String representing the element to be tested
public Object clone()
clone in class AttributeTypepublic String toString()
toString in class AttributeType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||