org.jscience.ml.gml.infoset
Class CoordinateImpl

java.lang.Object
  extended by org.jscience.ml.gml.infoset.CoordinateImpl
All Implemented Interfaces:
Coordinate

public class CoordinateImpl
extends java.lang.Object
implements Coordinate

A convenience class that implements the Coordinate interface.


Constructor Summary
CoordinateImpl(java.lang.String value)
          Constructor.
 
Method Summary
 java.math.BigDecimal getValue()
          Provides access to the value of this coordinate.
 java.lang.String toString()
          Returns the string representation of the coordinate decimal value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoordinateImpl

public CoordinateImpl(java.lang.String value)
Constructor.

Parameters:
value - The value used for the construction of this coordinate in string representation.
Method Detail

getValue

public java.math.BigDecimal getValue()
Provides access to the value of this coordinate. The value is BigDecimal because it doesn't lose precision. One may obtain other representations from BigDecimal.

Specified by:
getValue in interface Coordinate
Returns:
Returns the value as BigDecimal. Cannot be null.

toString

public java.lang.String toString()
Returns the string representation of the coordinate decimal value.

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!