Class UpdatesXMLStreamReader

All Implemented Interfaces:
XMLStreamConstants, XMLStreamReader

public class UpdatesXMLStreamReader extends AnnotatedXMLStreamReader
AnnotatedXMLStreamReader that reads the nested schema update list. Used by PersistentObjectSchemaUpdater.
  • Constructor Details

    • UpdatesXMLStreamReader

      public UpdatesXMLStreamReader(XMLStreamReader inner)
  • Method Details

    • getUpdates

      public List<String> getUpdates()
      Get the updates gleaned from the scan.
      Returns:
      list of updates, or null if the document didn't contain an updates element
    • readAnnotationElement

      protected boolean readAnnotationElement(XMLStreamReader reader) throws XMLStreamException
      Description copied from class: AnnotatedXMLStreamReader
      Determine if the given XMLStreamReader is positioned at the annotation element, and if so, read it.

      When this method is invoked, the reader's current event has type XMLStreamConstants.START_ELEMENT and may represent the start of the annotation element. If it doesn't, this method should not read any events and immediately return false. Otherwise, this method should read subsequent events up through the corresponding XMLStreamConstants.END_ELEMENT event and return true. Upon return, the reader's current event will have type XMLStreamConstants.END_ELEMENT.

      Specified by:
      readAnnotationElement in class AnnotatedXMLStreamReader
      Parameters:
      reader - source from which the the annotation element is to be read, if found
      Returns:
      true if the current event is the start of the annotation element and has been read, false otherwise
      Throws:
      XMLStreamException - if an XML parse error occurs