org.geotools.gml3.bindings
Class GML3EncodingUtils

java.lang.Object
  extended by org.geotools.gml3.bindings.GML3EncodingUtils

public class GML3EncodingUtils
extends java.lang.Object

Utility class for gml3 encoding.

Author:
Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org, Ben Caradoc-Davies, CSIRO Exploration and Mining

Constructor Summary
GML3EncodingUtils()
           
 
Method Summary
static org.w3c.dom.Element AbstractFeatureType_encode(java.lang.Object object, org.w3c.dom.Document document, org.w3c.dom.Element value, XSDIdRegistry idSet)
           
static java.util.List AbstractFeatureType_getProperties(java.lang.Object object, org.eclipse.xsd.XSDElementDeclaration element, SchemaIndex schemaIndex, Configuration configuration)
           
static void encodeClientProperties(org.opengis.feature.Property complex, org.w3c.dom.Element element)
          Encode any client properties (XML attributes) found in the UserData map of a ComplexAttribute as XML attributes of the element.
static void encodeSimpleContent(org.opengis.feature.ComplexAttribute complex, org.w3c.dom.Document document, org.w3c.dom.Element element)
          Encode the simpleContent property of a ComplexAttribute (if any) as an XML text node.
static java.util.List getProperties(com.vividsolutions.jts.geom.Geometry geometry)
          Helper method used to implement ComplexBinding.getProperties(Object) for bindings of geometry reference types: GeometryPropertyType PointPropertyType LineStringPropertyType PolygonPropertyType
static java.lang.Object getProperty(com.vividsolutions.jts.geom.Geometry geometry, javax.xml.namespace.QName name)
          Helper method used to implement ComplexBinding.getProperty(Object, QName) for bindings of geometry reference types: GeometryPropertyType PointPropertyType LineStringPropertyType PolygonPropertyType
static java.lang.Object getSimpleContent(org.opengis.feature.ComplexAttribute complex)
          Return the simple content of a ComplexAttribute if it represents a complexType with simpleContent, otherwise null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GML3EncodingUtils

public GML3EncodingUtils()
Method Detail

getProperty

public static java.lang.Object getProperty(com.vividsolutions.jts.geom.Geometry geometry,
                                           javax.xml.namespace.QName name)
Helper method used to implement ComplexBinding.getProperty(Object, QName) for bindings of geometry reference types:


getProperties

public static java.util.List getProperties(com.vividsolutions.jts.geom.Geometry geometry)
Helper method used to implement ComplexBinding.getProperties(Object) for bindings of geometry reference types:


AbstractFeatureType_encode

public static org.w3c.dom.Element AbstractFeatureType_encode(java.lang.Object object,
                                                             org.w3c.dom.Document document,
                                                             org.w3c.dom.Element value,
                                                             XSDIdRegistry idSet)

AbstractFeatureType_getProperties

public static java.util.List AbstractFeatureType_getProperties(java.lang.Object object,
                                                               org.eclipse.xsd.XSDElementDeclaration element,
                                                               SchemaIndex schemaIndex,
                                                               Configuration configuration)

encodeClientProperties

public static void encodeClientProperties(org.opengis.feature.Property complex,
                                          org.w3c.dom.Element element)
Encode any client properties (XML attributes) found in the UserData map of a ComplexAttribute as XML attributes of the element.

Parameters:
complex - the ComplexAttribute to search for client properties
element - the element to which XML attributes should be added

encodeSimpleContent

public static void encodeSimpleContent(org.opengis.feature.ComplexAttribute complex,
                                       org.w3c.dom.Document document,
                                       org.w3c.dom.Element element)
Encode the simpleContent property of a ComplexAttribute (if any) as an XML text node.

A property named simpleContent is a convention for representing XSD complexType with simpleContent in GeoAPI.

Parameters:
complex - the ComplexAttribute to be searched for simpleContent
document - the containing document
element - the element to which text node should be added

getSimpleContent

public static java.lang.Object getSimpleContent(org.opengis.feature.ComplexAttribute complex)
Return the simple content of a ComplexAttribute if it represents a complexType with simpleContent, otherwise null.

Parameters:
complex -
Returns:


Copyright © 1996-2010 Geotools. All Rights Reserved.