Package com.luciad.format.xml
Class TLcdXMLNameStack
java.lang.Object
com.luciad.format.xml.TLcdXMLNameStack
- All Implemented Interfaces:
ILcdXMLEditableNameStack
,ILcdXMLNameStack
Deprecated.
Default implementation of
ILcdXMLNameStack
.-
Constructor Summary
ConstructorDescriptionDeprecated.Creates a new, empty stack.TLcdXMLNameStack
(ILcdXMLNameStack aNameStack) Deprecated.Creates a new name stack, initialized with a copy of the given name stack. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Deprecated.useclearNameStack()
instead.void
Deprecated.Removes all elements from this stack.getName
(int aIndex) Deprecated.Returns the name at the given index.int
Deprecated.Returns the current stack size.boolean
Deprecated.Returnstrue
if this stack is empty,false
otherwise.peekName()
Deprecated.Returns the name on top of the stack.pop()
Deprecated.usepopName()
instead.popName()
Deprecated.Removes the element on top of this stack and returns that object as the value of this function.void
push
(TLcdXMLName aName) Deprecated.usepushName()
instead.void
pushName
(TLcdXMLName aName) Deprecated.Adds an element on top of this stack.toString()
Deprecated.Returns a comma-separated String representation of this stack.
-
Constructor Details
-
TLcdXMLNameStack
public TLcdXMLNameStack()Deprecated.Creates a new, empty stack. -
TLcdXMLNameStack
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
Deprecated.usepushName()
instead.Adds an element on top of this stack.- Parameters:
aName
- The item to be pushed on this stack.
-
pop
Deprecated.usepopName()
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.useclearNameStack()
instead.Removes all elements from this stack. The stack will be empty after this call. -
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 interfaceILcdXMLEditableNameStack
- Returns:
- The element on top of this stack
-
pushName
Deprecated.Description copied from interface:ILcdXMLEditableNameStack
Adds an element on top of this stack.- Specified by:
pushName
in interfaceILcdXMLEditableNameStack
- 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 interfaceILcdXMLEditableNameStack
-
peekName
Deprecated.Description copied from interface:ILcdXMLNameStack
Returns the name on top of the stack.- Specified by:
peekName
in interfaceILcdXMLNameStack
- Returns:
- the top element of the stack
-
getName
Deprecated.Description copied from interface:ILcdXMLNameStack
Returns the name at the given index.- Specified by:
getName
in interfaceILcdXMLNameStack
- 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
Returnstrue
if this stack is empty,false
otherwise.- Specified by:
isEmptyNameStack
in interfaceILcdXMLNameStack
- 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 interfaceILcdXMLNameStack
- Returns:
- the current stack size.
-
toString
Deprecated.Returns a comma-separated String representation of this stack. The exact details of the representation are unspecified and are subject to change.
-
com.format.xml
API has been deprecated. Instead, use thecom.format.xml.bind
API.