Package org.apache.sis.internal.jaxb.gcx
Class MimeFileTypeAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<GO_CharacterString,String>
org.apache.sis.internal.jaxb.gco.StringAdapter
org.apache.sis.internal.jaxb.gcx.MimeFileTypeAdapter
JAXB adapter wrapping a
String
value with a <gcx:MimeFileType>
element.- Since:
- 0.4
- Version:
- 0.4
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.internal.jaxb.gco.StringAdapter
StringAdapter.Since2014
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts a MIME type to the object to be marshalled in a XML file or stream.Methods inherited from class org.apache.sis.internal.jaxb.gco.StringAdapter
toString, unmarshal
-
Constructor Details
-
MimeFileTypeAdapter
public MimeFileTypeAdapter()Empty constructor for JAXB.
-
-
Method Details
-
marshal
Converts a MIME type to the object to be marshalled in a XML file or stream. JAXB calls automatically this method at marshalling time.- Overrides:
marshal
in classStringAdapter
- Parameters:
value
- the MIME type, ornull
.- Returns:
- the wrapper for the given MIME type, or
null
.
-