Class ObjectFactory

java.lang.Object
org.apache.sis.internal.jaxb.geometry.ObjectFactory

public class ObjectFactory extends Object
A minimalist XML object factory for getting JAXB to work without throwing exceptions when there is no GML module in the classpath. This factory is extended with more complete methods in the GML module.
Since:
0.3
Version:
0.4
  • Field Details

    • AbstractGeometry_QNAME

      protected static final QName AbstractGeometry_QNAME
      The qualified name of <AbstractGeometry>.
    • AbstractGML_QNAME

      protected static final QName AbstractGML_QNAME
      The qualified name of <AbstractGML>.
    • AbstractObject_QNAME

      protected static final QName AbstractObject_QNAME
      The qualified name of <AbstractObject>.
  • Constructor Details

    • ObjectFactory

      public ObjectFactory()
  • Method Details

    • createObject

      public JAXBElement<Object> createObject(Object value)
      Creates an instance of JAXBElement<Object>}.
      Parameters:
      value - the Object value to wrap.
      Returns:
      the wrapped value.
    • createAbstractGML

      @Workaround(library="JAXB", version="2.1") public JAXBElement<Object> createAbstractGML(Object value)
      Create an instance of JAXBElement<AbstractGMLType>}. The type declared in the method signature should be AbstractGMLType. However, it is declared here as Object in order to avoid a dependency toward the GML module.
      Parameters:
      value - the GML AbstractGMLType value to wrap.
      Returns:
      the wrapped value.
    • createAbstractGeometry

      @Workaround(library="JAXB", version="2.1") public JAXBElement<Object> createAbstractGeometry(Object value)
      Create an instance of JAXBElement<AbstractGeometryType>}. The type declared in the method signature should be AbstractGeometryType. However, it is declared here as Object in order to avoid a dependency toward the GML module.
      Parameters:
      value - the AbstractGeometryType value to wrap.
      Returns:
      the wrapped value.