Package org.apache.sis.metadata.iso
Class OnlineResourceAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<CI_OnlineResource,URI>
org.apache.sis.metadata.iso.OnlineResourceAdapter
Converts an URI to a
<cit:OnlineResource> element for ISO 19115-3:2016 compliance.
We need this additional adapter because some property type changed from URI to
OnlineResource 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 CI_OnlineResourceThe adapter performing the actual work. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWraps the given URI in a<cit:OnlineResource>element.unmarshal(CI_OnlineResource value) Returns a URI from the given<cit:OnlineResource>element.
-
Field Details
-
ADAPTER
The adapter performing the actual work.
-
-
Constructor Details
-
OnlineResourceAdapter
OnlineResourceAdapter()
-
-
Method Details
-
marshal
Wraps the given URI in a<cit:OnlineResource>element.- Specified by:
marshalin classXmlAdapter<CI_OnlineResource,URI>
-
unmarshal
Returns a URI from the given<cit:OnlineResource>element.- Specified by:
unmarshalin classXmlAdapter<CI_OnlineResource,URI> - Throws:
URISyntaxException
-