public class DefaultDimension extends Object implements RemoteTimeDimension
As far as it implements RemoteTimeDimension it uses the same interface and documentation.
INTERVAL, MULTIPLE_VALUE, SINGLE_VALUE
Constructor and Description |
---|
DefaultDimension() |
DefaultDimension(String _name,
String _units,
String _unitSymbol,
String _dimensionExpression)
Creates a new instance of DefaultDimension.
|
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.
|
Object |
valueOf(String value)
Return the value of the String passed in the dimension's unit-natural type.
|
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public static void registerPersistent()
public String getName()
RemoteTimeDimension
getName
in interface RemoteTimeDimension
public String getUnit()
RemoteTimeDimension
getUnit
in interface RemoteTimeDimension
public String getUnitSymbol()
RemoteTimeDimension
getUnitSymbol
in interface RemoteTimeDimension
public String getLowLimit()
RemoteTimeDimension
getLowLimit
in interface RemoteTimeDimension
public String getHighLimit()
RemoteTimeDimension
getHighLimit
in interface RemoteTimeDimension
public String getResolution()
RemoteTimeDimension
getResolution
in interface RemoteTimeDimension
public boolean isValidValue(String value)
RemoteTimeDimension
isValidValue
in interface RemoteTimeDimension
public Object valueOf(String value) throws IllegalArgumentException
RemoteTimeDimension
valueOf
in interface RemoteTimeDimension
IllegalArgumentException
public String valueAt(int pos) throws ArrayIndexOutOfBoundsException
RemoteTimeDimension
valueAt
in interface RemoteTimeDimension
ArrayIndexOutOfBoundsException
public int valueCount()
RemoteTimeDimension
valueCount
in interface RemoteTimeDimension
public String getExpression()
RemoteTimeDimension
getExpression
in interface RemoteTimeDimension
public void setExpression(String expr)
RemoteTimeDimension
setExpression
in interface RemoteTimeDimension
public int getType()
RemoteTimeDimension
getType
in interface RemoteTimeDimension
public void compile() throws IllegalArgumentException
RemoteTimeDimension
compile
in interface RemoteTimeDimension
IllegalArgumentException