| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class describes the object CSP-value as described in the document
"CCL Language Specification v2.01" section 4.2.2.2, p12.
This object represents an option. In general this can be a tuple- hence
the variable is an ordered list of domain terms.
May contain the following information:
Npart integer 1
Elements List {domain-term} {blue, green, red}
Tags Set {symbol} {T1, T2}
Field Summary | |
final static String | CSPVALUE Name CSPValue objects are labelled with when represented as Content objects. |
final static String | ELEMENTS Used to reference the Element that contains the Value when represented as a Content object. |
final static String | NAME |
final static String | NPART Name of the Attribute the Npart value is stored with when represented in Content objects. |
final static String | TAGS |
final static String | VALUE Name of the Attribute the Values contained in this class are stored as in Content objects. |
Constructor Summary | |
CSPValue() Constructs an Empty CSPValue. | |
CSPValue(Content content) Constructs a new CSPValue object and populates it using the Data held in the passed Content object. |
Method Summary | |
void | addElement(String str) Adds an Element to the CSPValue. |
void | addTag(String str) Adds a Tag to the CSPValue. |
CSPValue | copy() Returns a copy of this CSPValue object. |
Vector | getElements() Returns a Vector of all the Elements held |
String | getElementString() Returns a String representation of the collection of Elements |
int | getNparts() Returns the number of items in the Elements Parameter. |
Vector | getTags() Retrieves the set of all the tags. |
String | getTagString() Returns a String representation of the collection of Tags If there are more than one will return them surrounded by brackets. |
static void | main(String[] args) Used for testing. |
Content | toContent() Returns a Content object populated with the Data held in this CSPValue object. |
String | toString() Returns a String representation of this CSPValue object. |
Field Detail |
public final static String CSPVALUE
public final static String ELEMENTS
public final static String NAME
public final static String NPART
public final static String TAGS
public final static String VALUE
Constructor Detail |
public CSPValue()
public CSPValue(Content content)
Method Detail |
public void addElement(String str)
public void addTag(String str)
public CSPValue copy()
public Vector getElements()
public String getElementString()
public int getNparts()
public Vector getTags()
public String getTagString()
public static void main(String[] args)
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.lang.String
to Class java.lang.String
to Class java.util.Vector
to Class java.util.Vector
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |