Class JpaOrmXmlEventReader
java.lang.Object
javax.xml.stream.util.EventReaderDelegate
org.hibernate.boot.jaxb.internal.stax.JpaOrmXmlEventReader
- All Implemented Interfaces:
Iterator<Object>
,XMLEventReader
StAX EVentReader which handles a few oddities specific to JPA
orm.xml
Mainly we handle the namespace change.
Ultimately we should handle "upgrading" the documents as well. The idea being that
we'd always treat all versions as the latest.
for more discussion.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionJpaOrmXmlEventReader
(XMLEventReader reader) JpaOrmXmlEventReader
(XMLEventReader reader, XMLEventFactory xmlEventFactory) -
Method Summary
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 Details
-
JpaOrmXmlEventReader
-
JpaOrmXmlEventReader
-
-
Method Details
-
peek
- Specified by:
peek
in interfaceXMLEventReader
- Overrides:
peek
in classEventReaderDelegate
- Throws:
XMLStreamException
-
nextEvent
- Specified by:
nextEvent
in interfaceXMLEventReader
- Overrides:
nextEvent
in classEventReaderDelegate
- Throws:
XMLStreamException
-