Package org.n52.svalbard.write
Class EReportingHeaderEncoder
- java.lang.Object
-
- org.n52.svalbard.write.XmlStreamWriter<EReportingHeader>
-
- org.n52.svalbard.write.EReportingHeaderEncoder
-
public class EReportingHeaderEncoder extends XmlStreamWriter<EReportingHeader>
-
-
Field Summary
-
Fields inherited from class org.n52.svalbard.write.XmlStreamWriter
XML_FRAGMENT
-
-
Constructor Summary
Constructors Constructor Description EReportingHeaderEncoder(EncodingContext context, OutputStream outputStream, EReportingHeader element)
-
Method Summary
-
Methods inherited from class org.n52.svalbard.write.XmlStreamWriter
addXlinkHrefAttr, addXlinkTitleAttr, attr, attr, attr, chars, chars, empty, end, end, endInline, finish, flush, getContext, getElement, getEncodeNamespace, getEncoder, getEncoder, getEncoder, getOutputStream, getReplacement, getXmlOptions, isAddSchemaLocation, namespace, rawText, schemaLocation, start, start, time, time, tryGetEncoder, writeXmlObject, writeXmlObject
-
-
-
-
Constructor Detail
-
EReportingHeaderEncoder
public EReportingHeaderEncoder(EncodingContext context, OutputStream outputStream, EReportingHeader element) throws XMLStreamException
- Throws:
XMLStreamException
-
-
Method Detail
-
write
public void write() throws XMLStreamException, EncodingExceptionDescription copied from class:XmlStreamWriterEncode and write element to theOutputStream.- Specified by:
writein classXmlStreamWriter<EReportingHeader>- Throws:
XMLStreamException- If an error occurs when writing toOutputStreamEncodingException- If an encoding error occurs
-
attr
protected void attr(QName qn, Optional<?> v) throws XMLStreamException
- Throws:
XMLStreamException
-
encodeNillableString
protected void encodeNillableString(QName qn, Nillable<?> v) throws XMLStreamException
- Throws:
XMLStreamException
-
encodeString
protected void encodeString(QName qn, String v) throws XMLStreamException
- Throws:
XMLStreamException
-
encodeNillableFreeText
protected void encodeNillableFreeText(QName qn, Nillable<PT_FreeText> nillable) throws XMLStreamException
- Throws:
XMLStreamException
-
encodeContact
protected void encodeContact(Contact c) throws XMLStreamException
- Throws:
XMLStreamException
-
encodeNillableGeographicalName
protected void encodeNillableGeographicalName(QName qn, Nillable<GeographicalName> v) throws XMLStreamException
- Throws:
XMLStreamException
-
encodeNillableReference
protected void encodeNillableReference(QName qn, Nillable<Reference> v) throws XMLStreamException
- Throws:
XMLStreamException
-
encodeNillableCodeType
protected void encodeNillableCodeType(QName qn, Nillable<CodeType> v) throws XMLStreamException
- Throws:
XMLStreamException
-
encodeNillablePronunciation
protected void encodeNillablePronunciation(QName qn, Nillable<Pronunciation> v) throws XMLStreamException
- Throws:
XMLStreamException
-
encodePronunciationOfName
protected void encodePronunciationOfName(Pronunciation pronunciation) throws XMLStreamException
- Throws:
XMLStreamException
-
encodeNillableSpelling
protected void encodeNillableSpelling(QName qn, Nillable<Spelling> v) throws XMLStreamException
- Throws:
XMLStreamException
-
encodeSpellingOfName
protected void encodeSpellingOfName(Spelling spelling) throws XMLStreamException
- Throws:
XMLStreamException
-
encodeTimeString
protected void encodeTimeString(org.joda.time.DateTime time, Time.TimeFormat format) throws XMLStreamException, EncodingException- Throws:
XMLStreamExceptionEncodingException
-
-