Uses of Class
org.apache.sis.internal.jaxb.Context
Packages that use Context
Package
Description
A set of helper classes for JAXB handling in the SIS implementation.
Base classes for code lists and enumerations.
Miscellaneous objects and adapters defined in the
"gco"
namespace.Miscellaneous objects and adapters defined in the
"gml"
namespace.Miscellaneous objects and adapters defined in the
"lan"
namespace.A set of helper classes for XML handling in the SIS implementation.
Base classes for reference systems used for general positioning.
Provides methods for marshalling and unmarshalling SIS objects in XML.
-
Uses of Context in org.apache.sis.internal.jaxb
Fields in org.apache.sis.internal.jaxb declared as ContextModifier and TypeFieldDescriptionprivate final Context
Context.previous
The context which was previously used.Fields in org.apache.sis.internal.jaxb with type parameters of type ContextModifier and TypeFieldDescriptionprivate static final ThreadLocal<Context>
Context.CURRENT
The thread-local context.Methods in org.apache.sis.internal.jaxb that return ContextModifier and TypeMethodDescriptionstatic Context
Context.current()
Returns the context of the XML (un)marshalling currently progressing in the current thread, ornull
if none.Methods in org.apache.sis.internal.jaxb with parameters of type ContextModifier and TypeMethodDescriptionstatic ValueConverter
Returns the value converter in use for the current marshalling or unmarshalling process.static Object
Context.getObjectForID
(Context context, String id) Returns the object for the givengml:id
, ornull
if none.static String
Context.getObjectID
(Context context, Object object) If agml:id
value has already been used for the given object in the current XML document, returns that identifier.static PropertyType<?,
?> Context.getWrapper
(Context context) Returns the<gml:*PropertyType>
which is wrapping the<gml:*Type>
object to (un)marshal, ornull
if this information is not provided.static boolean
Returnstrue
if the given flag is set.static boolean
Context.isGMLVersion
(Context context, Version version) Returnstrue
if the GML version is equal or newer than the specified version.(package private) static void
SpecializedIdentifier.parseFailure
(Context context, String value, Class<?> type, Exception cause) Invoked bySpecializedIdentifier.parse(Citation,String)
when a string cannot be parsed.static ReferenceResolver
Returns the reference resolver in use for the current marshalling or unmarshalling process.static StringBuilder
Returns the base URL of ISO 19115-3 (or other standards) schemas.static boolean
Context.setObjectForID
(Context context, Object object, String id) Returnstrue
if the given identifier is available, orfalse
if it is used by another object.static void
Context.setWrapper
(Context context, PropertyType<?, ?> wrapper) Invoked byPropertyType
implementations for declaring the<gml:*PropertyType>
instance which is wrapping the<gml:*Type>
object to (un)marshal.static void
Context.warningOccured
(Context context, Class<?> classe, String method, Class<? extends IndexedResourceBundle> resources, short key, Object... arguments) static void
Context.warningOccured
(Context context, Class<?> classe, String method, Exception cause, boolean isWarning) Convenience method for sending a warning for the given exception.static void
Context.warningOccured
(Context context, Level level, Class<?> classe, String method, Throwable exception, Class<? extends IndexedResourceBundle> resources, short key, Object... arguments) Sends a warning to the warning listener if there is one, or logs the warning otherwise. -
Uses of Context in org.apache.sis.internal.jaxb.cat
Methods in org.apache.sis.internal.jaxb.cat with parameters of type ContextModifier and TypeMethodDescriptionprivate static String
Returns the URL to a given code list in the given XML file.Constructors in org.apache.sis.internal.jaxb.cat with parameters of type ContextModifierConstructorDescriptionBuilds a code list with the given attributes.CodeListUID
(Context context, org.opengis.util.CodeList<?> code) Builds a value forCodeListAdapter
elements. -
Uses of Context in org.apache.sis.internal.jaxb.gco
Methods in org.apache.sis.internal.jaxb.gco with parameters of type ContextModifier and TypeMethodDescriptionprivate static <T> void
ObjectReference.putInto
(Context context, IdentifierMap map, IdentifierSpace<T> authority, T value) Adds a new identifier into the given map, if non null.(package private) final <T> T
If the given metadata object is null, tries to get an instance from the identifiers declared in thisObjectReference
.(package private) final BoundType
If the PropertyType.metadata is still null, tries to resolve it using UUID, XLink or NilReason information.static CharSequence
Same asCharSequenceAdapter.wrap(Context, Object, String)
, but returns directly theGO_CharacterString.text
value without wrapping in aGO_CharacterString
instance.static GO_CharacterString
Converts the string representation of an object to be marshalled in a XML file or stream. -
Uses of Context in org.apache.sis.internal.jaxb.gml
Methods in org.apache.sis.internal.jaxb.gml with parameters of type ContextModifier and TypeMethodDescriptionprivate static Date
TM_Primitive.toDate
(Context context, TimePeriodBound bound) Returns the date of the given bounds, ornull
if none. -
Uses of Context in org.apache.sis.internal.jaxb.lan
Methods in org.apache.sis.internal.jaxb.lan with parameters of type ContextModifier and TypeMethodDescriptionstatic Country
Creates a new wrapper for the given locale.static LanguageCode
Creates a new wrapper for the given locale.static Locale
Country.getLocale
(Context context, LanguageCode language, Country country, Class<?> caller) Returns the locale for the given language and country (which may be null), ornull
if none.(package private) static Locale
LanguageCode.marshalLocale
(Context context) Returns the locale to use at marshalling time, or the default locale if unspecified.Constructors in org.apache.sis.internal.jaxb.lan with parameters of type Context -
Uses of Context in org.apache.sis.internal.xml
Methods in org.apache.sis.internal.xml with parameters of type ContextModifier and TypeMethodDescriptionprivate static GregorianCalendar
XmlUtilities.createGregorianCalendar
(Context context) Creates a new Gregorian calendar for the current timezone and locale.static Date
XmlUtilities.toDate
(Context context, XMLGregorianCalendar xml) Converts the given XML Gregorian calendar to a date.static Temporal
XmlUtilities.toTemporal
(Context context, XMLGregorianCalendar xml) Converts the given XML Gregorian calendar to a temporal object.static XMLGregorianCalendar
Converts the given temporal object to a XML Gregorian calendar.static XMLGregorianCalendar
Converts the given date to a XML Gregorian calendar using the locale and timezone from the current marshalling context. -
Uses of Context in org.apache.sis.referencing
Methods in org.apache.sis.referencing with parameters of type ContextModifier and TypeMethodDescription(package private) static String
NameIterator.getID
(Context context, org.opengis.referencing.IdentifiedObject object, org.opengis.referencing.ReferenceIdentifier name, Collection<? extends org.opengis.util.GenericName> alias, Collection<? extends org.opengis.referencing.ReferenceIdentifier> identifiers) Implementation ofAbstractIdentifiedObject.getID()
, provided here for reducing the amount of code to load in the common case where XML support is not needed. -
Uses of Context in org.apache.sis.xml
Methods in org.apache.sis.xml that return Context