org.geotools.gml3.bindings
Class GML3EncodingUtils

Object
  extended by GML3EncodingUtils
Direct Known Subclasses:
GML32EncodingUtils

public class GML3EncodingUtils
extends 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()
           
GML3EncodingUtils(XSD gml)
           
 
Method Summary
static Element AbstractFeatureType_encode(Object object, Document document, Element value, XSDIdRegistry idSet)
          Deprecated. use AbstractFeatureTypeEncode(Object, Document, Element, XSDIdRegistry)
static List AbstractFeatureType_getProperties(Object object, XSDElementDeclaration element, SchemaIndex schemaIndex, Configuration configuration)
          Deprecated. use {@link #AbstractFeatureTypeGetProperties(Object, XSDElementDeclaration, SchemaIndex, Configuration)
 Element AbstractFeatureTypeEncode(Object object, Document document, Element value, XSDIdRegistry idSet)
           
 List AbstractFeatureTypeGetProperties(Object object, XSDElementDeclaration element, SchemaIndex schemaIndex, Configuration configuration)
           
static void encodeClientProperties(Property complex, 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(ComplexAttribute complex, Document document, Element element)
          Encode the simpleContent property of a ComplexAttribute (if any) as an XML text node.
 List GeometryPropertyType_GetProperties(Geometry geometry)
          Helper method used to implement ComplexBinding.getProperties(Object) for bindings of geometry reference types: GeometryPropertyType PointPropertyType LineStringPropertyType PolygonPropertyType
 Object GeometryPropertyType_GetProperty(Geometry geometry, QName name)
          Helper method used to implement ComplexBinding.getProperty(Object, QName) for bindings of geometry reference types: GeometryPropertyType PointPropertyType LineStringPropertyType PolygonPropertyType
 Object GeometryPropertyType_GetProperty(Geometry geometry, QName name, boolean makeEmpty)
          Helper method used to implement ComplexBinding.getProperty(Object, QName) for bindings of geometry reference types: GeometryPropertyType PointPropertyType LineStringPropertyType PolygonPropertyType
static List getProperties(Geometry geometry)
          Deprecated. use GeometryPropertyType_GetProperties(Geometry)
static Object getProperty(Geometry geometry, QName name)
          Deprecated. use GeometryPropertyType_GetProperty(Geometry, QName)
static Object getSimpleContent(ComplexAttribute complex)
          Return the simple content of a ComplexAttribute if it represents a complexType with simpleContent, otherwise null.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GML3EncodingUtils

public GML3EncodingUtils()

GML3EncodingUtils

public GML3EncodingUtils(XSD gml)
Method Detail

GeometryPropertyType_GetProperty

public Object GeometryPropertyType_GetProperty(Geometry geometry,
                                               QName name)
Helper method used to implement ComplexBinding.getProperty(Object, QName) for bindings of geometry reference types:


GeometryPropertyType_GetProperty

public Object GeometryPropertyType_GetProperty(Geometry geometry,
                                               QName name,
                                               boolean makeEmpty)
Helper method used to implement ComplexBinding.getProperty(Object, QName) for bindings of geometry reference types:


getProperty

public static Object getProperty(Geometry geometry,
                                 QName name)
Deprecated. use GeometryPropertyType_GetProperty(Geometry, QName)


GeometryPropertyType_GetProperties

public List GeometryPropertyType_GetProperties(Geometry geometry)
Helper method used to implement ComplexBinding.getProperties(Object) for bindings of geometry reference types:


getProperties

public static List getProperties(Geometry geometry)
Deprecated. use GeometryPropertyType_GetProperties(Geometry)


AbstractFeatureTypeEncode

public Element AbstractFeatureTypeEncode(Object object,
                                         Document document,
                                         Element value,
                                         XSDIdRegistry idSet)

AbstractFeatureType_encode

public static Element AbstractFeatureType_encode(Object object,
                                                 Document document,
                                                 Element value,
                                                 XSDIdRegistry idSet)
Deprecated. use AbstractFeatureTypeEncode(Object, Document, Element, XSDIdRegistry)


AbstractFeatureTypeGetProperties

public List AbstractFeatureTypeGetProperties(Object object,
                                             XSDElementDeclaration element,
                                             SchemaIndex schemaIndex,
                                             Configuration configuration)

AbstractFeatureType_getProperties

public static List AbstractFeatureType_getProperties(Object object,
                                                     XSDElementDeclaration element,
                                                     SchemaIndex schemaIndex,
                                                     Configuration configuration)
Deprecated. use {@link #AbstractFeatureTypeGetProperties(Object, XSDElementDeclaration, SchemaIndex, Configuration)


encodeClientProperties

public static void encodeClientProperties(Property complex,
                                          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(ComplexAttribute complex,
                                       Document document,
                                       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 Object getSimpleContent(ComplexAttribute complex)
Return the simple content of a ComplexAttribute if it represents a complexType with simpleContent, otherwise null.

Parameters:
complex -
Returns:


Copyright © 1996-2014 Geotools. All Rights Reserved.