jremote jbase5.2.1

com.jbase.jremote
Class JSubroutineParameters

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<JDynArray>
              extended by com.jbase.jremote.JSubroutineParameters
All Implemented Interfaces:
JBaseSerializable, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<JDynArray>, java.util.Collection<JDynArray>, java.util.List<JDynArray>, java.util.RandomAccess

public class JSubroutineParameters
extends java.util.ArrayList<JDynArray>
implements JBaseSerializable

A list of parameters to pass to a jBASE subroutine.

JSubroutineParameters is based on ArrayList and its typical usage is as follows:

    JSubroutineParameters subroutineParams = new JSubroutineParameters();
    subroutineParams.add(new JDynArray());
    subroutineParams.add(new JDynArray("two"));
    subroutineParams.add(null);
    subroutineParams.add(new JDynArray());
    subroutineParams.add(new JDynArray("five"));

Adding null elements is permitted and the above example will provide five parameters to a subroutine.

Author:
aphethean
See Also:
JConnection.call(java.lang.String, com.jbase.jremote.JSubroutineParameters), Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.jbase.jremote.io.JBaseSerializable
JBaseSerializable.TYPE
 
Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
JSubroutineParameters()
           
 
Method Summary
 int getType()
           
 int getVersion()
           
 void readObject(JBaseObjectReader reader, int version)
           
 void writeObject(JBaseObjectWriter writer, int version)
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

JSubroutineParameters

public JSubroutineParameters()
Method Detail

getType

public int getType()
Specified by:
getType in interface JBaseSerializable
Returns:
type id of the objects, used during the serialization

getVersion

public int getVersion()
Specified by:
getVersion in interface JBaseSerializable

writeObject

public void writeObject(JBaseObjectWriter writer,
                        int version)
                 throws java.io.IOException
Specified by:
writeObject in interface JBaseSerializable
Throws:
java.io.IOException

readObject

public void readObject(JBaseObjectReader reader,
                       int version)
                throws java.io.IOException,
                       java.lang.ClassNotFoundException
Specified by:
readObject in interface JBaseSerializable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

jremote jbase5.2.1

Copyright © 2010 TEMENOS. All Rights Reserved.