org.base.apps.xml.util
Class OutputStack

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector<E>
              extended by java.util.Stack<E>
                  extended by org.base.apps.util.BaseStack<Object>
                      extended by org.base.apps.xml.util.OutputStack
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Object>, Collection<Object>, List<Object>, RandomAccess

public class OutputStack
extends BaseStack<Object>

Enhanced version of BaseStack to facilitate building an object representation of parsed XML.

Author:
Kevan Simpson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
OutputStack()
           
 
Method Summary
<T> T
peek(Class<T> type)
          Fetches the next object on the stack of the given type.
 
Methods inherited from class org.base.apps.util.BaseStack
search
 
Methods inherited from class java.util.Stack
empty, peek, pop, push
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

OutputStack

public OutputStack()
Method Detail

peek

public <T> T peek(Class<T> type)
Fetches the next object on the stack of the given type.

Type Parameters:
T - The generic type.
Parameters:
type - The given type to fetch.
Returns:
the next object on the stack of the given type or null.

Please visit Base Apps, hosted on Sourceforge.net.

Copyright 2011, Blue Agate Software Entity (BASE)