Class ObjectFactory
java.lang.Object
org.apache.sis.internal.jaxb.geometry.ObjectFactory
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAbstractGeometry
(Object value) Create an instance ofJAXBElement<AbstractGeometryType>
}.createAbstractGML
(Object value) Create an instance ofJAXBElement<AbstractGMLType>
}.createObject
(Object value) Creates an instance ofJAXBElement<Object>
}.
-
Field Details
-
AbstractGeometry_QNAME
The qualified name of<AbstractGeometry>
. -
AbstractGML_QNAME
The qualified name of<AbstractGML>
. -
AbstractObject_QNAME
The qualified name of<AbstractObject>
.
-
-
Constructor Details
-
ObjectFactory
public ObjectFactory()
-
-
Method Details
-
createObject
Creates an instance ofJAXBElement<Object>
}.- Parameters:
value
- theObject
value to wrap.- Returns:
- the wrapped value.
-
createAbstractGML
@Workaround(library="JAXB", version="2.1") public JAXBElement<Object> createAbstractGML(Object value) Create an instance ofJAXBElement<AbstractGMLType>
}. The type declared in the method signature should beAbstractGMLType
. However, it is declared here asObject
in order to avoid a dependency toward the GML module.- Parameters:
value
- the GMLAbstractGMLType
value to wrap.- Returns:
- the wrapped value.
-
createAbstractGeometry
@Workaround(library="JAXB", version="2.1") public JAXBElement<Object> createAbstractGeometry(Object value) Create an instance ofJAXBElement<AbstractGeometryType>
}. The type declared in the method signature should beAbstractGeometryType
. However, it is declared here asObject
in order to avoid a dependency toward the GML module.- Parameters:
value
- theAbstractGeometryType
value to wrap.- Returns:
- the wrapped value.
-