Class ReferencingTypes
java.lang.Object
org.apache.sis.internal.jaxb.TypeRegistration
org.apache.sis.internal.referencing.ReferencingTypes
- All Implemented Interfaces:
Function<Object,,Object> UnaryOperator<Object>
Declares the classes of objects to be marshalled using a default
MarshallerPool.
This class is declared in the META-INF/services/org.apache.sis.internal.jaxb.TypeRegistration file.- Since:
- 0.4
- Version:
- 1.0
-
Field Summary
Fields inherited from class org.apache.sis.internal.jaxb.TypeRegistration
ROOT_ADAPTERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEnsures that the given value is an instance of a class that can be marshalled, or returnsnullif the type is not handled by this method.protected UnaryOperator<Object>Returns the converter to apply before marshalling objects.protected voidgetTypes(Collection<Class<?>> addTo) Adds to the given collection the referencing types that should be given to the initial JAXB context.Methods inherited from class org.apache.sis.internal.jaxb.TypeRegistration
getPrivateInfo, getRenameFileLoader, getSharedContext, hasRenameFile
-
Constructor Details
-
ReferencingTypes
public ReferencingTypes()
-
-
Method Details
-
getTypes
Adds to the given collection the referencing types that should be given to the initial JAXB context.- Specified by:
getTypesin classTypeRegistration- Parameters:
addTo- the collection in which to add new types.
-
beforeMarshal
Returns the converter to apply before marshalling objects.- Overrides:
beforeMarshalin classTypeRegistration- Returns:
this.
-
apply
Ensures that the given value is an instance of a class that can be marshalled, or returnsnullif the type is not handled by this method.
-