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) |
default boolean |
getBooleanAttributeValue(int index)
Get an attribute value as a
boolean. |
default String |
getElementText() |
XMLLocation |
getIncludedFrom() |
default int |
getIntAttributeValue(int index)
Get the value of an attribute as an integer.
|
default int[] |
getIntListAttributeValue(int index)
Get the value of an attribute as an integer list.
|
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 Iterator<String> |
getListAttributeValueAsIterator(int index)
Get the value of an attribute as a space-delimited string list, as an iterator.
|
XMLLocation |
getLocation() |
default long |
getLongAttributeValue(int index)
Get the value of an attribute as a long.
|
default long[] |
getLongListAttributeValue(int index)
Get the value of an attribute as a long integer list.
|
default Object |
getProperty(String name) |
int |
getTextCharacters(int sourceStart,
char[] target,
int targetStart,
int length) |
URI |
getUri() |
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() |
static ConfigurationXMLStreamReader |
openUri(URI uri,
XMLInputFactory xmlInputFactory) |
static ConfigurationXMLStreamReader |
openUri(URI uri,
XMLInputFactory xmlInputFactory,
InputStream inputStream) |
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 |
unexpectedElement()
Return a throwable exception explaining that the element at the current position was not expected.
|
getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getEncoding, getEventType, getLocalName, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getText, getTextCharacters, getTextLength, getTextStart, getVersion, isAttributeSpecifiedstatic ConfigurationXMLStreamReader openUri(URI uri, XMLInputFactory xmlInputFactory) throws ConfigXMLParseException
ConfigXMLParseExceptionstatic ConfigurationXMLStreamReader openUri(URI uri, XMLInputFactory xmlInputFactory, InputStream inputStream) throws ConfigXMLParseException
ConfigXMLParseExceptionURI 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 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 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 int getIntAttributeValue(int index)
throws ConfigXMLParseException
index - the index of the attributeConfigXMLParseException - if an error occursdefault int[] getIntListAttributeValue(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 List<String> getListAttributeValue(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 long getLongAttributeValue(int index)
throws ConfigXMLParseException
index - the index of the attributeConfigXMLParseException - if an error occursdefault long[] getLongListAttributeValue(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 indexCopyright © 2015 JBoss by Red Hat. All rights reserved.