Class TLcdXMLObjectStack

java.lang.Object
com.luciad.format.xml.TLcdXMLObjectStack
All Implemented Interfaces:
ILcdXMLEditableObjectStack, ILcdXMLObjectStack

public class TLcdXMLObjectStack extends Object implements ILcdXMLEditableObjectStack
Deprecated.
Use of the com.format.xml API has been deprecated. Instead, use the com.format.xml.bind API.
Default implementation of ILcdXMLObjectStack.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Creates a new, empty object stack.
    Deprecated.
    Creates a new object stack, initialized with a copy of the given object stack.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    Use clearObjectStack() instead.
    void
    Deprecated.
    Removes all elements from this stack.
    getObject(int aIndex)
    Deprecated.
    Returns the object at the given index.
    int
    Deprecated.
    Returns the current stack size.
    boolean
    Deprecated.
    Returns true if this stack is empty, false otherwise.
    Deprecated.
    Returns the object on top of the stack.
    pop()
    Deprecated.
    Use popObject() instead.
    Deprecated.
    Removes the element on top of this stack and returns that object as the value of this function.
    void
    push(Object aObject)
    Deprecated.
    Use pushObject(Object aObject) instead.
    void
    pushObject(Object aObject)
    Deprecated.
    Adds an element on top of this stack.
    Deprecated.
    Returns a comma-separated String representation of this stack.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TLcdXMLObjectStack

      public TLcdXMLObjectStack()
      Deprecated.
      Creates a new, empty object stack.
    • TLcdXMLObjectStack

      public TLcdXMLObjectStack(ILcdXMLObjectStack aObjectStack)
      Deprecated.
      Creates a new object stack, initialized with a copy of the given object stack.
      Parameters:
      aObjectStack - the object stack with which this new stack should be initialized.
  • Method Details

    • push

      public void push(Object aObject)
      Deprecated.
      Use pushObject(Object aObject) instead.
      Adds an element on top of this stack.
      Parameters:
      aObject - The item to be pushed on this stack.
    • pop

      public Object pop()
      Deprecated.
      Use popObject() instead.
      Removes the element on top of this stack and returns that object as the value of this function.
      Returns:
      The element on top of this stack
      Throws:
      EmptyStackException - if this stack is empty.
    • clear

      public void clear()
      Deprecated.
      Use clearObjectStack() instead.
      Removes all elements from this stack. The stack will be empty after this call.
    • popObject

      public Object popObject()
      Deprecated.
      Description copied from interface: ILcdXMLEditableObjectStack
      Removes the element on top of this stack and returns that object as the value of this function.
      Specified by:
      popObject in interface ILcdXMLEditableObjectStack
      Returns:
      The element on top of this stack
    • pushObject

      public void pushObject(Object aObject)
      Deprecated.
      Description copied from interface: ILcdXMLEditableObjectStack
      Adds an element on top of this stack.
      Specified by:
      pushObject in interface ILcdXMLEditableObjectStack
      Parameters:
      aObject - The item to be pushed on this stack.
    • clearObjectStack

      public void clearObjectStack()
      Deprecated.
      Description copied from interface: ILcdXMLEditableObjectStack
      Removes all elements from this stack. The stack will be empty after this call.
      Specified by:
      clearObjectStack in interface ILcdXMLEditableObjectStack
    • peekObject

      public Object peekObject()
      Deprecated.
      Description copied from interface: ILcdXMLObjectStack
      Returns the object on top of the stack.
      Specified by:
      peekObject in interface ILcdXMLObjectStack
      Returns:
      the top object on the stack
    • getObject

      public Object getObject(int aIndex)
      Deprecated.
      Description copied from interface: ILcdXMLObjectStack
      Returns the object at the given index.
      Specified by:
      getObject in interface ILcdXMLObjectStack
      Parameters:
      aIndex - the index of the object to be retrieved.
      Returns:
      the object at the given index.
    • isEmptyObjectStack

      public boolean isEmptyObjectStack()
      Deprecated.
      Description copied from interface: ILcdXMLObjectStack
      Returns true if this stack is empty, false otherwise.
      Specified by:
      isEmptyObjectStack in interface ILcdXMLObjectStack
      Returns:
      true if this stack is empty, false otherwise.
    • getObjectCount

      public int getObjectCount()
      Deprecated.
      Description copied from interface: ILcdXMLObjectStack
      Returns the current stack size.
      Specified by:
      getObjectCount in interface ILcdXMLObjectStack
      Returns:
      the current stack size.
    • toString

      public String toString()
      Deprecated.
      Returns a comma-separated String representation of this stack. The exact details of the representation are unspecified and are subject to change.
      Overrides:
      toString in class Object
      Returns:
      a comma-separated String representation of this stack.