|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectecologylab.generic.Debug
ecologylab.xml.ElementState
ecologylab.xml.types.element.VectorState<T>
public class VectorState<T extends ElementState>
An ElementState XML tree node for collecting a set of nested elements, using a Vector (synchronized).
In general, one should useArrayListState
for this kind of functionality, but, in some cases, there may be concurrency
issues, in which case, this more expensive class will be required.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ecologylab.xml.ElementState |
|---|
ElementState.ClassToCollectionMap, ElementState.DeclarationStyle, ElementState.xml_attribute, ElementState.xml_class, ElementState.xml_classes, ElementState.xml_collection, ElementState.xml_leaf, ElementState.xml_map, ElementState.xml_nested, ElementState.xml_tag |
| Field Summary | |
|---|---|
java.util.Vector<T> |
set
|
| Fields inherited from class ecologylab.xml.ElementState |
|---|
CDATA, ESTIMATE_CHARS_PER_FIELD, FLOATING_PRECISION_OFF, MARSHALLING_PARAMS, NORMAL, UTF16, UTF16_LE, UTF8, XML_FILE_HEADER |
| Fields inherited from interface ecologylab.xml.XMLTranslationExceptionTypes |
|---|
FILE_NOT_FOUND, IO_EXCEPTION, NULL_PURL, UNKNOWN |
| Constructor Summary | |
|---|---|
VectorState()
|
|
| Method Summary | |
|---|---|
void |
add(T elementState)
|
void |
clear()
Remove all elements from our Collection. |
protected java.util.Collection<? extends ElementState> |
getCollection(java.lang.Class thatClass)
Return the collection object associated with this |
void |
recycle()
Clear data structures and references to enable garbage collecting of resources associated with this. |
int |
size()
Get the number of elements in the set. |
| Methods inherited from class ecologylab.generic.Debug |
|---|
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.util.Vector<T extends ElementState> set
| Constructor Detail |
|---|
public VectorState()
| Method Detail |
|---|
public void add(T elementState)
protected java.util.Collection<? extends ElementState> getCollection(java.lang.Class thatClass)
getCollection in class ElementStatethatClass - The class of the ElementState superclass that could be stored in a Collection.
public void clear()
public int size()
public void recycle()
ElementState
recycle in class ElementStateElementState.recycle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||