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.EventReaderDelegateTransforms 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.XMLEventnextEvent()javax.xml.stream.events.XMLEventpeek()-
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:
peekin interfacejavax.xml.stream.XMLEventReader- Overrides:
peekin 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:
nextEventin interfacejavax.xml.stream.XMLEventReader- Overrides:
nextEventin classjavax.xml.stream.util.EventReaderDelegate- Throws:
javax.xml.stream.XMLStreamException
-
-