Package org.dellroad.stuff.pobj
Class UpdatesXMLStreamWriter
java.lang.Object
org.dellroad.stuff.xml.StreamWriterDelegate
org.dellroad.stuff.xml.AnnotatedXMLStreamWriter
org.dellroad.stuff.pobj.UpdatesXMLStreamWriter
- All Implemented Interfaces:
XMLStreamWriter
AnnotatedXMLStreamWriter
that inserts the schema update list into the document
using an PersistentObjectSchemaUpdater.UPDATES_ELEMENT_NAME
annotation element.
Used by PersistentObjectSchemaUpdater
.-
Constructor Summary
ConstructorDescriptionUpdatesXMLStreamWriter
(XMLStreamWriter inner, List<String> updates) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAnnotationElement
(XMLStreamWriter writer) Add the annotation element.Methods inherited from class org.dellroad.stuff.xml.AnnotatedXMLStreamWriter
getTrailingSpace, writeCData, writeCharacters, writeCharacters, writeComment, writeDTD, writeEmptyElement, writeEmptyElement, writeEmptyElement, writeEndDocument, writeEndElement, writeEntityRef, writeProcessingInstruction, writeProcessingInstruction, writeStartElement, writeStartElement, writeStartElement
Methods inherited from class org.dellroad.stuff.xml.StreamWriterDelegate
close, flush, getNamespaceContext, getParent, getPrefix, getProperty, setDefaultNamespace, setNamespaceContext, setParent, setPrefix, writeAttribute, writeAttribute, writeAttribute, writeDefaultNamespace, writeNamespace, writeStartDocument, writeStartDocument, writeStartDocument
-
Constructor Details
-
UpdatesXMLStreamWriter
Constructor.- Parameters:
inner
- nested outputupdates
- list of updates to add- Throws:
IllegalArgumentException
- ifupdates
is null
-
-
Method Details
-
addAnnotationElement
Description copied from class:AnnotatedXMLStreamWriter
Add the annotation element.This method should write the start element, followed by by any nested content, and then lastly the end element for the annotation element.
- Specified by:
addAnnotationElement
in classAnnotatedXMLStreamWriter
- Parameters:
writer
- output to which the annotation element should be written- Throws:
XMLStreamException
- if an XML error occurs
-