cgl.ogc.wms.gml_Impl
Class GMLProperty_Impl

java.lang.Object
  extended bycgl.ogc.wms.gml_Impl.GMLProperty_Impl
All Implemented Interfaces:
GMLProperty
Direct Known Subclasses:
GMLComplexProperty_Impl, GMLFeatureProperty_Impl, GMLGeoProperty_Impl

public class GMLProperty_Impl
extends java.lang.Object
implements GMLProperty

Title:

Description:

Copyright: Copyright (c) 2005

Company: Indiana University - Computer Science Dept.

Version:
1.0
Author:
Ahmet Sayar

Field Summary
protected  org.w3c.dom.Element element
           
 
Fields inherited from interface cgl.ogc.wms.gml.GMLProperty
BOX, FEATURE, FEATURECOLLECTION, GEOMETRY, LINESTRING, MULTIGEOMETRY, MULTILINESTRING, MULTIPOINT, MULTIPOLYGON, POINT, POLYGON, STRING, UNKNOWNTYPE
 
Constructor Summary
GMLProperty_Impl(org.w3c.dom.Element element)
          Creates a new GMLProperty_Impl object.
 
Method Summary
static GMLProperty createGMLProperty(org.w3c.dom.Document doc, java.lang.String propName)
          factory method to create a GMLProperty.
static GMLProperty createGMLProperty(org.w3c.dom.Document doc, java.lang.String propertyName, java.lang.String propertyValue)
          factory method to create a GMLProperty.
 org.w3c.dom.Element getAsElement()
           
 java.lang.String getName()
          returns the name of the property
 int getPropertyType()
          returns the type of a property.
 java.lang.Object getPropertyValue()
          returns the value of the property
 void setPropertyValue(java.lang.String value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

element

protected org.w3c.dom.Element element
Constructor Detail

GMLProperty_Impl

public GMLProperty_Impl(org.w3c.dom.Element element)
Creates a new GMLProperty_Impl object.

Parameters:
element - Element
Method Detail

createGMLProperty

public static GMLProperty createGMLProperty(org.w3c.dom.Document doc,
                                            java.lang.String propName)
factory method to create a GMLProperty. the property that will be return doesn't contain a value.

Parameters:
doc - Document
propName - String
Returns:
GMLProperty

createGMLProperty

public static GMLProperty createGMLProperty(org.w3c.dom.Document doc,
                                            java.lang.String propertyName,
                                            java.lang.String propertyValue)
factory method to create a GMLProperty.

Parameters:
doc - Document
propertyName - String
propertyValue - String
Returns:
GMLProperty

getAsElement

public org.w3c.dom.Element getAsElement()
Returns:
Element

getName

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

Specified by:
getName in interface GMLProperty
Returns:
String

getPropertyType

public int getPropertyType()
Description copied from interface: GMLProperty
returns the type of a property.

this method may be removed in future definitions of this interface because this can be determined by validiating the property name against the describing schema.

Specified by:
getPropertyType in interface GMLProperty
Returns:
int

getPropertyValue

public java.lang.Object getPropertyValue()
returns the value of the property

Specified by:
getPropertyValue in interface GMLProperty
Returns:
Object

setPropertyValue

public void setPropertyValue(java.lang.String value)
Specified by:
setPropertyValue in interface GMLProperty
Parameters:
value - String
See Also:
#getPropertyValue()

This set-method only supports text propetries. More complex property types must be inherited from this interface and define additional set-methods.


toString

public java.lang.String toString()
Returns:
String