Package org.apache.sis.metadata.iso
Class URIStringAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<GO_CharacterString,URI>
org.apache.sis.metadata.iso.URIStringAdapter
Converts an URI to a
<gco:CharacterSequence>
element for ISO 19115-3:2016 compliance.
We need this additional adapter because some property type changed from URI
to CharacterSequence
in the upgrade from ISO 19115:2003 to ISO 19115-1:2014.- Since:
- 1.0
- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final CharSequenceAdapter
The adapter performing the actual work. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWraps the given URI in a<cit:OnlineResource>
element.unmarshal
(GO_CharacterString value) Returns a URI from the given<cit:OnlineResource>
element.
-
Field Details
-
ADAPTER
The adapter performing the actual work.
-
-
Constructor Details
-
URIStringAdapter
URIStringAdapter()
-
-
Method Details
-
marshal
Wraps the given URI in a<cit:OnlineResource>
element.- Specified by:
marshal
in classXmlAdapter<GO_CharacterString,
URI>
-
unmarshal
Returns a URI from the given<cit:OnlineResource>
element.- Specified by:
unmarshal
in classXmlAdapter<GO_CharacterString,
URI> - Throws:
URISyntaxException
-