public interface ConfigurationXMLStreamReader extends XMLStreamReader, AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static char[] |
EMPTY_CHARS |
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static String |
eventToString(int type) |
String |
getAttributeValue(int index)
Get the value of an attribute.
|
default String |
getAttributeValueResolved(int index)
Get the value of an attribute with expressions resolved.
|
default boolean |
getBooleanAttributeValue(int index)
Get an attribute value as a
boolean. |
default boolean |
getBooleanAttributeValueResolved(int index)
Get an attribute value as a
boolean with expressions resolved. |
default org.wildfly.common.net.CidrAddress |
getCidrAddressAttributeValue(int index)
Get an attribute value as a
CidrAddress. |
default org.wildfly.common.net.CidrAddress |
getCidrAddressAttributeValueResolved(int index)
Get an attribute value as a
CidrAddress with expressions resolved. |
default org.wildfly.common.expression.Expression |
getElementExpression(org.wildfly.common.expression.Expression.Flag... flags)
Get the element text content as an expression.
|
default String |
getElementText() |
default org.wildfly.common.expression.Expression |
getExpressionAttributeValue(int index,
org.wildfly.common.expression.Expression.Flag... flags)
Get an attribute value as a compiled
Expression. |
XMLLocation |
getIncludedFrom() |
default InetAddress |
getInetAddressAttributeValue(int index)
Get an attribute value as a
InetAddress. |
default InetAddress |
getInetAddressAttributeValueResolved(int index)
Get an attribute value as a
InetAddress with expressions resolved. |
default int |
getIntAttributeValue(int index)
Get the value of an attribute as an integer.
|
default int |
getIntAttributeValue(int index,
int minValue,
int maxValue)
Get the value of an attribute as an integer.
|
default int |
getIntAttributeValueResolved(int index)
Get the value of an attribute as an integer with expressions resolved.
|
default int |
getIntAttributeValueResolved(int index,
int minValue,
int maxValue)
Get the value of an attribute as an integer with expressions resolved.
|
default int[] |
getIntListAttributeValue(int index)
Get the value of an attribute as an integer list.
|
default int[] |
getIntListAttributeValueResolved(int index)
Get the value of an attribute as an integer list with expressions resolved.
|
default List<String> |
getListAttributeValue(int index)
Get the value of an attribute as a space-delimited string list.
|
default String[] |
getListAttributeValueAsArray(int index)
Get the value of an attribute as a space-delimited string list, as an array.
|
default String[] |
getListAttributeValueAsArrayResolved(int index)
Get the value of an attribute as a space-delimited string list with expressions resolved, as an array.
|
default Iterator<String> |
getListAttributeValueAsIterator(int index)
Get the value of an attribute as a space-delimited string list, as an iterator.
|
default Iterator<String> |
getListAttributeValueAsIteratorResolved(int index)
/**
Get the value of an attribute as a space-delimited string list with expressions resolved, as an iterator.
|
default List<String> |
getListAttributeValueResolved(int index)
Get the value of an attribute as a space-delimited string list with expressions resolved.
|
XMLLocation |
getLocation() |
default long |
getLongAttributeValue(int index)
Get the value of an attribute as a long.
|
default long |
getLongAttributeValue(int index,
long minValue,
long maxValue)
Get the value of an attribute as a long.
|
default long |
getLongAttributeValueResolved(int index)
Get the value of an attribute as a long with expressions resolved.
|
default long |
getLongAttributeValueResolved(int index,
long minValue,
long maxValue)
Get the value of an attribute as a long with expressions resolved.
|
default long[] |
getLongListAttributeValue(int index)
Get the value of an attribute as a long integer list.
|
default long[] |
getLongListAttributeValueResolved(int index)
Get the value of an attribute as a long integer list with expressions resolved.
|
default Object |
getProperty(String name) |
int |
getTextCharacters(int sourceStart,
char[] target,
int targetStart,
int length) |
URI |
getUri() |
default URI |
getURIAttributeValue(int index)
Get an attribute value as a
URI. |
default URI |
getURIAttributeValueResolved(int index)
Get an attribute value as a
URI with expressions resolved. |
XMLInputFactory |
getXmlInputFactory() |
default boolean |
hasName() |
boolean |
hasNext() |
default boolean |
hasText() |
default boolean |
isCharacters() |
default boolean |
isEndElement() |
default boolean |
isStandalone() |
default boolean |
isStartElement() |
default boolean |
isWhiteSpace() |
default ConfigXMLParseException |
missingRequiredAttribute(String namespaceUri,
String localName)
Return a throwable exception explaining that a required attribute with the given namespace and local name was missing.
|
default ConfigXMLParseException |
missingRequiredElement(String namespaceUri,
String localName)
Return a throwable exception explaining that a required element with the given namespace and local name was missing.
|
int |
next() |
default int |
nextTag() |
default ConfigXMLParseException |
numericAttributeValueOutOfRange(int index,
long minValue,
long maxValue)
Return a throwable exception explaining that a numeric attribute at the given index was out of its required range.
|
default void |
require(int type,
String namespaceURI,
String localName) |
default void |
skipContent() |
default boolean |
standaloneSet() |
default ConfigXMLParseException |
unexpectedAttribute(int i)
Return a throwable exception explaining that the attribute at the current position with the given index was not
expected.
|
default ConfigXMLParseException |
unexpectedContent()
Return a throwable exception explaining that some unexpected content was encountered.
|
default ConfigXMLParseException |
unexpectedDocumentEnd()
Return a throwable exception explaining that the document end was reached unexpectedly.
|
default ConfigXMLParseException |
unexpectedElement()
Return a throwable exception explaining that the element at the current position was not expected.
|
getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getCharacterEncodingScheme, getEncoding, getEventType, getLocalName, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getText, getTextCharacters, getTextLength, getTextStart, getVersion, isAttributeSpecifiedURI getUri()
XMLInputFactory getXmlInputFactory()
XMLLocation getIncludedFrom()
boolean hasNext()
throws ConfigXMLParseException
hasNext in interface XMLStreamReaderConfigXMLParseExceptionint next() throws ConfigXMLParseException
next in interface XMLStreamReaderConfigXMLParseExceptiondefault int nextTag()
throws ConfigXMLParseException
nextTag in interface XMLStreamReaderConfigXMLParseExceptiondefault String getElementText() throws ConfigXMLParseException
getElementText in interface XMLStreamReaderConfigXMLParseExceptiondefault org.wildfly.common.expression.Expression getElementExpression(org.wildfly.common.expression.Expression.Flag... flags)
throws ConfigXMLParseException
flags - the expression compilation flagsnull)ConfigXMLParseException - if the value is not a valid expression by the given flagsdefault void require(int type,
String namespaceURI,
String localName)
throws ConfigXMLParseException
require in interface XMLStreamReaderConfigXMLParseExceptiondefault boolean isStartElement()
isStartElement in interface XMLStreamReaderdefault boolean isEndElement()
isEndElement in interface XMLStreamReaderdefault boolean isCharacters()
isCharacters in interface XMLStreamReaderdefault boolean isWhiteSpace()
isWhiteSpace in interface XMLStreamReaderstatic String eventToString(int type)
default Object getProperty(String name) throws IllegalArgumentException
getProperty in interface XMLStreamReaderIllegalArgumentExceptiondefault boolean hasText()
hasText in interface XMLStreamReaderdefault boolean isStandalone()
isStandalone in interface XMLStreamReaderdefault boolean standaloneSet()
standaloneSet in interface XMLStreamReaderdefault boolean hasName()
hasName in interface XMLStreamReaderXMLLocation getLocation()
getLocation in interface XMLStreamReaderint getTextCharacters(int sourceStart,
char[] target,
int targetStart,
int length)
throws ConfigXMLParseException
getTextCharacters in interface XMLStreamReaderConfigXMLParseExceptionvoid close()
throws ConfigXMLParseException
close in interface AutoCloseableclose in interface XMLStreamReaderConfigXMLParseExceptiondefault void skipContent()
throws ConfigXMLParseException
ConfigXMLParseExceptiondefault ConfigXMLParseException unexpectedElement()
default ConfigXMLParseException unexpectedAttribute(int i)
i - the attribute indexdefault ConfigXMLParseException unexpectedDocumentEnd()
default ConfigXMLParseException unexpectedContent()
default ConfigXMLParseException missingRequiredElement(String namespaceUri, String localName)
namespaceUri - the namespace URIlocalName - the local element namedefault ConfigXMLParseException missingRequiredAttribute(String namespaceUri, String localName)
namespaceUri - the namespace URI (or null if it is a local name)localName - the local attribute namedefault ConfigXMLParseException numericAttributeValueOutOfRange(int index, long minValue, long maxValue)
index - the attribute indexminValue - the minimum attribute valuemaxValue - the maximum attribute valueString getAttributeValue(int index)
getAttributeValue in interface XMLStreamReaderindex - the index of the attributedefault String getAttributeValueResolved(int index) throws ConfigXMLParseException
index - the index of the attributeConfigXMLParseException - if an error occursdefault int getIntAttributeValue(int index)
throws ConfigXMLParseException
index - the index of the attributeConfigXMLParseException - if an error occursdefault int getIntAttributeValueResolved(int index)
throws ConfigXMLParseException
index - the index of the attributeConfigXMLParseException - if an error occursdefault int getIntAttributeValue(int index,
int minValue,
int maxValue)
throws ConfigXMLParseException
index - the index of the attributeminValue - the minimum allowed valuemaxValue - the maximum allowed valueConfigXMLParseException - if an error occursdefault int getIntAttributeValueResolved(int index,
int minValue,
int maxValue)
throws ConfigXMLParseException
index - the index of the attributeminValue - the minimum allowed valuemaxValue - the maximum allowed valueConfigXMLParseException - if an error occursdefault int[] getIntListAttributeValue(int index)
throws ConfigXMLParseException
index - the index of the attributeConfigXMLParseException - if an error occursdefault int[] getIntListAttributeValueResolved(int index)
throws ConfigXMLParseException
index - the index of the attributeConfigXMLParseException - if an error occursdefault Iterator<String> getListAttributeValueAsIterator(int index) throws ConfigXMLParseException
index - the index of the attributeConfigXMLParseException - if an error occursdefault Iterator<String> getListAttributeValueAsIteratorResolved(int index) throws ConfigXMLParseException
index - the index of the attributeConfigXMLParseException - if an error occursdefault List<String> getListAttributeValue(int index) throws ConfigXMLParseException
index - the index of the attributeConfigXMLParseException - if an error occursdefault List<String> getListAttributeValueResolved(int index) throws ConfigXMLParseException
index - the index of the attributeConfigXMLParseException - if an error occursdefault String[] getListAttributeValueAsArray(int index) throws ConfigXMLParseException
index - the index of the attributeConfigXMLParseException - if an error occursdefault String[] getListAttributeValueAsArrayResolved(int index) throws ConfigXMLParseException
index - the index of the attributeConfigXMLParseException - if an error occursdefault long getLongAttributeValue(int index)
throws ConfigXMLParseException
index - the index of the attributeConfigXMLParseException - if an error occursdefault long getLongAttributeValueResolved(int index)
throws ConfigXMLParseException
index - the index of the attributeConfigXMLParseException - if an error occursdefault long getLongAttributeValue(int index,
long minValue,
long maxValue)
throws ConfigXMLParseException
index - the index of the attributeminValue - the minimum allowed valuemaxValue - the maximum allowed valueConfigXMLParseException - if an error occursdefault long getLongAttributeValueResolved(int index,
long minValue,
long maxValue)
throws ConfigXMLParseException
index - the index of the attributeminValue - the minimum allowed valuemaxValue - the maximum allowed valueConfigXMLParseException - if an error occursdefault long[] getLongListAttributeValue(int index)
throws ConfigXMLParseException
index - the index of the attributeConfigXMLParseException - if an error occursdefault long[] getLongListAttributeValueResolved(int index)
throws ConfigXMLParseException
index - the index of the attributeConfigXMLParseException - if an error occursdefault boolean getBooleanAttributeValue(int index)
boolean. Only the string "true" (case-insensitive) is recognized as
a true value; all other strings are considered false.index - the attribute indexdefault boolean getBooleanAttributeValueResolved(int index)
throws ConfigXMLParseException
boolean with expressions resolved. Only the string "true" (case-insensitive) is recognized as
a true value; all other strings are considered false.index - the attribute indexConfigXMLParseException - if an error occursdefault URI getURIAttributeValue(int index) throws ConfigXMLParseException
URI.index - the attribute indexConfigXMLParseException - if the value is not a valid URIdefault URI getURIAttributeValueResolved(int index) throws ConfigXMLParseException
URI with expressions resolved.index - the attribute indexConfigXMLParseException - if the value is not a valid URIdefault org.wildfly.common.expression.Expression getExpressionAttributeValue(int index,
org.wildfly.common.expression.Expression.Flag... flags)
throws ConfigXMLParseException
Expression.index - the attribute indexflags - the expression compilation flagsnull if the attribute is not presentConfigXMLParseException - if the value is not a valid expression by the given flagsdefault InetAddress getInetAddressAttributeValue(int index) throws ConfigXMLParseException
InetAddress.index - the attribute indexConfigXMLParseException - if the value is not a valid IP addressdefault InetAddress getInetAddressAttributeValueResolved(int index) throws ConfigXMLParseException
InetAddress with expressions resolved.index - the attribute indexConfigXMLParseException - if the value is not a valid IP addressdefault org.wildfly.common.net.CidrAddress getCidrAddressAttributeValue(int index)
throws ConfigXMLParseException
CidrAddress.index - the attribute indexConfigXMLParseException - if the value is not a valid IP addressdefault org.wildfly.common.net.CidrAddress getCidrAddressAttributeValueResolved(int index)
throws ConfigXMLParseException
CidrAddress with expressions resolved.index - the attribute indexConfigXMLParseException - if the value is not a valid IP addressCopyright © 2017 JBoss by Red Hat. All rights reserved.