Top Fields Constructors Methods
org.wildfly.client.config

pack-priv final Class XIncludeXMLStreamReader

extends AbstractDelegatingXMLStreamReader
Class Inheritance
Static Imports
org.wildfly.client.config._private.ConfigMessages.msg

Author
David M. Lloyd

Field Summary

Modifier and TypeField and Description
private ConfigurationXMLStreamReader
pack-priv static final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected ConfigurationXMLStreamReader
private ConfigurationXMLStreamReader
public int
next()

Overrides org.wildfly.client.config.AbstractDelegatingXMLStreamReader.next.

Implements org.wildfly.client.config.ConfigurationXMLStreamReader.next.

Get next parsing event - a processor may return all contiguous character data in a single chunk, or it may split it into several chunks.
private ConfigurationXMLStreamReader
public void
Inherited from org.wildfly.client.config.AbstractDelegatingXMLStreamReader:
closeeventToStringgetAttributeCountgetAttributeLocalNamegetAttributeNamegetAttributeNamespacegetAttributePrefixgetAttributeTypegetAttributeValuegetAttributeValuegetCharacterEncodingSchemegetElementTextgetEncodinggetEventTypegetIncludedFromgetLocalNamegetLocationgetNamegetNamespaceContextgetNamespaceCountgetNamespacePrefixgetNamespaceURIgetNamespaceURIgetNamespaceURIgetPIDatagetPITargetgetPrefixgetPropertygetTextgetTextCharactersgetTextCharactersgetTextLengthgetTextStartgetUrigetVersiongetXmlInputFactoryhasNamehasNexthasTextisAttributeSpecifiedisCharactersisEndElementisStandaloneisStartElementisWhiteSpacenextTagrequirestandaloneSet

Field Detail

childback to summary
private ConfigurationXMLStreamReader child
XINCLUDE_NSback to summary
pack-priv static final String XINCLUDE_NS

Constructor Detail

XIncludeXMLStreamReaderback to summary
pack-priv XIncludeXMLStreamReader(final ConfigurationXMLStreamReader delegate)

Method Detail

getDelegateback to summary
protected ConfigurationXMLStreamReader getDelegate()

Overrides org.wildfly.client.config.AbstractDelegatingXMLStreamReader.getDelegate.

getRawDelegateback to summary
private ConfigurationXMLStreamReader getRawDelegate()
nextback to summary
public int next() throws ConfigXMLParseException

Overrides org.wildfly.client.config.AbstractDelegatingXMLStreamReader.next.

Implements org.wildfly.client.config.ConfigurationXMLStreamReader.next.

Doc from javax.xml.stream.XMLStreamReader.next.

Get next parsing event - a processor may return all contiguous character data in a single chunk, or it may split it into several chunks. If the property javax.xml.stream.isCoalescing is set to true element content must be coalesced and only one CHARACTERS event must be returned for contiguous element content or CDATA Sections. By default entity references must be expanded and reported transparently to the application. An exception will be thrown if an entity reference cannot be expanded. If element content is empty (i.e. content is "") then no CHARACTERS event will be reported.

Given the following XML:
<foo><!--description-->content text<![CDATA[<greeting>Hello>/greeting>]]>other content>/foo>
The behavior of calling next() when being on foo will be:
1- the comment (COMMENT)
2- then the characters section (CHARACTERS)
3- then the CDATA section (another CHARACTERS)
4- then the next characters section (another CHARACTERS)
5- then the END_ELEMENT

Note

empty element (such as <tag/>) will be reported with two separate events: START_ELEMENT, END_ELEMENT - This preserves parsing equivalency of empty element to <tag></tag>.

Returns:int

the integer code corresponding to the current parse event

processIncludeback to summary
private ConfigurationXMLStreamReader processInclude() throws ConfigXMLParseException
skipContentback to summary
public void skipContent() throws ConfigXMLParseException

Overrides default org.wildfly.client.config.ConfigurationXMLStreamReader.skipContent.