public abstract class MarshalContext extends Object
Defined in the sis-utility
module
Modifier | Constructor and Description |
---|---|
protected |
MarshalContext()
Creates a new (un)marshalling context.
|
Modifier and Type | Method and Description |
---|---|
abstract Locale |
getLocale()
Returns the locale to use for (un)marshalling, or
null if no locale were explicitly specified. |
abstract TimeZone |
getTimeZone()
Returns the timezone to use for (un)marshalling, or
null if none were explicitely specified. |
abstract Version |
getVersion(String prefix)
Returns the schema version of the XML document being (un)marshalled.
|
public abstract Locale getLocale()
null
if no locale were explicitly specified.
The locale returned by this method can be used for choosing a language in an InternationalString
.
This locale may vary in different fragments of the same XML document.
In particular children of Metadata
inherit the locale
specified by the Metadata.getLanguage()
attribute.
Locale.ROOT
Locale.ROOT
is interpreted as a request for locale-neutral strings.
The meaning of "locale-neutral" is implementation specific - this is usually
very close to the English locale, but not necessarily. For examples dates are
formatted according ISO standard instead than the rules of the English locale.
null
localenull
value means that the locale is unspecified. Callers are encouraged
to use the root locale as the default value, but some flexibility is allowed.null
is unspecified.DefaultInternationalString.toString(Locale)
public abstract TimeZone getTimeZone()
null
if none were explicitely specified.
null
timezonenull
value means that the timezone is unspecified. Callers are encouraged
to use the UTC timezone as the default value, but some flexibility is allowed.null
if unspecified.public abstract Version getVersion(String prefix)
prefix
argument can be any of the following values (case-sensitive):
Prefix | Standard | Typical values |
---|---|---|
gml | Geographic Markup Language | 3.0 , 3.2 |
prefix
- One of the above-cited prefix.null
if unknown.Copyright © 2010–2015 The Apache Software Foundation. All rights reserved.