Class TLcdXMLNameStack

java.lang.Object
com.luciad.format.xml.TLcdXMLNameStack
All Implemented Interfaces:
ILcdXMLEditableNameStack, ILcdXMLNameStack

public class TLcdXMLNameStack extends Object implements ILcdXMLEditableNameStack
Deprecated.
Use of the com.format.xml API has been deprecated. Instead, use the com.format.xml.bind API.
Default implementation of ILcdXMLNameStack.
  • Constructor Details

    • TLcdXMLNameStack

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

      public TLcdXMLNameStack(ILcdXMLNameStack aNameStack)
      Deprecated.
      Creates a new name stack, initialized with a copy of the given name stack.
      Parameters:
      aNameStack - the name stack with which this new stack should be initialized.
  • Method Details

    • push

      public void push(TLcdXMLName aName)
      Deprecated.
      use pushName() instead.
      Adds an element on top of this stack.
      Parameters:
      aName - The item to be pushed on this stack.
    • pop

      public TLcdXMLName pop()
      Deprecated.
      use popName() 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 clearNameStack() instead.
      Removes all elements from this stack. The stack will be empty after this call.
    • popName

      public TLcdXMLName popName()
      Deprecated.
      Description copied from interface: ILcdXMLEditableNameStack
      Removes the element on top of this stack and returns that object as the value of this function.
      Specified by:
      popName in interface ILcdXMLEditableNameStack
      Returns:
      The element on top of this stack
    • pushName

      public void pushName(TLcdXMLName aName)
      Deprecated.
      Description copied from interface: ILcdXMLEditableNameStack
      Adds an element on top of this stack.
      Specified by:
      pushName in interface ILcdXMLEditableNameStack
      Parameters:
      aName - The item to be pushed on this stack.
    • clearNameStack

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

      public TLcdXMLName peekName()
      Deprecated.
      Description copied from interface: ILcdXMLNameStack
      Returns the name on top of the stack.
      Specified by:
      peekName in interface ILcdXMLNameStack
      Returns:
      the top element of the stack
    • getName

      public TLcdXMLName getName(int aIndex)
      Deprecated.
      Description copied from interface: ILcdXMLNameStack
      Returns the name at the given index.
      Specified by:
      getName in interface ILcdXMLNameStack
      Parameters:
      aIndex - the index of the name to be retrieved.
      Returns:
      the name at the given index.
    • isEmptyNameStack

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

      public int getNameCount()
      Deprecated.
      Description copied from interface: ILcdXMLNameStack
      Returns the current stack size.
      Specified by:
      getNameCount in interface ILcdXMLNameStack
      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.