org.jinterop.dcom.core
Class JIStruct

java.lang.Object
  extended by org.jinterop.dcom.core.JIStruct
All Implemented Interfaces:
java.io.Serializable

public final class JIStruct
extends java.lang.Object
implements java.io.Serializable

This class represents the Struct data type.

Since:
1.0
See Also:
Serialized Form

Field Summary
static JIStruct MEMBER_IS_EMPTY
           
 
Constructor Summary
JIStruct()
           
 
Method Summary
 void addMember(int position, java.lang.Object member)
          Adds object as member to the index specified.
 void addMember(java.lang.Object member)
          Adds the object as a member of this structure.
 java.lang.Object getMember(int position)
          Retrieves the member at the specified index from the member list.
 java.util.List getMembers()
          Returns all members as java.util.List.
 int getSize()
          Returns the total number of members.
 void removeMember(int index)
          Removes the member from the specified index.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MEMBER_IS_EMPTY

public static final JIStruct MEMBER_IS_EMPTY
Constructor Detail

JIStruct

public JIStruct()
Method Detail

addMember

public void addMember(java.lang.Object member)
               throws JIException
Adds the object as a member of this structure. This object is appended to the list of members within.

Parameters:
member -
Throws:
JIException

addMember

public void addMember(int position,
                      java.lang.Object member)
               throws JIException
Adds object as member to the index specified.

Parameters:
position - Zero based index
member -
Throws:
JIException

removeMember

public void removeMember(int index)
Removes the member from the specified index.

Parameters:
index -

getMembers

public java.util.List getMembers()
Returns all members as java.util.List.

Returns:

getMember

public java.lang.Object getMember(int position)
Retrieves the member at the specified index from the member list.

Parameters:
position - Zero based index.
Returns:

getSize

public int getSize()
Returns the total number of members.

Returns: