protected static class

XMLDocumentFragmentScannerImpl.ElementStack

extends Object
java.lang.Object
   ↳ org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.ElementStack

Class Overview

Element stack. This stack operates without synchronization, error checking, and it re-uses objects instead of throwing popped items away.

Summary

Fields
protected QName[] fElements The stack data.
protected int fSize The size of the stack.
Public Constructors
XMLDocumentFragmentScannerImpl.ElementStack()
Default constructor.
Public Methods
void clear()
Clears the stack without throwing away existing QName objects.
void popElement(QName element)
Pops an element off of the stack by setting the values of the specified QName.
QName pushElement(QName element)
Pushes an element on the stack.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected QName[] fElements

The stack data.

protected int fSize

The size of the stack.

Public Constructors

public XMLDocumentFragmentScannerImpl.ElementStack ()

Default constructor.

Public Methods

public void clear ()

Clears the stack without throwing away existing QName objects.

public void popElement (QName element)

Pops an element off of the stack by setting the values of the specified QName.

Note: The object returned is not orphaned to the caller. Therefore, the caller should consider the object to be read-only.

public QName pushElement (QName element)

Pushes an element on the stack.

Note: The QName values are copied into the stack. In other words, the caller does not orphan the element to the stack. Also, the QName object returned is not orphaned to the caller. It should be considered read-only.

Parameters
element The element to push onto the stack.
Returns
  • Returns the actual QName object that stores the