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
ConstructorsConstructorDescriptionDeprecated.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 TypeMethodDescriptionvoidclear()Deprecated.useclearNameStack()instead.voidDeprecated.Removes all elements from this stack.getName(int aIndex) Deprecated.Returns the name at the given index.intDeprecated.Returns the current stack size.booleanDeprecated.Returnstrueif this stack is empty,falseotherwise.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.voidpush(TLcdXMLName aName) Deprecated.usepushName()instead.voidpushName(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:ILcdXMLEditableNameStackRemoves the element on top of this stack and returns that object as the value of this function.- Specified by:
popNamein interfaceILcdXMLEditableNameStack- Returns:
- The element on top of this stack
-
pushName
Deprecated.Description copied from interface:ILcdXMLEditableNameStackAdds an element on top of this stack.- Specified by:
pushNamein interfaceILcdXMLEditableNameStack- Parameters:
aName- The item to be pushed on this stack.
-
clearNameStack
public void clearNameStack()Deprecated.Description copied from interface:ILcdXMLEditableNameStackRemoves all elements from this stack. The stack will be empty after this call.- Specified by:
clearNameStackin interfaceILcdXMLEditableNameStack
-
peekName
Deprecated.Description copied from interface:ILcdXMLNameStackReturns the name on top of the stack.- Specified by:
peekNamein interfaceILcdXMLNameStack- Returns:
- the top element of the stack
-
getName
Deprecated.Description copied from interface:ILcdXMLNameStackReturns the name at the given index.- Specified by:
getNamein 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:ILcdXMLNameStackReturnstrueif this stack is empty,falseotherwise.- Specified by:
isEmptyNameStackin interfaceILcdXMLNameStack- Returns:
trueif this stack is empty,falseotherwise.
-
getNameCount
public int getNameCount()Deprecated.Description copied from interface:ILcdXMLNameStackReturns the current stack size.- Specified by:
getNameCountin 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.xmlAPI has been deprecated. Instead, use thecom.format.xml.bindAPI.