org.geotools.gml3.bindings
Class AbstractSimpleContentComplexBinding

Object
  extended by AbstractComplexBinding
      extended by AbstractSimpleContentComplexBinding
All Implemented Interfaces:
Binding, ComplexBinding

public class AbstractSimpleContentComplexBinding
extends AbstractComplexBinding

Class for bindings for XML complexType with simpleContent.

This class supports the extraction of a simpleContent property as well as encoding XML attributes stored in the UserData map.

Author:
Ben Caradoc-Davies, CSIRO Exploration and Mining
Module:
modules/extension/xsd-gml3 (gt-xsd-gml3.jar)

Field Summary
 
Fields inherited from interface Binding
AFTER, BEFORE, OVERRIDE
 
Constructor Summary
AbstractSimpleContentComplexBinding()
           
 
Method Summary
 Element encode(Object object, Document document, Element value)
          Subclasses should ovverride this method if need be, the default implementation returns value.
 QName getTarget()
           
 Class getType()
           
 
Methods inherited from class AbstractComplexBinding
getExecutionMode, getProperties, getProperties, getProperty, initializeChildContext, parse
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSimpleContentComplexBinding

public AbstractSimpleContentComplexBinding()
Method Detail

encode

public Element encode(Object object,
                      Document document,
                      Element value)
               throws Exception
Description copied from class: AbstractComplexBinding
Subclasses should ovverride this method if need be, the default implementation returns value.

Specified by:
encode in interface ComplexBinding
Overrides:
encode in class AbstractComplexBinding
Parameters:
object - The object being encoded.
document - The document containing the encoded element.
value - The object as encoded by the parent binding.
Returns:
The element for the objcet being encoded, or null
Throws:
Exception
See Also:
AbstractComplexBinding.encode(java.lang.Object, org.w3c.dom.Document, org.w3c.dom.Element)

getTarget

public QName getTarget()
Returns:
The qualified name of the target for the binding.
See Also:
Binding.getTarget()

getType

public Class getType()
Returns:
The java type this binding maps to.
See Also:
Binding.getType()


Copyright © 1996-2009 Geotools. All Rights Reserved.