Package com.luciad.format.xml
Class TLcdXMLObjectStack
java.lang.Object
com.luciad.format.xml.TLcdXMLObjectStack
- All Implemented Interfaces:
ILcdXMLEditableObjectStack,ILcdXMLObjectStack
Deprecated.
Default implementation of
ILcdXMLObjectStack.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a new, empty object stack.TLcdXMLObjectStack(ILcdXMLObjectStack aObjectStack) Deprecated.Creates a new object stack, initialized with a copy of the given object stack. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Deprecated.UseclearObjectStack()instead.voidDeprecated.Removes all elements from this stack.getObject(int aIndex) Deprecated.Returns the object at the given index.intDeprecated.Returns the current stack size.booleanDeprecated.Returnstrueif this stack is empty,falseotherwise.Deprecated.Returns the object on top of the stack.pop()Deprecated.UsepopObject()instead.Deprecated.Removes the element on top of this stack and returns that object as the value of this function.voidDeprecated.UsepushObject(Object aObject)instead.voidpushObject(Object aObject) Deprecated.Adds an element on top of this stack.toString()Deprecated.Returns a comma-separated String representation of this stack.
-
Constructor Details
-
TLcdXMLObjectStack
public TLcdXMLObjectStack()Deprecated.Creates a new, empty object stack. -
TLcdXMLObjectStack
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
Deprecated.UsepushObject(Object aObject)instead.Adds an element on top of this stack.- Parameters:
aObject- The item to be pushed on this stack.
-
pop
Deprecated.UsepopObject()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.UseclearObjectStack()instead.Removes all elements from this stack. The stack will be empty after this call. -
popObject
Deprecated.Description copied from interface:ILcdXMLEditableObjectStackRemoves the element on top of this stack and returns that object as the value of this function.- Specified by:
popObjectin interfaceILcdXMLEditableObjectStack- Returns:
- The element on top of this stack
-
pushObject
Deprecated.Description copied from interface:ILcdXMLEditableObjectStackAdds an element on top of this stack.- Specified by:
pushObjectin interfaceILcdXMLEditableObjectStack- Parameters:
aObject- The item to be pushed on this stack.
-
clearObjectStack
public void clearObjectStack()Deprecated.Description copied from interface:ILcdXMLEditableObjectStackRemoves all elements from this stack. The stack will be empty after this call.- Specified by:
clearObjectStackin interfaceILcdXMLEditableObjectStack
-
peekObject
Deprecated.Description copied from interface:ILcdXMLObjectStackReturns the object on top of the stack.- Specified by:
peekObjectin interfaceILcdXMLObjectStack- Returns:
- the top object on the stack
-
getObject
Deprecated.Description copied from interface:ILcdXMLObjectStackReturns the object at the given index.- Specified by:
getObjectin interfaceILcdXMLObjectStack- 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:ILcdXMLObjectStackReturnstrueif this stack is empty,falseotherwise.- Specified by:
isEmptyObjectStackin interfaceILcdXMLObjectStack- Returns:
trueif this stack is empty,falseotherwise.
-
getObjectCount
public int getObjectCount()Deprecated.Description copied from interface:ILcdXMLObjectStackReturns the current stack size.- Specified by:
getObjectCountin interfaceILcdXMLObjectStack- 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.