public class Asn1ArrayType extends Asn1Type
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList |
element
This member variable is where the list value is stored.
|
BIT_STRING, BMPString, BOOLEAN, DATE, DATE_TIME, DURATION, ENUMERATED, EOC, EXTERNAL, GeneralString, GeneralTime, GraphicString, IA5String, INTEGER, mNonParameterizedTypeName, 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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.PrintWriter _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.
|
void |
print(java.lang.StringBuilder _sb,
java.lang.String _varName,
int _level)
This method will format and output a primitive value to the given
string builder for each array 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.
|
_setKey, _setLicLocation, clone, decode, decode, decode, decode, decode, decode, decode, decode, decode, decode, decode, decode, decode, decode, decodeXML, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encodeAsOpenType, equals, getAsn1TypeName, getLength, getNonParameterizedTypeName, getTypeName, indent, indent, isOpenType, matchTag, matchTag, pdiag, print, setNonParameterizedTypeName, setOpenType
public transient java.util.ArrayList element
public Asn1ArrayType()
public Asn1ArrayType(Asn1Type[] objects)
public void add(Asn1Type data)
public int size()
public Asn1Type[] toArray()
public void toArray(Asn1Type[] target)
public boolean equals(java.lang.Object cv_)
equals
in class java.lang.Object
cv_
- Asn1ArrayType valuepublic int hashCode()
public void print(java.io.PrintWriter _out, java.lang.String _varName, int _level)
print
in interface Asn1TypeIF
print
in class Asn1Type
_out
- Print output stream_varName
- Name of variable_level
- Indentation levelpublic void print(java.lang.StringBuilder _sb, java.lang.String _varName, int _level)
print
in interface Asn1TypeIF
print
in class Asn1Type
_sb
- The output StringBuilder._varName
- The name of the variable._level
- The indentation level.