public class TimeDimension extends Object implements RemoteTimeDimension
At the moment this class was written the WMS TIME dimension is defined as the ISO8601 standard for expressing times.
As far as this class implements IFMapWMSDimension it uses the same interface and documentation.
INTERVAL, MULTIPLE_VALUE, SINGLE_VALUE| Constructor and Description |
|---|
TimeDimension() |
TimeDimension(String _units,
String _unitSymbol,
String _dimensionExpression)
Creates a new instance of TimeDimension.
|
| Modifier and Type | Method and Description |
|---|---|
void |
compile()
Analyzes and establishes the starting values for this dimension.
|
String |
getExpression()
Returns the expression describing this WMS Dimension
|
String |
getHighLimit()
This method returns the highest value of this dimension if this dimension is
specified as an interval or as a set of values, or the value specified if it
was a single value.
|
String |
getLowLimit()
This method returns the lowest value of this dimension if this dimension is
specified as an interval or as a set of values, or the value specified if it
was a single value.
|
String |
getName()
Return the dimension's name.
|
String |
getResolution()
This method returns the resolution supported by this dimension.
|
int |
getType()
Returns the type of the dimension expression.
|
String |
getUnit()
Return the unit used by this dimension.
|
String |
getUnitSymbol()
Returns the unit symbol (i.e.
|
boolean |
isValidValue(String value)
Checks if the value represented as string is a valid value by checking
if the dimensions supports it.
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistent() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setExpression(String expr)
Sets the expression describing this WMS Dimension
|
String |
valueAt(int pos)
Returns the value that would be at the position passed as argument.
|
int |
valueCount()
The amount of positions that this dimension contains.
|
GregorianCalendar |
valueOf(String value)
Return the value of the String passed in the dimension's unit-natural type.
|
public void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic static void registerPersistent()
public String getName()
RemoteTimeDimensiongetName in interface RemoteTimeDimensionpublic String getUnit()
RemoteTimeDimensiongetUnit in interface RemoteTimeDimensionpublic String getUnitSymbol()
RemoteTimeDimensiongetUnitSymbol in interface RemoteTimeDimensionpublic String getLowLimit()
RemoteTimeDimensiongetLowLimit in interface RemoteTimeDimensionpublic String getHighLimit()
RemoteTimeDimensiongetHighLimit in interface RemoteTimeDimensionpublic String getResolution()
RemoteTimeDimensiongetResolution in interface RemoteTimeDimensionpublic boolean isValidValue(String value)
RemoteTimeDimension
isValidValue in interface RemoteTimeDimensionpublic GregorianCalendar valueOf(String value) throws IllegalArgumentException
RemoteTimeDimensionvalueOf in interface RemoteTimeDimensionIllegalArgumentExceptionpublic String valueAt(int pos) throws ArrayIndexOutOfBoundsException
RemoteTimeDimensionvalueAt in interface RemoteTimeDimensionArrayIndexOutOfBoundsExceptionpublic int valueCount()
RemoteTimeDimensionvalueCount in interface RemoteTimeDimensionpublic String getExpression()
RemoteTimeDimensiongetExpression in interface RemoteTimeDimensionpublic void setExpression(String expr)
RemoteTimeDimensionsetExpression in interface RemoteTimeDimensionpublic int getType()
RemoteTimeDimensiongetType in interface RemoteTimeDimensionpublic void compile()
throws IllegalArgumentException
RemoteTimeDimensioncompile in interface RemoteTimeDimensionIllegalArgumentException