org.gcube.data.spd.obisplugin.util
Class ProductKey

java.lang.Object
  extended by org.gcube.data.spd.obisplugin.util.ProductKey

public class ProductKey
extends Object

Author:
"Federico De Faveri defaveri@isti.cnr.it"

Field Summary
protected  int dataSetId
           
protected  Calendar fromDate
           
static String KEY_SEPARATOR
           
protected  Coordinate lowerBound
           
protected  int taxonId
           
protected  Calendar toDate
           
protected  Coordinate upperBound
           
 
Constructor Summary
ProductKey(int taxonId, int dataSetId, Coordinate upperBound, Coordinate lowerBound, Calendar fromDate, Calendar toDate)
           
 
Method Summary
 int getDataSetId()
           
 SearchFilters getFilter()
           
 Calendar getFromDate()
           
static String getKeySeparator()
           
 Coordinate getLowerBound()
           
 int getTaxonId()
           
 Calendar getToDate()
           
 Coordinate getUpperBound()
           
static ProductKey parse(String key)
           
protected static Calendar parseCalendar(String value)
           
static String toString(int taxonId, int dataSetId, Coordinate upperBound, Coordinate lowerBound, Calendar fromDate, Calendar toDate)
           
static String toString(int taxonId, int dataSetId, SearchFilters filters)
           
static String toString(ProductKey key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_SEPARATOR

public static final String KEY_SEPARATOR
See Also:
Constant Field Values

taxonId

protected int taxonId

dataSetId

protected int dataSetId

upperBound

protected Coordinate upperBound

lowerBound

protected Coordinate lowerBound

fromDate

protected Calendar fromDate

toDate

protected Calendar toDate
Constructor Detail

ProductKey

public ProductKey(int taxonId,
                  int dataSetId,
                  Coordinate upperBound,
                  Coordinate lowerBound,
                  Calendar fromDate,
                  Calendar toDate)
Parameters:
taxonId -
dataSetId -
upperBound -
lowerBound -
fromDate -
toDate -
Method Detail

parse

public static ProductKey parse(String key)
                        throws Exception
Throws:
Exception

parseCalendar

protected static Calendar parseCalendar(String value)

toString

public static String toString(int taxonId,
                              int dataSetId,
                              SearchFilters filters)

toString

public static String toString(ProductKey key)

toString

public static String toString(int taxonId,
                              int dataSetId,
                              Coordinate upperBound,
                              Coordinate lowerBound,
                              Calendar fromDate,
                              Calendar toDate)

getKeySeparator

public static String getKeySeparator()
Returns:
the keySeparator

getTaxonId

public int getTaxonId()
Returns:
the taxonId

getDataSetId

public int getDataSetId()
Returns:
the dataSetId

getUpperBound

public Coordinate getUpperBound()
Returns:
the upperBound

getLowerBound

public Coordinate getLowerBound()
Returns:
the lowerBound

getFromDate

public Calendar getFromDate()
Returns:
the fromDate

getToDate

public Calendar getToDate()
Returns:
the toDate

getFilter

public SearchFilters getFilter()


Copyright © 2013. All Rights Reserved.