|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.peace_tools.workspace.ClassifierList
public class ClassifierList
A class to encapsulate information about a list of DBClassifier entries that have already been configured in this work space. This class is instantiated from the Work space class. This class is relatively straightforward in that it merely contains a list of DBClassifier entires. In addition, it facilitates marshalling and unmarshalling of data and handling generation of notification events on change.
Field Summary | |
---|---|
private java.util.ArrayList<DBClassifier> |
classifiers
The list of DB classifier objects that have been configured and added to this list. |
Constructor Summary | |
---|---|
ClassifierList()
The default constructor. |
Method Summary | |
---|---|
static ClassifierList |
create(org.w3c.dom.Element dbClassListNode)
Helper method to utilize data from a DOM tree to create a suitable ClassifierList entry. |
java.util.ArrayList<DBClassifier> |
getClassifiers()
Obtain reference to a clone of list of classifiers. |
int |
getSize()
Convenience method to determine the number of classifiers in this list. |
void |
marshall(org.w3c.dom.Element workspace)
Method to marshall the data stored in this object to become part of a DOM tree element passed in. |
void |
marshall(java.io.PrintWriter out)
Method to marshall the data stored in this object directly to a XML fragement. |
void |
set(java.util.ArrayList<DBClassifier> classifierList)
Method to set a new set of classifier entries. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.ArrayList<DBClassifier> classifiers
Constructor Detail |
---|
public ClassifierList()
Method Detail |
---|
public static ClassifierList create(org.w3c.dom.Element dbClassListNode) throws java.lang.Exception
dbClassListNode
- The DOM element to be used for creating the
list and to be used for creating the DBClassifier entries.
java.lang.Exception
- This method throws an exception when errors occur
during reading and processing elements from the DOM node.public void set(java.util.ArrayList<DBClassifier> classifierList)
classifierList
- The new list of classifier entries to be set for
classifiying EST entries based on their origin data base names.public java.util.ArrayList<DBClassifier> getClassifiers()
Note: The list of classifiers returned by this method is a clone and modifying them does not modify the classifiers in this class.
public int getSize()
public final void marshall(org.w3c.dom.Element workspace)
workspace
- The DOM element corresponding to the Workspace
node that contains this entry.public final void marshall(java.io.PrintWriter out)
out
- The stream to which the XML must be serialized.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |