|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTStringSet
This class represents sets of strings that are represented in the database
as a comma separated list of the strings it contains.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private boolean |
dirty
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
(package private) Hashtable |
stringTable
|
private String |
value
|
Constructor Summary | |
WTStringSet()
No arg constructor. |
|
WTStringSet(String value)
Constructor that takes a comma separated string as argument. |
Method Summary | |
void |
add(String element)
Adds a new element to set. |
boolean |
contains(String element)
Determines if element belongs to set. |
Enumeration |
elements()
Returns an enumeration with the elements of the set. |
boolean |
equals(Object obj)
Determines whether the set is equal to the one passed as parameter. |
protected String |
getValue()
Gets the value of the attribute: value; Comma separated list that represents the set internally. |
int |
hashCode()
Returns hash code. |
boolean |
includes(WTStringSet set)
Determines if the set includes the set passed as argument. |
WTStringSet |
intersection(WTStringSet set)
Subtracts from the set all elements that don't belong to the set passed as argument. |
boolean |
isEmpty()
Determines whether set is empty. |
WTStringSet |
minus(WTStringSet set)
Subtracts from the set all elements of the set passed as argument. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(WTStringSet thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
remove(String element)
Adds a new element to set. |
private void |
setStringValue()
|
protected void |
setTable()
|
protected void |
setValue(String a_Value)
Sets the value of the attribute: value; Comma separated list that represents the set internally. |
int |
size()
Returns the number of elements in the set. |
String |
toString()
Returns internal representation of the set. |
WTStringSet |
union(WTStringSet set)
Adds to the set all elements of the set passed as argument. |
private void |
valueValidate(String a_Value)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private String value
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Hashtable stringTable
private boolean dirty
Constructor Detail |
public WTStringSet()
public WTStringSet(String value) throws DatastoreException
value
-
DatastoreException
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(WTStringSet thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
protected String getValue()
protected void setValue(String a_Value) throws WTPropertyVetoException
a_Value
-
WTPropertyVetoException
private void valueValidate(String a_Value) throws WTPropertyVetoException
a_Value
-
WTPropertyVetoException
public void add(String element) throws WTException
element
-
WTException
public void remove(String element) throws WTException
element
-
WTException
public boolean contains(String element)
element
-
public boolean isEmpty()
public int size()
public Enumeration elements()
public String toString()
public boolean equals(Object obj)
obj
-
public boolean includes(WTStringSet set)
set
-
public WTStringSet union(WTStringSet set) throws WTException
set
-
WTException
public WTStringSet minus(WTStringSet set) throws WTException
set
-
WTException
public WTStringSet intersection(WTStringSet set) throws WTException
set
-
WTException
public int hashCode()
protected void setTable()
private void setStringValue()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |