public class DefaultDimension extends java.lang.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(java.lang.String _name,
java.lang.String _units,
java.lang.String _unitSymbol,
java.lang.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.
|
java.lang.String |
getExpression()
Returns the expression describing this WMS Dimension
|
java.lang.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.
|
java.lang.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.
|
java.lang.String |
getName()
Return the dimension's name.
|
java.lang.String |
getResolution()
This method returns the resolution supported by this dimension.
|
int |
getType()
Returns the type of the dimension expression.
|
java.lang.String |
getUnit()
Return the unit used by this dimension.
|
java.lang.String |
getUnitSymbol()
Returns the unit symbol (i.e.
|
boolean |
isValidValue(java.lang.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(java.lang.String expr)
Sets the expression describing this WMS Dimension
|
java.lang.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.
|
java.lang.Object |
valueOf(java.lang.String value)
Return the value of the String passed in the dimension's unit-natural type.
|
public DefaultDimension()
public DefaultDimension(java.lang.String _name, java.lang.String _units, java.lang.String _unitSymbol, java.lang.String _dimensionExpression)
_name
- _units
- _unitSymbol
- _dimensionExpression
- 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 java.lang.String getName()
RemoteTimeDimension
getName
in interface RemoteTimeDimension
public java.lang.String getUnit()
RemoteTimeDimension
getUnit
in interface RemoteTimeDimension
public java.lang.String getUnitSymbol()
RemoteTimeDimension
getUnitSymbol
in interface RemoteTimeDimension
public java.lang.String getLowLimit()
RemoteTimeDimension
getLowLimit
in interface RemoteTimeDimension
public java.lang.String getHighLimit()
RemoteTimeDimension
getHighLimit
in interface RemoteTimeDimension
public java.lang.String getResolution()
RemoteTimeDimension
getResolution
in interface RemoteTimeDimension
public boolean isValidValue(java.lang.String value)
RemoteTimeDimension
isValidValue
in interface RemoteTimeDimension
public java.lang.Object valueOf(java.lang.String value) throws java.lang.IllegalArgumentException
RemoteTimeDimension
valueOf
in interface RemoteTimeDimension
java.lang.IllegalArgumentException
public java.lang.String valueAt(int pos) throws java.lang.ArrayIndexOutOfBoundsException
RemoteTimeDimension
valueAt
in interface RemoteTimeDimension
java.lang.ArrayIndexOutOfBoundsException
public int valueCount()
RemoteTimeDimension
valueCount
in interface RemoteTimeDimension
public java.lang.String getExpression()
RemoteTimeDimension
getExpression
in interface RemoteTimeDimension
public void setExpression(java.lang.String expr)
RemoteTimeDimension
setExpression
in interface RemoteTimeDimension
public int getType()
RemoteTimeDimension
getType
in interface RemoteTimeDimension
public void compile() throws java.lang.IllegalArgumentException
RemoteTimeDimension
compile
in interface RemoteTimeDimension
java.lang.IllegalArgumentException