Class ComplexEMFBinding

All Implemented Interfaces:
Binding, ComplexBinding, InstanceBinding
Direct Known Subclasses:
BoundingBoxTypeBinding, InputReferenceTypeBinding, QueryTypeBinding, RangeBinding, RecordBinding, 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:
  • Constructor Details

    • 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 Details

    • getTarget

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

      public String toString()
      Overrides:
      toString in class Object