com.objsys.asn1j.runtime
Class Asn1ArrayType

java.lang.Object
  extended by com.objsys.asn1j.runtime.Asn1Type
      extended by com.objsys.asn1j.runtime.Asn1ArrayType
All Implemented Interfaces:
Asn1TypeIF, java.io.Serializable, java.lang.Cloneable

public class Asn1ArrayType
extends Asn1Type

This class represents the temporaray sequence of XSD type.

See Also:
Serialized Form

Field Summary
 java.util.ArrayList element
          This member variable is where the list value is stored.
 
Fields inherited from class com.objsys.asn1j.runtime.Asn1Type
BIT_STRING, BMPString, BOOLEAN, DATE, DATE_TIME, DURATION, ENUMERATED, EOC, EXTERNAL, GeneralString, GeneralTime, GraphicString, IA5String, INTEGER, mAsn1TypeName, NULL, NumericString, OBJECT_IDENTIFIER, ObjectDescriptor, OCTET_STRING, OID_IRI, OpenType, PrintableString, REAL, RELATIVE_OID_IRI, RelativeOID, SEQUENCE, SET, T61String, TeletexString, TIME, TIME_OF_DAY, UniversalString, UTCTime, UTF8String, VideotexString, VisibleString
 
Constructor Summary
Asn1ArrayType()
          The default constructor initializes the choiceID and value.
Asn1ArrayType(Asn1Type[] objects)
          This constructor creates a an internal array using the given array of objects derived from Asn1Type.
 
Method Summary
 void add(Asn1Type data)
           
 boolean equals(java.lang.Object cv_)
          This method compares this type element with the passed type element.
 int hashCode()
          This method will return the hashCode for this array type.
 void print(java.io.PrintStream _out, java.lang.String _varName, int _level)
          This method will format and output a primitive value to the given print stream, for each array element value.
 int size()
          This method returns the size of array.
 Asn1Type[] toArray()
          This method returns the array of element object.
 void toArray(Asn1Type[] target)
          This method copies the elements into the given array.
 
Methods inherited from class com.objsys.asn1j.runtime.Asn1Type
clone, decode, decode, decode, decode, decode, decode, decode, decodeXML, encode, encode, encode, encode, encode, encode, encode, equals, getAsn1TypeName, getLength, getTypeName, indent, isOpenType, matchTag, matchTag, pdiag, setKey, setOpenType
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

element

public transient java.util.ArrayList element
This member variable is where the list value is stored.

Constructor Detail

Asn1ArrayType

public Asn1ArrayType()
The default constructor initializes the choiceID and value.


Asn1ArrayType

public Asn1ArrayType(Asn1Type[] objects)
This constructor creates a an internal array using the given array of objects derived from Asn1Type.

Method Detail

add

public void add(Asn1Type data)

size

public int size()
This method returns the size of array.


toArray

public Asn1Type[] toArray()
This method returns the array of element object.


toArray

public void toArray(Asn1Type[] target)
This method copies the elements into the given array. The given array should be at least sufficiently large to hold all of the elements.


equals

public boolean equals(java.lang.Object cv_)
This method compares this type element with the passed type element.

Overrides:
equals in class java.lang.Object
Parameters:
cv_ - Asn1ArrayType value

hashCode

public int hashCode()
This method will return the hashCode for this array type.

Overrides:
hashCode in class Asn1Type

print

public void print(java.io.PrintStream _out,
                  java.lang.String _varName,
                  int _level)
This method will format and output a primitive value to the given print stream, for each array element value.

Specified by:
print in interface Asn1TypeIF
Overrides:
print in class Asn1Type
Parameters:
out - Print output stream
varName - Name of variable
level - Indentation level