org.deegree_impl.clients.wcasclient.model
Class Selection

java.lang.Object
  extended byorg.deegree_impl.clients.wcasclient.model.ModelList
      extended byorg.deegree_impl.clients.wcasclient.model.Selection

public class Selection
extends ModelList

Version:
$Revision: 1.9 $
Author:
Andreas Poth

Nested Class Summary
protected  class Selection.SelComparatorImpl
           
 
Nested classes inherited from class org.deegree_impl.clients.wcasclient.model.ModelList
ModelList.ComparatorImpl
 
Field Summary
 
Fields inherited from class org.deegree_impl.clients.wcasclient.model.ModelList
list
 
Constructor Summary
Selection()
          Creates a new instance of EntryList
Selection(int initialSize)
          Creates a new CatalogEntryList object with an initial size
 
Method Summary
 void addEntry(SelectionEntry entry)
          adds an entry (MD_Metadata) to the list
 SelectionEntry[] getAll()
          returns all base MD_Metadata objects
 SelectionEntry[] getAllSortedByName()
          returns all base MD_Metadata objects sorted by their names
 SelectionEntry[] getSelectedEntries()
          returns all entries of the selection that are marked as selected
 SelectionEntry getSelectionEntry(java.lang.String fileIdentifier, java.lang.String catalog)
          returns an entry (MD_Metadata object) identified by the passed fileIdentifier
 SelectionEntry removeSelectionEntry(java.lang.String fileIdentifier, java.lang.String catalog)
          removes an entry identified by its id from the list
 void setEntryToSelected(java.lang.String fileIdentifier, java.lang.String catalog, boolean selected)
          sets an entry of the selection identified by its ID and the catalog it belongs to as selected or not
 void unselectAll()
          marks all entries of the selection as unselected
 
Methods inherited from class org.deegree_impl.clients.wcasclient.model.ModelList
addEntry, clear, getAll, getAllSortedByName, getEntry, removeEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Selection

public Selection()
Creates a new instance of EntryList


Selection

public Selection(int initialSize)
Creates a new CatalogEntryList object with an initial size

Parameters:
initialSize -
Method Detail

addEntry

public void addEntry(SelectionEntry entry)
adds an entry (MD_Metadata) to the list

Parameters:
entry - a base MD_Metadata description

getSelectionEntry

public SelectionEntry getSelectionEntry(java.lang.String fileIdentifier,
                                        java.lang.String catalog)
returns an entry (MD_Metadata object) identified by the passed fileIdentifier

Parameters:
fileIdentifier -
catalog -
Returns:
base MD_Metadata object

setEntryToSelected

public void setEntryToSelected(java.lang.String fileIdentifier,
                               java.lang.String catalog,
                               boolean selected)
sets an entry of the selection identified by its ID and the catalog it belongs to as selected or not

Parameters:
fileIdentifier -
catalog -
selected -

unselectAll

public void unselectAll()
marks all entries of the selection as unselected


getSelectedEntries

public SelectionEntry[] getSelectedEntries()
returns all entries of the selection that are marked as selected

Returns:
all entries of the selection that are marked as selected

getAll

public SelectionEntry[] getAll()
returns all base MD_Metadata objects

Returns:
all base MD_Metadata objects

getAllSortedByName

public SelectionEntry[] getAllSortedByName()
returns all base MD_Metadata objects sorted by their names

Returns:

removeSelectionEntry

public SelectionEntry removeSelectionEntry(java.lang.String fileIdentifier,
                                           java.lang.String catalog)
removes an entry identified by its id from the list

Parameters:
fileIdentifier -
catalog -
Returns: