Class XmlReader
- java.lang.Object
-
- org.finos.legend.engine.external.format.xml.shared.XmlReader
-
public class XmlReader extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classXmlReader.Transaction
-
Method Summary
-
-
-
Method Detail
-
isStartDocument
public boolean isStartDocument()
-
isEndDocument
public boolean isEndDocument()
-
isStartElement
public boolean isStartElement()
-
isStartElement
public boolean isStartElement(QName name)
-
isStartElementLenient
public boolean isStartElementLenient(String localPart)
-
isXsiNil
public boolean isXsiNil()
-
isEndElement
public boolean isEndElement()
-
isEndElement
public boolean isEndElement(QName name)
-
getName
public QName getName()
-
getElementText
public String getElementText()
-
getAttributeValueOrDefault
public String getAttributeValueOrDefault(String namespace, String localPart, String dflt)
-
getAttributeValueLenientOrDefault
public String getAttributeValueLenientOrDefault(String attributeName, String dflt)
-
hasAttribute
public boolean hasAttribute(QName name)
-
hasAttributeLenient
public boolean hasAttributeLenient(String attributeName)
-
skipElement
public void skipElement()
-
nextTag
public void nextTag()
-
getNamespaceContextSupplier
public Supplier<NamespaceContext> getNamespaceContextSupplier()
-
close
public void close()
-
getLocation
public Location getLocation()
-
describe
public String describe()
-
getRawElementContents
public String getRawElementContents()
-
getRawElementTextContents
public String getRawElementTextContents()
-
newTransaction
public XmlReader.Transaction newTransaction()
-
startCapture
public void startCapture()
-
endCapture
public String endCapture()
-
hasNext
public boolean hasNext()
-
next
public int next()
-
newReader
public static XmlReader newReader(InputStream stream)
-
newReader
public static XmlReader newReader(InputStream stream, String id)
-
newReader
public static XmlReader newReader(Reader reader, Function<XMLStreamException,? extends RuntimeException> exceptionHandler)
-
newReader
public static XmlReader newReader(Reader reader, String id, Function<XMLStreamException,? extends RuntimeException> exceptionHandler)
-
-