|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.upenn.crimson.ObjectHandles
public class ObjectHandles
ObjectHandles.
Field Summary | |
---|---|
private static javax.swing.DefaultComboBoxModel |
modelList
This is a duplicate list of Models in the modelPool. |
private static java.util.HashMap |
modelPool
The HashMap of all existing Models. |
private static ModelTableModel |
modelTableModel
This is a duplicate list of Models in the modelPool. |
private static java.util.HashMap |
partitionPool
The HashMap of all existing Partitions. |
private static java.util.HashMap |
queryPool
The set of all existing Queries. |
private static QueryTableModel |
queryTableModel
This is a duplicate list of Queries in the queryPool. |
private static javax.swing.DefaultComboBoxModel |
treeList
This is a duplicate list of Trees in the treePool. |
private static java.util.HashMap |
treePool
The HashMap of all existing Trees. |
private static TreeTableModel |
treeTableModel
This is a duplicate list of Trees in the treePool. |
Constructor Summary | |
---|---|
ObjectHandles()
|
Method Summary | |
---|---|
static void |
addModel(Model model)
This will add the model to the relevant lists. |
static void |
addPartition(Partition partition)
This will add the partition to the relevant lists. |
static void |
addQuery(Query query)
This will add the query to the relevant lists. |
static void |
addTree(Tree tree)
This will add the tree to the relevant lists. |
static void |
buildLists()
This will (re)build the table lists based on the current connection. |
static void |
clearLists()
This will clear the lists. |
static void |
clearModelLists()
This will clear the Model lists. |
static void |
clearPartitionLists()
This will clear the Partition lists. |
static void |
clearQueryLists()
This will clear the Query lists. |
static void |
clearTreeLists()
This will clear the Tree lists. |
static boolean |
containsModel(java.lang.String id)
Returns true if the Model object exists in the modelPool. |
static boolean |
containsPartition(java.lang.String id)
Returns true if the Partition object exists in the partitionPool. |
static boolean |
containsQuery(java.lang.String id)
Returns true if the Query object exists in the queryPool. |
static boolean |
containsTree(java.lang.String id)
Returns true if the Tree object exists in the treePool. |
static void |
deleteModel(java.lang.String id)
This will delete the model from the relevant lists. |
static void |
deleteQuery(java.lang.String id)
This will delete the query from the relevant lists. |
static Model |
getModel(java.lang.String id)
Returns the Model object for the given ID. |
static javax.swing.DefaultComboBoxModel |
getModelList()
|
static java.util.HashMap |
getModelPool()
|
static java.util.Set |
getModels()
Returns the set of all Model IDs. |
static ModelTableModel |
getModelTableModel()
|
static Partition |
getPartition(java.lang.String id)
Returns the Partition object for the given ID. |
static java.util.HashMap |
getPartitionPool()
|
static java.util.Set |
getPartitions()
Returns the set of all Partition IDs. |
static java.util.Set |
getQueries()
Returns the set of all Query IDs. |
static Query |
getQuery(java.lang.String id)
Returns the Query object for the given ID. |
static java.util.HashMap |
getQueryPool()
|
static QueryTableModel |
getQueryTableModel()
|
static Tree |
getTree(java.lang.String id)
Returns the Tree object for the given ID. |
static javax.swing.DefaultComboBoxModel |
getTreeList()
|
static java.util.HashMap |
getTreePool()
|
static java.util.Set |
getTrees()
Returns the set of all Tree IDs. |
static TreeTableModel |
getTreeTableModel()
|
static java.util.Iterator |
modelIterator()
Returns a iterator over all Models in modelPool. |
static java.util.Iterator |
partitionIterator()
Returns a iterator over all Partitions in partitionPool. |
static java.util.Iterator |
queryIterator()
Returns a iterator over all Querys in queryPool. |
static java.lang.String |
randomModelID(java.lang.String base)
Uses 'base' to create a random Model ID string that doesn't already exist in the modelPool. |
static java.lang.String |
randomQueryID(java.lang.String base)
Uses 'base' to create a random Query ID string that doesn't already exist in the queryPool. |
static java.lang.String |
randomTreeID(java.lang.String base)
Uses 'base' to create a random Tree ID string that doesn't already exist in the treePool. |
static java.util.Iterator |
treeIterator()
Returns a iterator over all Trees in treePool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.util.HashMap treePool
private static javax.swing.DefaultComboBoxModel treeList
private static TreeTableModel treeTableModel
private static java.util.HashMap partitionPool
private static java.util.HashMap modelPool
private static javax.swing.DefaultComboBoxModel modelList
private static ModelTableModel modelTableModel
private static java.util.HashMap queryPool
private static QueryTableModel queryTableModel
Constructor Detail |
---|
public ObjectHandles()
Method Detail |
---|
public static java.util.HashMap getTreePool()
public static javax.swing.DefaultComboBoxModel getTreeList()
public static TreeTableModel getTreeTableModel()
public static java.util.HashMap getPartitionPool()
public static java.util.HashMap getModelPool()
public static javax.swing.DefaultComboBoxModel getModelList()
public static ModelTableModel getModelTableModel()
public static java.util.HashMap getQueryPool()
public static QueryTableModel getQueryTableModel()
public static void clearLists()
public static void buildLists()
public static void clearTreeLists()
public static void addTree(Tree tree)
public static boolean containsTree(java.lang.String id)
public static Tree getTree(java.lang.String id)
public static java.util.Set getTrees()
public static java.util.Iterator treeIterator()
public static java.lang.String randomTreeID(java.lang.String base)
public static void clearPartitionLists()
public static void addPartition(Partition partition)
public static boolean containsPartition(java.lang.String id)
public static Partition getPartition(java.lang.String id)
public static java.util.Set getPartitions()
public static java.util.Iterator partitionIterator()
public static void clearModelLists()
public static void addModel(Model model)
public static void deleteModel(java.lang.String id)
public static boolean containsModel(java.lang.String id)
public static Model getModel(java.lang.String id)
public static java.util.Set getModels()
public static java.util.Iterator modelIterator()
public static java.lang.String randomModelID(java.lang.String base)
public static void clearQueryLists()
public static void addQuery(Query query)
public static void deleteQuery(java.lang.String id)
public static boolean containsQuery(java.lang.String id)
public static Query getQuery(java.lang.String id)
public static java.util.Set getQueries()
public static java.util.Iterator queryIterator()
public static java.lang.String randomQueryID(java.lang.String base)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |