Uses of Class
org.apache.sis.xml.MarshalContext
Packages that use MarshalContext
Package
Description
A set of helper classes for JAXB handling in the SIS implementation.
Provides methods for marshalling and unmarshalling SIS objects in XML.
-
Uses of MarshalContext in org.apache.sis.internal.jaxb
Subclasses of MarshalContext in org.apache.sis.internal.jaxbModifier and TypeClassDescriptionfinal class
Thread-local status of a marshalling or unmarshalling processes. -
Uses of MarshalContext in org.apache.sis.xml
Methods in org.apache.sis.xml with parameters of type MarshalContextModifier and TypeMethodDescriptionReferenceResolver.anchor
(MarshalContext context, Object value, CharSequence text) Returns the<gcx:Anchor>
to use for the given text, ornull
if none.<T> boolean
ReferenceResolver.canSubstituteByReference
(MarshalContext context, Class<T> type, T object, String id) Returnstrue
if the marshaller can use axlink:href="#id"
reference to the given object instead of writing the full XML element.<T> boolean
ReferenceResolver.canSubstituteByReference
(MarshalContext context, Class<T> type, T object, UUID uuid) Returnstrue
if the marshaller can use a reference to the given object instead of writing the full XML element.<T> boolean
ReferenceResolver.canSubstituteByReference
(MarshalContext context, Class<T> type, T object, XLink link) Returnstrue
if the marshaller can use axlink:href
reference to the given object instead of writing the full XML element.protected <T> boolean
ValueConverter.exceptionOccured
(MarshalContext context, T value, Class<T> sourceType, Class<?> targetType, Exception exception) Invoked when an exception occurred in anytoXXX(…)
method.<T> T
ReferenceResolver.newIdentifiedObject
(MarshalContext context, Class<T> type, org.opengis.metadata.Identifier... identifiers) Returns an empty object of the given type having the given identifiers.<T> T
ReferenceResolver.resolve
(MarshalContext context, Class<T> type, UUID uuid) Returns an object of the given type for the givenuuid
attribute, ornull
if none.<T> T
ReferenceResolver.resolve
(MarshalContext context, Class<T> type, XLink link) Returns an object of the given type for the givenxlink
attribute, ornull
if none.ValueConverter.toCharset
(MarshalContext context, String value) Converts the given string to a character set.ValueConverter.toCharsetCode
(MarshalContext context, Charset value) Converts the given character set to a code.ValueConverter.toCountryCode
(MarshalContext context, Locale value) Converts the given locale to a country code.ValueConverter.toLanguageCode
(MarshalContext context, Locale value) Converts the given locale to a language code.ValueConverter.toLocale
(MarshalContext context, String value) Converts the given string to a locale.ValueConverter.toNilReason
(MarshalContext context, String value) Converts the given string to aNilReason
.javax.measure.Unit
<?> ValueConverter.toUnit
(MarshalContext context, String value) Converts the given string to a unit.ValueConverter.toURI
(MarshalContext context, String value) Converts the given string to a URI.ValueConverter.toURI
(MarshalContext context, URL value) Converts the given URL to a URI.ValueConverter.toURL
(MarshalContext context, URI value) Converts the given URI to a URL.ValueConverter.toUUID
(MarshalContext context, String value) Converts the given string to a Universal Unique Identifier.