Class JpaNamespaceTransformingEventReader
- java.lang.Object
-
- javax.xml.stream.util.EventReaderDelegate
-
- org.hibernate.jpamodelgen.util.xml.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.
-
-
Constructor Summary
Constructors Constructor Description JpaNamespaceTransformingEventReader(javax.xml.stream.XMLEventReader reader)
-
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
-
-
-
-
Method Detail
-
peek
public javax.xml.stream.events.XMLEvent peek() throws javax.xml.stream.XMLStreamException
- Specified by:
peek
in interfacejavax.xml.stream.XMLEventReader
- Overrides:
peek
in classjavax.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 interfacejavax.xml.stream.XMLEventReader
- Overrides:
nextEvent
in classjavax.xml.stream.util.EventReaderDelegate
- Throws:
javax.xml.stream.XMLStreamException
-
-