Package org.apache.sis.internal.jaxb
Class PrimitiveTypeProperties
java.lang.Object
org.apache.sis.internal.jaxb.PrimitiveTypeProperties
A workaround for attaching properties (
nilreason, href, etc.) to primitive type wrappers.
The normal approach in SIS is to implement the NilObject interface. However, we cannot
do so when the object is a final Java class like Boolean, Integer, Double or String.
This class provides a workaround using specific instances of those wrappers.- Since:
- 0.4
- Version:
- 0.4
- Author:
- Martin Desruisseaux (Geomatys)
- See Also:
-
Method Summary
-
Method Details
-
associate
Associates the given property to the given primitive. Theprimitiveargument shall be a specific instance created by thenewkeyword, not a shared instance linkBoolean.FALSEor the values returned byInteger.valueOf(int). -
property
Returns the property of the given primitive type, ornullif none.
-