public class ExpressionStreamReaderDelegate extends StreamReaderDelegate
Function to resolve values retrieved by getElementTexts.ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Constructor and Description |
|---|
ExpressionStreamReaderDelegate(XMLStreamReader reader,
Function<String,String> exprExpandFunction) |
| Modifier and Type | Method and Description |
|---|---|
String |
getElementText() |
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getParent, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, next, nextTag, require, setParent, standaloneSetpublic ExpressionStreamReaderDelegate(XMLStreamReader reader, Function<String,String> exprExpandFunction)
reader - The XMLStreamReader for the XML fileexprExpandFunction - A function which will be used, if provided, to expand any expressions (of the form of ${foobar})
in the content being parsed. This function can be null, in which case the content is processed literally.public String getElementText() throws XMLStreamException
getElementText in interface XMLStreamReadergetElementText in class StreamReaderDelegateXMLStreamExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.