org.deegree_impl.clients.wcasclient.model
Class SelectionEntry

java.lang.Object
  extended byorg.deegree_impl.clients.wcasclient.model.SelectionEntry

public class SelectionEntry
extends java.lang.Object

represents an entry of a users selectin of catalog entries. An entry is described by its ID, title, the catalog it is completly described at and the bounding box that bases the resaerch where the entry was found.

Version:
$Revision: 1.3 $
Author:
Andreas Poth

Field Summary
private  int[] availability
           
private  GM_Envelope bbox
           
private  java.lang.String catalog
           
static int DOWNLOAD
           
private  java.lang.String id
           
private  boolean selected
           
private  java.lang.String title
           
static int UNKNOWN
           
static int VIEW
           
 
Constructor Summary
SelectionEntry(java.lang.String id, java.lang.String title, java.lang.String catalog, GM_Envelope bbox, int[] availability)
          Creates a new SelectionEntry object.
 
Method Summary
 int[] getAvailability()
          returns a list of service types that offer the dataset assigned to this entry
 GM_Envelope getBoundingBox()
          returns the bounding box that bases the request the entry was find at
 java.lang.String getCatalog()
          returns the name of the catalog the catalog/selection entry belongs to
 java.lang.String getId()
          returns the id of the catalog/selection entry
 java.lang.String getTitle()
          returns the title of the catalog/selection entry
 boolean isSelected()
          returns true if the entry is marked as selected
 void setAvailability(int[] availability)
          set a list of service types that offer the dataset assigned to this entry
 void setSelected(boolean selected)
          sets the entry to 'selected' or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN

public static int UNKNOWN

VIEW

public static int VIEW

DOWNLOAD

public static int DOWNLOAD

bbox

private GM_Envelope bbox

catalog

private java.lang.String catalog

id

private java.lang.String id

title

private java.lang.String title

selected

private boolean selected

availability

private int[] availability
Constructor Detail

SelectionEntry

public SelectionEntry(java.lang.String id,
                      java.lang.String title,
                      java.lang.String catalog,
                      GM_Envelope bbox,
                      int[] availability)
Creates a new SelectionEntry object. For default the entry is set to 'not selected'

Parameters:
id - unique identifier of a catalog entry
title - title of the catalog entry
catalog - name of the catalog the entry belongs to
bbox - bbox that bases the request the entry was find at
Method Detail

getId

public java.lang.String getId()
returns the id of the catalog/selection entry

Returns:
id of the catalog/selection entry

getTitle

public java.lang.String getTitle()
returns the title of the catalog/selection entry

Returns:
title of the catalog/selection entry

getCatalog

public java.lang.String getCatalog()
returns the name of the catalog the catalog/selection entry belongs to

Returns:
name of the catalog the catalog/selection entry belongs to

getBoundingBox

public GM_Envelope getBoundingBox()
returns the bounding box that bases the request the entry was find at

Returns:
bounding box that bases the request the entry was find at

isSelected

public boolean isSelected()
returns true if the entry is marked as selected


setSelected

public void setSelected(boolean selected)
sets the entry to 'selected' or not.


getAvailability

public int[] getAvailability()
returns a list of service types that offer the dataset assigned to this entry


setAvailability

public void setAvailability(int[] availability)
set a list of service types that offer the dataset assigned to this entry