public class JpaOrmXmlEventReader extends EventReaderDelegate
orm.xml specific StAX EVentReader to handle a few oddities.
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.
HHH-8108 for more discussion.| Modifier and Type | Class and Description |
|---|---|
static class |
JpaOrmXmlEventReader.BadVersionException |
| Constructor and Description |
|---|
JpaOrmXmlEventReader(XMLEventReader reader) |
JpaOrmXmlEventReader(XMLEventReader reader,
XMLEventFactory xmlEventFactory) |
| Modifier and Type | Method and Description |
|---|---|
XMLEvent |
nextEvent() |
XMLEvent |
peek() |
close, getElementText, getParent, getProperty, hasNext, next, nextTag, remove, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic JpaOrmXmlEventReader(XMLEventReader reader)
public JpaOrmXmlEventReader(XMLEventReader reader, XMLEventFactory xmlEventFactory)
public XMLEvent peek() throws XMLStreamException
peek in interface XMLEventReaderpeek in class EventReaderDelegateXMLStreamExceptionpublic XMLEvent nextEvent() throws XMLStreamException
nextEvent in interface XMLEventReadernextEvent in class EventReaderDelegateXMLStreamExceptionCopyright © 2001-2017 Red Hat, Inc. All Rights Reserved.