org.dellroad.stuff.pobj
Class UpdatesXMLEventWriter
java.lang.Object
org.dellroad.stuff.xml.AnnotatedXMLEventWriter
org.dellroad.stuff.pobj.UpdatesXMLEventWriter
- All Implemented Interfaces:
- XMLEventConsumer, XMLEventWriter
public class UpdatesXMLEventWriter
- extends AnnotatedXMLEventWriter
AnnotatedXMLEventWriter that inserts the schema update list into the document
using an PersistentObjectSchemaUpdater.UPDATES_ELEMENT_NAME annotation element.
Used by PersistentObjectSchemaUpdater.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpdatesXMLEventWriter
public UpdatesXMLEventWriter(XMLEventWriter inner,
List<String> updates)
- Constructor.
- Parameters:
inner - nested outputupdates - list of updates to add
- Throws:
IllegalArgumentException - if updates is null
addAnnotationElement
protected void addAnnotationElement()
throws XMLStreamException
- Description copied from class:
AnnotatedXMLEventWriter
- Add the annotation element.
This method should add() the StartElement for the annotation element, followed
by any nested content, and then lastly the EndElement for the annotation element.
- Specified by:
addAnnotationElement in class AnnotatedXMLEventWriter
- Throws:
XMLStreamException