Class JpaNamespaceTransformingEventReader

  • All Implemented Interfaces:
    java.util.Iterator<java.lang.Object>, javax.xml.stream.XMLEventReader

    public class JpaNamespaceTransformingEventReader
    extends javax.xml.stream.util.EventReaderDelegate
    Transforms the version attribute and namespace of the JPA configuration files (persistence.xml and orm.xml) to the default. For the purpose of the metamodel it is enough to parse the xml against the latest specification version and schema.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.xml.stream.events.XMLEvent nextEvent()  
      javax.xml.stream.events.XMLEvent peek()  
      • Methods inherited from class javax.xml.stream.util.EventReaderDelegate

        close, getElementText, getParent, getProperty, hasNext, next, nextTag, remove, setParent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • JpaNamespaceTransformingEventReader

        public JpaNamespaceTransformingEventReader​(javax.xml.stream.XMLEventReader reader)
    • Method Detail

      • peek

        public javax.xml.stream.events.XMLEvent peek()
                                              throws javax.xml.stream.XMLStreamException
        Specified by:
        peek in interface javax.xml.stream.XMLEventReader
        Overrides:
        peek in class javax.xml.stream.util.EventReaderDelegate
        Throws:
        javax.xml.stream.XMLStreamException
      • nextEvent

        public javax.xml.stream.events.XMLEvent nextEvent()
                                                   throws javax.xml.stream.XMLStreamException
        Specified by:
        nextEvent in interface javax.xml.stream.XMLEventReader
        Overrides:
        nextEvent in class javax.xml.stream.util.EventReaderDelegate
        Throws:
        javax.xml.stream.XMLStreamException