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 ContextContext.previousThe 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.CURRENTThe thread-local context.Methods in org.apache.sis.internal.jaxb that return ContextModifier and TypeMethodDescriptionstatic ContextContext.current()Returns the context of the XML (un)marshalling currently progressing in the current thread, ornullif none.Methods in org.apache.sis.internal.jaxb with parameters of type ContextModifier and TypeMethodDescriptionstatic ValueConverterReturns the value converter in use for the current marshalling or unmarshalling process.static ObjectContext.getObjectForID(Context context, String id) Returns the object for the givengml:id, ornullif none.static StringContext.getObjectID(Context context, Object object) If agml:idvalue 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, ornullif this information is not provided.static booleanReturnstrueif the given flag is set.static booleanContext.isGMLVersion(Context context, Version version) Returnstrueif the GML version is equal or newer than the specified version.(package private) static voidSpecializedIdentifier.parseFailure(Context context, String value, Class<?> type, Exception cause) Invoked bySpecializedIdentifier.parse(Citation,String)when a string cannot be parsed.static ReferenceResolverReturns the reference resolver in use for the current marshalling or unmarshalling process.static StringBuilderReturns the base URL of ISO 19115-3 (or other standards) schemas.static booleanContext.setObjectForID(Context context, Object object, String id) Returnstrueif the given identifier is available, orfalseif it is used by another object.static voidContext.setWrapper(Context context, PropertyType<?, ?> wrapper) Invoked byPropertyTypeimplementations for declaring the<gml:*PropertyType>instance which is wrapping the<gml:*Type>object to (un)marshal.static voidContext.warningOccured(Context context, Class<?> classe, String method, Class<? extends IndexedResourceBundle> resources, short key, Object... arguments) static voidContext.warningOccured(Context context, Class<?> classe, String method, Exception cause, boolean isWarning) Convenience method for sending a warning for the given exception.static voidContext.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 StringReturns 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 forCodeListAdapterelements. -
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> voidObjectReference.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> TIf the given metadata object is null, tries to get an instance from the identifiers declared in thisObjectReference.(package private) final BoundTypeIf the PropertyType.metadata is still null, tries to resolve it using UUID, XLink or NilReason information.static CharSequenceSame asCharSequenceAdapter.wrap(Context, Object, String), but returns directly theGO_CharacterString.textvalue without wrapping in aGO_CharacterStringinstance.static GO_CharacterStringConverts 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 DateTM_Primitive.toDate(Context context, TimePeriodBound bound) Returns the date of the given bounds, ornullif 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 CountryCreates a new wrapper for the given locale.static LanguageCodeCreates a new wrapper for the given locale.static LocaleCountry.getLocale(Context context, LanguageCode language, Country country, Class<?> caller) Returns the locale for the given language and country (which may be null), ornullif none.(package private) static LocaleLanguageCode.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 GregorianCalendarXmlUtilities.createGregorianCalendar(Context context) Creates a new Gregorian calendar for the current timezone and locale.static DateXmlUtilities.toDate(Context context, XMLGregorianCalendar xml) Converts the given XML Gregorian calendar to a date.static TemporalXmlUtilities.toTemporal(Context context, XMLGregorianCalendar xml) Converts the given XML Gregorian calendar to a temporal object.static XMLGregorianCalendarConverts the given temporal object to a XML Gregorian calendar.static XMLGregorianCalendarConverts 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 StringNameIterator.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