Class JpaNamespaceTransformingEventReader
- java.lang.Object
-
- javax.xml.stream.util.EventReaderDelegate
-
- org.hibernate.jpamodelgen.util.xml.JpaNamespaceTransformingEventReader
-
- All Implemented Interfaces:
Iterator<Object>
,XMLEventReader
public class JpaNamespaceTransformingEventReader extends 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(XMLEventReader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLEvent
nextEvent()
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(XMLEventReader reader)
-
-
Method Detail
-
peek
public XMLEvent peek() throws XMLStreamException
- Specified by:
peek
in interfaceXMLEventReader
- Overrides:
peek
in classEventReaderDelegate
- Throws:
XMLStreamException
-
nextEvent
public XMLEvent nextEvent() throws XMLStreamException
- Specified by:
nextEvent
in interfaceXMLEventReader
- Overrides:
nextEvent
in classEventReaderDelegate
- Throws:
XMLStreamException
-
-