public class EReportingHeaderEncoder extends XmlStreamWriter<EReportingHeader>
Modifier and Type | Field and Description |
---|---|
private EReportingHeader |
header |
indent, out, XML_FRAGMENT, XML_VERSION
Constructor and Description |
---|
EReportingHeaderEncoder(EReportingHeader header) |
attr, attr, attr, chars, chars, empty, end, end, endInline, finish, flush, getXmlWriter, init, namespace, start, start
addXlinkHrefAttr, addXlinkTitleAttr, getOutputStream, getReplacement, getXmlOutputFactory, init, init, init, rawText, schemaLocation, time, time, writeIndent, writeNewLine, writeXmlObject
private final EReportingHeader header
public EReportingHeaderEncoder(EReportingHeader header)
public void write(OutputStream out, EncodingValues encodingValues) throws XMLStreamException, OwsExceptionReport
XmlWriter
OutputStream
write
in class XmlWriter<XMLStreamWriter,EReportingHeader>
out
- OutputStream to write the encoded elementencodingValues
- EncodingValues
with additional informationXMLStreamException
- If an error occurs when writing to OutputStream
OwsExceptionReport
- If an encoding error occurspublic void write(EReportingHeader elementToStream, OutputStream out) throws XMLStreamException, OwsExceptionReport
XmlWriter
OutputStream
write
in class XmlWriter<XMLStreamWriter,EReportingHeader>
elementToStream
- Element to encode and write to streamout
- OutputStream to write the encoded elementXMLStreamException
- If an error occurs when writing to OutputStream
OwsExceptionReport
- If an encoding error occurspublic void write(OutputStream out) throws XMLStreamException, OwsExceptionReport
XmlWriter
OutputStream
write
in class XmlWriter<XMLStreamWriter,EReportingHeader>
out
- OutputStream to write the encoded elementXMLStreamException
- If an error occurs when writing to OutputStream
OwsExceptionReport
- If an encoding error occurspublic void write(EReportingHeader elementToStream, OutputStream out, EncodingValues encodingValues) throws XMLStreamException, OwsExceptionReport
XmlWriter
OutputStream
write
in class XmlWriter<XMLStreamWriter,EReportingHeader>
elementToStream
- Element to encode and write to streamout
- OutputStream to write the encoded elementencodingValues
- EncodingValues
with additional informationXMLStreamException
- If an error occurs when writing to OutputStream
OwsExceptionReport
- If an encoding error occursprivate void encodeReportingHeader(EReportingHeader h, EncodingValues encodingValues) throws XMLStreamException, DateTimeFormatException
private void encodeReportingPeriod(Referenceable<? extends Time> v) throws XMLStreamException, DateTimeFormatException
private void encodeReportingAuthority(RelatedParty v) throws XMLStreamException
XMLStreamException
private void encodeInpireID(InspireID v) throws XMLStreamException
XMLStreamException
private void encodeChange(EReportingChange v) throws XMLStreamException
XMLStreamException
private void encodeRelatedParty(RelatedParty v) throws XMLStreamException
XMLStreamException
private void encodeContent(List<Referenceable<AbstractFeature>> content) throws XMLStreamException
XMLStreamException
private void encodeReferenceAttr(Reference v) throws XMLStreamException
XMLStreamException
protected void attr(QName qn, com.google.common.base.Optional<?> v) throws XMLStreamException
XMLStreamException
protected void encodeNillableString(QName qn, Nillable<?> v) throws XMLStreamException
XMLStreamException
protected void encodeString(QName qn, String v) throws XMLStreamException
XMLStreamException
private void encodeNilAttr(com.google.common.base.Optional<String> reason) throws XMLStreamException
XMLStreamException
private void encodeGCONilAttr(Nillable<?> v) throws XMLStreamException
XMLStreamException
protected void encodeNillableFreeText(QName qn, Nillable<String> v) throws XMLStreamException
XMLStreamException
private void encodeContact(Nillable<Contact> v) throws XMLStreamException
XMLStreamException
protected void encodeContact(Contact c) throws XMLStreamException
XMLStreamException
private void encodeAddress(Nillable<Address> v) throws XMLStreamException
XMLStreamException
private void encodeAddress(Address v) throws XMLStreamException
XMLStreamException
protected void encodeNillableGeographicalName(QName qn, Nillable<GeographicalName> v) throws XMLStreamException
XMLStreamException
protected void encodeNillableReference(QName qn, Nillable<Reference> v) throws XMLStreamException
XMLStreamException
private void encodeGeographicalName(GeographicalName v) throws XMLStreamException
XMLStreamException
protected void encodeNillableCodeType(QName qn, Nillable<CodeType> v) throws XMLStreamException
XMLStreamException
protected void encodeNillablePronunciation(QName qn, Nillable<Pronunciation> v) throws XMLStreamException
XMLStreamException
protected void encodePronunciationOfName(Pronunciation pronunciation) throws XMLStreamException
XMLStreamException
protected void encodeNillableSpelling(QName qn, Nillable<Spelling> v) throws XMLStreamException
XMLStreamException
protected void encodeSpellingOfName(Spelling spelling) throws XMLStreamException
XMLStreamException
private void encodeTime(Time v) throws XMLStreamException, DateTimeFormatException
private void encodeTimeInstant(TimeInstant ti) throws XMLStreamException, DateTimeFormatException
private void encodeTimePeriod(TimePeriod tp) throws XMLStreamException, DateTimeFormatException
protected void encodeTimeString(org.joda.time.DateTime time, Time.TimeFormat format) throws XMLStreamException, DateTimeFormatException
Copyright © 2012-2015 52north.org. All Rights Reserved.