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
fun <ConfigurationType : Configuration> XMLConfiguratorState(configuration: ConfigurationType)

Construct a new State.

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
fun configuration(): ConfigurationType

Answer the configuration manipulated by this state.

Link copied to clipboard
fun peek(): ElementType?

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

Link copied to clipboard
fun pop(): ElementType

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
fun startAccumulator()

Activate the text accumulator.

Link copied to clipboard
fun stopAccumulator()

Deactivate the text accumulator.

Properties

Link copied to clipboard
val accumulatorContents: String

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

Link copied to clipboard
val parentElement: ElementType?

Answer the parent element of the current element.