XMLConfiguratorState

An XMLConfiguratorState encapsulates the state of an XMLConfigurator.

Author

Todd L Smith

Parameters

ConfigurationType

A concrete Configuration class.

ElementType

A concrete XMLElement class.

StateType

A concrete XMLConfiguratorState class.

configuration

The initial configuration.

Constructors

Link copied to clipboard
constructor(configuration: ConfigurationType)

Construct a new State.

Properties

Link copied to clipboard

The current contents of the text accumulator. This may contain leading or trailing whitespace.

Link copied to clipboard

Answer the parent element of the current element.

Functions

Link copied to clipboard
fun accumulate(buffer: CharArray, start: Int, length: Int)

If the text accumulator is active, then append the specified range of the buffer onto the text accumulator; otherwise, do nothing.

Link copied to clipboard

Answer the configuration manipulated by this state.

Link copied to clipboard

Answer the top of the parse stack (without consuming it).

Link copied to clipboard

Answer the top of the parse stack (and consume it).

Link copied to clipboard
fun push(element: ElementType)

Push the specified element onto the parse stack.

Link copied to clipboard

Activate the text accumulator.

Link copied to clipboard

Deactivate the text accumulator.