public class DefaultDimension extends ISOMetadata implements Dimension
Limitations:
XML
instead.Defined in the sis-metadata
module
identifiers, LOGGER
Constructor and Description |
---|
DefaultDimension()
Constructs an initially empty dimension.
|
DefaultDimension(Dimension object)
Constructs a new instance initialized with the values from the specified metadata object.
|
DefaultDimension(DimensionNameType dimensionName,
int dimensionSize)
Creates a dimension initialized to the given type and size.
|
Modifier and Type | Method and Description |
---|---|
static DefaultDimension |
castOrCopy(Dimension object)
Returns a SIS metadata implementation with the values of the given arbitrary implementation.
|
InternationalString |
getDimensionDescription()
Return the axis dimension description.
|
DimensionNameType |
getDimensionName()
Returns the name of the axis.
|
Integer |
getDimensionSize()
Returns the number of elements along the axis.
|
InternationalString |
getDimensionTitle()
Returns the enhancement/ modifier of the dimension name.
|
Double |
getResolution()
Returns the degree of detail in the grid dataset.
|
void |
setDimensionDescription(InternationalString newValue)
Sets the axis dimension description.
|
void |
setDimensionName(DimensionNameType newValue)
Sets the name of the axis.
|
void |
setDimensionSize(Integer newValue)
Sets the number of elements along the axis.
|
void |
setDimensionTitle(InternationalString newValue)
Sets the enhancement/ modifier of the dimension name.
|
void |
setResolution(Double newValue)
Sets the degree of detail in the grid dataset.
|
getIdentifierMap, getIdentifiers, getStandard
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, singleton, unmodifiable, writeCollection, writeList, writeSet
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
public DefaultDimension()
public DefaultDimension(DimensionNameType dimensionName, int dimensionSize)
dimensionName
- The name of the axis, or null
if none, or null
if none.dimensionSize
- The number of elements along the axis, or null
if none.IllegalArgumentException
- if dimensionSize
is negative.public DefaultDimension(Dimension object)
object
- The metadata to copy values from, or null
if none.castOrCopy(Dimension)
public static DefaultDimension castOrCopy(Dimension object)
null
, then this method returns null
.DefaultDimension
, then it is returned unchanged.DefaultDimension
instance is created using the
copy constructor
and returned. Note that this is a shallow copy operation, since the other
metadata contained in the given object are not recursively copied.object
- The object to get as a SIS implementation, or null
if none.null
if the argument was null.public DimensionNameType getDimensionName()
getDimensionName
in interface Dimension
null
.public void setDimensionName(DimensionNameType newValue)
newValue
- The new dimension name.@ValueRange(minimum=0.0) public Integer getDimensionSize()
getDimensionSize
in interface Dimension
null
.public void setDimensionSize(Integer newValue)
newValue
- The new dimension size, or null
.IllegalArgumentException
- if the given value is negative.@ValueRange(minimum=0.0, isMinIncluded=false) public Double getResolution()
getResolution
in interface Dimension
null
.public void setResolution(Double newValue)
newValue
- The new resolution, or null
.IllegalArgumentException
- if the given value is NaN, zero or negative.public InternationalString getDimensionTitle()
public void setDimensionTitle(InternationalString newValue)
newValue
- The new enhancement/ modifier of the dimension name.public InternationalString getDimensionDescription()
public void setDimensionDescription(InternationalString newValue)
newValue
- The new axis dimension description.Copyright © 2010–2015 The Apache Software Foundation. All rights reserved.