## Uses of Class
org.apache.sis.xml.MarshalContext

- Packages that use MarshalContext
  Package | Description
  --- | ---
  org.apache.sis.xml | Provides methods for marshalling and unmarshalling SIS objects in XML.

- - ### Uses of MarshalContext in org.apache.sis.xml

    Methods in org.apache.sis.xml with parameters of type MarshalContext
    Modifier and Type | Method | Description
    --- | --- | ---
    `XLink` | ReferenceResolver.`anchor​(MarshalContext context, Object value, CharSequence text)` | Returns the `<gcx:Anchor>` to use for the given text, or `null` if none.
    `<T> boolean` | ReferenceResolver.`canSubstituteByReference​(MarshalContext context, Class<T> type, T object, String id)` | Returns `true` if the marshaller can use a `xlink:href="#id"` reference to the given object instead than writing the full XML element.
    `<T> boolean` | ReferenceResolver.`canSubstituteByReference​(MarshalContext context, Class<T> type, T object, UUID uuid)` | Returns `true` if the marshaller can use a reference to the given object instead than writing the full XML element.
    `<T> boolean` | ReferenceResolver.`canSubstituteByReference​(MarshalContext context, Class<T> type, T object, XLink link)` | Returns `true` if the marshaller can use a `xlink:href` reference to the given object instead than 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 any `toXXX(…)` method.
    `<T> T` | ReferenceResolver.`newIdentifiedObject​(MarshalContext context, Class<T> type, 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 given `uuid` attribute, or `null` if none.
    `<T> T` | ReferenceResolver.`resolve​(MarshalContext context, Class<T> type, XLink link)` | Returns an object of the given type for the given `xlink` attribute, or `null` if none.
    `Charset` | ValueConverter.`toCharset​(MarshalContext context, String value)` | Converts the given string to a character set.
    `String` | ValueConverter.`toCharsetCode​(MarshalContext context, Charset value)` | Converts the given character set to a code.
    `String` | ValueConverter.`toCountryCode​(MarshalContext context, Locale value)` | Converts the given locale to a country code.
    `String` | ValueConverter.`toLanguageCode​(MarshalContext context, Locale value)` | Converts the given locale to a language code.
    `Locale` | ValueConverter.`toLocale​(MarshalContext context, String value)` | Converts the given string to a locale.
    `NilReason` | ValueConverter.`toNilReason​(MarshalContext context, String value)` | Converts the given string to a `NilReason`.
    `Unit<?>` | ValueConverter.`toUnit​(MarshalContext context, String value)` | Converts the given string to a unit.
    `URI` | ValueConverter.`toURI​(MarshalContext context, String value)` | Converts the given string to a URI.
    `URI` | ValueConverter.`toURI​(MarshalContext context, URL value)` | Converts the given URL to a URI.
    `URL` | ValueConverter.`toURL​(MarshalContext context, URI value)` | Converts the given URI to a URL.
    `UUID` | ValueConverter.`toUUID​(MarshalContext context, String value)` | Converts the given string to a Universal Unique Identifier.