| java.lang.Object org.jacorb.orb.TaggedComponentList
TaggedComponentList | public class TaggedComponentList implements Cloneable(Code) | | Represents a list of tagged components from an IOR, along with some
generic methods to find and access individual components.
author: Andre Spiegel version: $Id: TaggedComponentList.java,v 1.8 2006/06/27 10:50:53 alphonse.bendt Exp $ |
Method Summary | |
public void | addAll(TaggedComponentList other) Adds an entire TaggedComponentList to this list. | public void | addComponent(int tag, Object data, Class helper) Adds a tagged component to this list. | public void | addComponent(int tag, byte[] data) Adds a tagged component to this list. | public void | addComponent(TaggedComponent component) Adds a tagged component to this list. | public TaggedComponent[] | asArray() | public Object | clone() | public TaggedComponent | get(int index) | public Object | getComponent(int tag, Class helper) Searches for a component with the given tag in this component list. | public List | getComponents(int tag, Class helper) Returns a List of all components with the given tag from this
TaggedComponentList. | public String | getStringComponent(int tag) Returns the first component with the given tag, which is assumed
to be a CDR string. | public boolean | isEmpty() | public int | size() |
TaggedComponentList | public TaggedComponentList(byte[] data)(Code) | | Constructs a TaggedComponentList from a CDR encapsulation of
an array of tagged components.
|
TaggedComponentList | public TaggedComponentList()(Code) | | Constructs a new, empty TaggedComponentList.
|
addComponent | public void addComponent(int tag, Object data, Class helper)(Code) | | Adds a tagged component to this list. The component's data
is created by marshaling the given data Object using the
write() method of the given helper class.
|
addComponent | public void addComponent(int tag, byte[] data)(Code) | | Adds a tagged component to this list.
|
addComponent | public void addComponent(TaggedComponent component)(Code) | | Adds a tagged component to this list.
|
asArray | public TaggedComponent[] asArray()(Code) | | |
get | public TaggedComponent get(int index)(Code) | | |
getComponent | public Object getComponent(int tag, Class helper)(Code) | | Searches for a component with the given tag in this component list.
If one is found, this method reads the corresponding data with the given
helper class, and returns the resulting object, otherwise returns
null.
|
getComponents | public List getComponents(int tag, Class helper)(Code) | | Returns a List of all components with the given tag from this
TaggedComponentList. Each individual component is read with
the given helper class. If no components with the given tag
can be found, an empty list is returned.
|
getStringComponent | public String getStringComponent(int tag)(Code) | | Returns the first component with the given tag, which is assumed
to be a CDR string. If no component with the given tag exists,
returns null.
|
isEmpty | public boolean isEmpty()(Code) | | |
|
|