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
ConstructorDescriptionDeprecated.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 TypeMethodDescriptionvoid
clear()
Deprecated.UseclearObjectStack()
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.Returnstrue
if this stack is empty,false
otherwise.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.void
Deprecated.UsepushObject(Object aObject)
instead.void
pushObject
(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:ILcdXMLEditableObjectStack
Removes the element on top of this stack and returns that object as the value of this function.- Specified by:
popObject
in interfaceILcdXMLEditableObjectStack
- Returns:
- The element on top of this stack
-
pushObject
Deprecated.Description copied from interface:ILcdXMLEditableObjectStack
Adds an element on top of this stack.- Specified by:
pushObject
in interfaceILcdXMLEditableObjectStack
- 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 interfaceILcdXMLEditableObjectStack
-
peekObject
Deprecated.Description copied from interface:ILcdXMLObjectStack
Returns the object on top of the stack.- Specified by:
peekObject
in interfaceILcdXMLObjectStack
- Returns:
- the top object on the stack
-
getObject
Deprecated.Description copied from interface:ILcdXMLObjectStack
Returns the object at the given index.- Specified by:
getObject
in 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:ILcdXMLObjectStack
Returnstrue
if this stack is empty,false
otherwise.- Specified by:
isEmptyObjectStack
in interfaceILcdXMLObjectStack
- 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 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.xml
API has been deprecated. Instead, use thecom.format.xml.bind
API.