|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.io.coverage.PropertyParser.Key
A key for fetching property in a format independent way. For example, the northern
limit of an image way be named "Limit North"
is some metadata files,
and "ULY"
(as Upper Left Y) in other metadata files. The
PropertyParser.Y_MAXIMUM
allows to fetch this property without knowledge of
the actual name used in the underlying metadata file.
Keys are case-insensitive. Furthermore, trailing and leading spaces are ignored.
Any succession of one ore more unicode whitespace characters (as of
Character.isSpaceChar(char)
is understood as equal to a single
'_'
character. For example, the key "false easting"
is considered equals to "false_easting"
.
Constructor Summary | |
PropertyParser.Key(java.lang.String name)
Construct a new key. |
Method Summary | |
boolean |
equals(java.lang.Object object)
Compare this key with the supplied key for equality. |
java.lang.Object |
getValue(GridCoverage coverage)
Returns the value for this key from the specified grid coverage. |
int |
hashCode()
Returns a hash code value. |
java.lang.String |
toString()
Returns the name for this key. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PropertyParser.Key(java.lang.String name)
name
- The key name.Method Detail |
public java.lang.Object getValue(GridCoverage coverage)
PropertyParser.X_MINIMUM
will returns
coverage.getEnvelope().getMinimum(0)
.
coverage
- The grid coverage from which to fetch the value.
null
if none.public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object object)
'_'
character, as
specified in this class documentation.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |