| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class describes the object CSP-range as described in the document
"CCL Language Specification v2.01" section 4.2.2.1, p12.
This object represents a complete domain, to be used when explicit
enumeration of values would be too inefficient. the two items "Range"
and "Tuple-range" are optional however one or the other must be present.
Field Summary | |
final static String | CSPRANGE Name a CSPRange is labelled with when represented as a Content object. |
final static String | LIST_RANGE Name of the Element where the range of values a CSPRange may take are listed. |
final static String | RANGE |
final static String | VALUES Name of the Attribute where the values are listed. |
Constructor Summary | |
CSPRange() Creates an empty CSPRange object. | |
CSPRange(Content content) Constructs a new CSPRange object. |
Method Summary | |
void | addRange(String str) Adds a domain range to the CSPRange. |
void | addRange(Vector range) Adds a domain range to the CSPRange. |
void | addTuple(Tuple tuple) Adds a Tuple to the CSPRange. |
CSPRange | copy() Returns a copy of this CSPRange object. |
Vector | getRange() Returns a Vector of the Strings that comprise the Range Value held in the CSPRange. |
String | getRangeType() Return the type of values that may be held in this CSPRange object. |
Vector | getTuples() Returns a Vector of Tuple objects. |
static void | main(String[] args) Used for testing. |
void | setRangeType(String str) Sets the type of values that are held in this CSPRange object. |
Content | toContent() Creates a new Content object populates it with the Values held in this class then returns it. |
String | toString() Returns a String representation of a CSPRange. |
Field Detail |
public final static String CSPRANGE
public final static String LIST_RANGE
public final static String RANGE
public final static String VALUES
Constructor Detail |
public CSPRange()
public CSPRange(Content content)
Method Detail |
public void addRange(String str)
public void addRange(Vector range)
public void addTuple(Tuple tuple)
public CSPRange copy()
public Vector getRange()
public String getRangeType()
public Vector getTuples()
public static void main(String[] args)
public void setRangeType(String str)
public Content toContent()
public String toString()
Association Links |
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.util.Vector
to Class java.lang.String
to Class java.util.Vector
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |