Package org.apache.sis.internal.jaxb.gco


package org.apache.sis.internal.jaxb.gco
Miscellaneous objects and adapters defined in the "gco" namespace. For example, a String value has to be marshalled this way: In the above example, gco is the prefix for the http://www.isotc211.org/2005/gco namespace URL.

This package includes:

  • JAXB adapters for primitive types.
    JAXB can write directly Java primitive type at marshalling time "as is". However, ISO 19115-3 requires those values to be wrapped by elements representing the data type. A role of these adapters is to add these elements around the value.
  • JAXB adapters for unit of measure as specified in the ISO 19103 specifications.
    For example, a measure marshalled with JAXB will be formatted like <gco:Measure uom="m">220.0</gco:Measure>.
  • JAXB adapters for date and time.
Classes prefixed by two letters, like "GO_Decimal", are also wrappers around the actual object to be marshalled. See the org.apache.sis.internal.jaxb.metadata package for more explanation about wrappers. Note that the two-letters prefixes used in this package (not to be confused with the three-letters prefixes used in XML documents) are not defined by OGC/ISO specifications; they are used only for consistency with current practice in org.apache.sis.internal.jaxb.metadata and similar packages.

Object identification and reference

  • org.apache.sis.metadata.iso public packages:
    • Implement the ISO 19115-3 Foo_Type, where Foo is the ISO name of a class.
    • Contains the gco:ObjectIdentification group of attributes (id, uuid).
    • Conceptually could have been subclasses of ObjectIdentification defined in this package.
  • org.apache.sis.internal.jaxb private packages:
    • Implement the ISO 19115-3 Foo_PropertyType as subclasses of the PropertyType class.
    • Contains the gco:ObjectReference group of attributes (xlink, uuidref).
    • Attributes are declared in the ObjectReference Java class.

Those two kinds of types are marshalled as below:

Since:
0.3
Version:
1.3
See Also:
  • Classes
    Class
    Description
    JAXB adapter wrapping the string value in a <gco:CharacterString> element, for ISO 19115-3 compliance.
    Wraps the value only if marshalling ISO 19115-3 element.
    Surrounds boolean value by <gco:Boolean>.
    JAXB wrapper for string value in a <gco:CharacterString>, <gcx:Anchor>, <gcx:FileName> or <gcx:MimeFileType> element, for ISO 19115-3 compliance.
    JAXB adapter wrapping the date value in a <gco:Date> or <gco:DateTime> element, for ISO 19115-3 compliance.
    Wraps the value only if marshalling ISO 19115-3 element.
    Surrounds double values by <gco:Decimal>.
    The ISO 19103 Distance with a unit of measure defined, using the gco namespace linked to the http://www.isotc211.org/2005/gco URL.
    JAXB wrapper in order to map implementing class with the GeoAPI interface.
    Wraps the value only if marshalling ISO 19115-3 element.
    Wraps an integer value in an <gco:Integer> element.
    Wraps the value only if marshalling ISO 19115-3 element.
    Wraps a long value in an <gco:Integer> element.
    The ISO 19103 Measure with a unit of measure defined in the gco namespace associated to the http://www.isotc211.org/2005/gco URL.
    Adapter for a component of a multiplicity, consisting of an non-negative lower bound, and a potentially infinite upper bound.
    Wraps double values in <gco:Real> element.
    Wraps the value only if marshalling ISO 19115-3 element.
    JAXB wrapper in order to map implementing class with the GeoAPI interface.
    Wraps the value only if marshalling ISO 19115-3 element.
    JAXB wrapper in order to map implementing class with the GeoAPI interface.
    Wraps the value only if marshalling ISO 19115-3 element.
    JAXB adapter wrapping the date value in a <gco:Date> or <gco:DateTime> element, for ISO 19115-3 compliance.
    Wraps the value only if marshalling ISO 19115-3 element.
    Wraps an "unlimited" integer value in an <gco:UnlimitedInteger> element.
    JAXB wrapper for an URI in a <gmd:URL> element, for ISO 19139:2007 compliance.
    JAXB adapter for XML <GO_CharacterString> element mapped to InternationalString.
    Wraps the value only if marshalling ISO 19115-3 element.
    JAXB adapter for string values mapped to InternationalString.
    The possible cardinality of a relation.
    A component of a multiplicity, consisting of an non-negative lower bound, and a potentially infinite upper bound.
    A generalized type to be used for a term, keyword or name.
    The NameValue as a gco:LocalName.
    The NameValue as a gco:ScopedName.
    The gco:ObjectReference XML attribute group is included by all metadata wrappers defined in the org.apache.sis.internal.jaxb.metadata package.
    PropertyType<ValueType extends PropertyType<ValueType,BoundType>,BoundType>
    Base class for adapters from GeoAPI interfaces to their SIS implementations.
    JAXB adapter for XML <GO_CharacterString> element mapped to String.
    Wraps the value only if marshalling ISO 19115-3 element.
    JAXB adapter for unit of measurement.
    A variant of UnitAdapter which marshal units as a URN for Coordinate System (CS) axes.
    Wraps the value only if marshalling ISO 19115-3 element.
    The <gco:UnlimitedInteger> value, used for MultiplicityRange implementation.
    JAXB adapter wrapping a URI value with a <gcx:FileName> element.
    Replace <gcx:FileName> by <gmd:URL> if marshalling legacy ISO 19139:2007 document.