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, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
JpaOrmXmlEventReader
-
JpaOrmXmlEventReader
-
-
Method Details
-
peek
- Specified by:
peekin interfaceXMLEventReader- Overrides:
peekin classEventReaderDelegate- Throws:
XMLStreamException
-
nextEvent
- Specified by:
nextEventin interfaceXMLEventReader- Overrides:
nextEventin classEventReaderDelegate- Throws:
XMLStreamException
-