org.geotools.xml
Class ComplexEMFBinding

Object
  extended by AbstractComplexBinding
      extended by AbstractComplexEMFBinding
          extended by ComplexEMFBinding
All Implemented Interfaces:
Binding, ComplexBinding, InstanceBinding
Direct Known Subclasses:
InputReferenceTypeBinding, SimpleContentComplexEMFBinding

public class ComplexEMFBinding
extends AbstractComplexEMFBinding
implements InstanceBinding

A binding implementation which parses / encodes objects from an EMF model.

This binding implementation uses EMF reflection to implement all methods of the api. All that is needed is the 'target' of the binding.

These bindings are "instance" bindings in that they are instantiated before the parser is run (see Configuration.registerBindings(java.util.Map)) and not at runtime.

Author:
Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org
See Also:
Configuration.registerBindings(java.util.Map)
Module:
modules/extension/xsd-core (gt-xsd-core.jar)

Field Summary
 
Fields inherited from interface Binding
AFTER, BEFORE, OVERRIDE
 
Constructor Summary
ComplexEMFBinding(EFactory factory, QName target)
          Creates the binding.
ComplexEMFBinding(EFactory factory, QName target, Class type)
          Creates the binding specifying the type of the object its boiund to.
 
Method Summary
 QName getTarget()
           
 
Methods inherited from class AbstractComplexEMFBinding
createEObject, getProperty, getType, parse, setProperty
 
Methods inherited from class AbstractComplexBinding
encode, getExecutionMode, getProperties, getProperties, initializeChildContext
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComplexEMFBinding

public ComplexEMFBinding(EFactory factory,
                         QName target)
Creates the binding.

Parameters:
factory - The factory for the emf model.
target - The qualified name of the type in the emf model that this binding works against.

ComplexEMFBinding

public ComplexEMFBinding(EFactory factory,
                         QName target,
                         Class type)
Creates the binding specifying the type of the object its boiund to.

The type is specified in cases where it can not be inferred from the qname alone. Such cases occur when EMF runs into a name clash.

Parameters:
factory - The factory for the emf model.
target - The qualified name of the type in the emf model that this binding works against.
type - The type of the object this binding is mapped to.
Method Detail

getTarget

public QName getTarget()
Specified by:
getTarget in interface Binding
Returns:
The qualified name of the target for the binding.


Copyright © 1996-2010 Geotools. All Rights Reserved.