org.deegree_impl.graphics.sld
Class Geometry_Impl

java.lang.Object
  extended byorg.deegree_impl.graphics.sld.Geometry_Impl
All Implemented Interfaces:
Geometry, Marshallable

class Geometry_Impl
extends java.lang.Object
implements Geometry, Marshallable

The Geometry element is optional and if it is absent then the default geometry property of the feature type that is used in the containing FeatureStyleType is used. The precise meaning of default geometry property is system-dependent. Most frequently, feature types will have only a single geometry property.

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

Version:
$Revision: 1.7 $ $Date: 2004/03/05 16:46:49 $
Author:
Katharina Lupp

Field Summary
private  GMLGeometry geometryAsGML
           
private  java.lang.String propertyName
           
 
Constructor Summary
(package private) Geometry_Impl(java.lang.String propertyName, GMLGeometry geometryAsGML)
          constructor initializing the class with the
 
Method Summary
 java.lang.String exportAsXML()
          exports the content of the Geometry as XML formated String
 GMLGeometry getGeometryAsGML()
          In principle, a fixed geometry could be defined using GML or operators could be defined for computing a geometry from references or literals.
 java.lang.String getPropertyName()
          returns the name of the geometry property
 void setGeometryAsGML(GMLGeometry geometryAsGML)
          sets the
 void setPropertyName(java.lang.String propertyName)
          sets the name of the geometry property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

geometryAsGML

private GMLGeometry geometryAsGML

propertyName

private java.lang.String propertyName
Constructor Detail

Geometry_Impl

Geometry_Impl(java.lang.String propertyName,
              GMLGeometry geometryAsGML)
constructor initializing the class with the

Method Detail

getPropertyName

public java.lang.String getPropertyName()
returns the name of the geometry property

Specified by:
getPropertyName in interface Geometry
Returns:
the name of the geometry property

setPropertyName

public void setPropertyName(java.lang.String propertyName)
sets the name of the geometry property

Specified by:
setPropertyName in interface Geometry
Parameters:
propertyName - the name of the geometry property

getGeometryAsGML

public GMLGeometry getGeometryAsGML()
In principle, a fixed geometry could be defined using GML or operators could be defined for computing a geometry from references or literals. This enbales the calling client to submitt the geometry to be rendered by the WMS directly. (This is not part of the SLD XML-schema)

Specified by:
getGeometryAsGML in interface Geometry
Returns:
the GMLGeometry

setGeometryAsGML

public void setGeometryAsGML(GMLGeometry geometryAsGML)
sets the

Specified by:
setGeometryAsGML in interface Geometry
Parameters:
geometryAsGML - the GMLGeometry

exportAsXML

public java.lang.String exportAsXML()
exports the content of the Geometry as XML formated String

Specified by:
exportAsXML in interface Marshallable
Returns:
xml representation of the Geometry