org.deegree_impl.gml
Class GMLCoordinates_Impl

java.lang.Object
  extended byorg.deegree_impl.gml.GMLCoordinates_Impl
All Implemented Interfaces:
GMLCoordinates

public class GMLCoordinates_Impl
extends java.lang.Object
implements GMLCoordinates

As an alternative to the sequence of <coords>, coordinates can also be conveyed by a single string. By default the coordinates in a tuple are separated by commas, and successive tuples are separated by a space character (#x20). While these delimiters are specified by several attributes, a user is free to define a localized coordinates list that is derived by restriction from gml:CoordinatesType. An instance document could then employ the xsi:type attribute to substitute the localized coordinates list wherever a element is expected; such a subtype could employ other delimiters to reflect local usage.

It is expected that a specialized client application will extract and validate string content, as these functions will not be performed by a general XML parser. The formatting attributes will assume their default values if they are not specified for a particular instance; the <coordinates> element must conform to the XML Schema fragments.

----------------------------------------------------------

Version:
07.02.2001

Author:
Andreas Poth

Field Summary
private  org.w3c.dom.Element element
           
 
Fields inherited from interface org.deegree.gml.GMLCoordinates
DEFAULT_CS, DEFAULT_DECIMAL, DEFAULT_TS
 
Constructor Summary
GMLCoordinates_Impl(org.w3c.dom.Element element)
          constructor: creates a GMLCoordinate with an element
 
Method Summary
static GMLCoordinates createGMLCoordinates(org.w3c.dom.Document doc, java.lang.String coordinates)
           
 org.w3c.dom.Element getAsElement()
          returns the GMLCoordinate as an element
 java.lang.String getCoordinates()
          returns the coordinates in the <coordinates> tag
 char getCoordinateSeperator()
          return the character used as coordinate seperator
 char getDecimalSeperator()
          return the character used as decimal seperator
 char getTupleSeperator()
          return the character used as tuple seperator
 void setCoordinates(java.lang.String coordinates)
          sets the coordinates in the <coordinates> tag
 void setCoordinateSeperator(char coordinateSeperator)
           
 void setDecimalSeperator(char decimalSeperator)
           
 void setTupleSeperator(char tupleSeperator)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

element

private org.w3c.dom.Element element
Constructor Detail

GMLCoordinates_Impl

public GMLCoordinates_Impl(org.w3c.dom.Element element)
constructor: creates a GMLCoordinate with an element

Method Detail

createGMLCoordinates

public static GMLCoordinates createGMLCoordinates(org.w3c.dom.Document doc,
                                                  java.lang.String coordinates)
Parameters:
doc -
coordinates -
Returns:

getAsElement

public org.w3c.dom.Element getAsElement()
returns the GMLCoordinate as an element


getCoordinates

public java.lang.String getCoordinates()
returns the coordinates in the <coordinates> tag

Specified by:
getCoordinates in interface GMLCoordinates

setCoordinates

public void setCoordinates(java.lang.String coordinates)
sets the coordinates in the <coordinates> tag

Specified by:
setCoordinates in interface GMLCoordinates

getDecimalSeperator

public char getDecimalSeperator()
return the character used as decimal seperator

Specified by:
getDecimalSeperator in interface GMLCoordinates

setDecimalSeperator

public void setDecimalSeperator(char decimalSeperator)
Specified by:
setDecimalSeperator in interface GMLCoordinates
See Also:
getDecimalSeperator()

getCoordinateSeperator

public char getCoordinateSeperator()
return the character used as coordinate seperator

Specified by:
getCoordinateSeperator in interface GMLCoordinates

setCoordinateSeperator

public void setCoordinateSeperator(char coordinateSeperator)
Specified by:
setCoordinateSeperator in interface GMLCoordinates
See Also:
getCoordinateSeperator()

getTupleSeperator

public char getTupleSeperator()
return the character used as tuple seperator

Specified by:
getTupleSeperator in interface GMLCoordinates

setTupleSeperator

public void setTupleSeperator(char tupleSeperator)
Specified by:
setTupleSeperator in interface GMLCoordinates
See Also:
getTupleSeperator()

toString

public java.lang.String toString()
Returns: