jp.bitmeister.asn1.type.builtin
Class OBJECT_IDENTIFIER

java.lang.Object
  extended by jp.bitmeister.asn1.type.ASN1Type
      extended by jp.bitmeister.asn1.type.PrimitiveType<java.util.List<java.lang.Integer>>
          extended by jp.bitmeister.asn1.type.builtin.OBJECT_IDENTIFIER
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
RELATIVE_OID

public class OBJECT_IDENTIFIER
extends PrimitiveType<java.util.List<java.lang.Integer>>

Represents ASN.1 'OBJECT IDENTIFIER' type.

An instance of this class represents an 'OBJECT IDENTIFIER' type data and contains a List of Integer. Each element of the List represents an object id component.

Author:
WATANABE, Jun.

Field Summary
 
Fields inherited from class jp.bitmeister.asn1.type.ASN1Type
stringBuilder
 
Constructor Summary
OBJECT_IDENTIFIER()
          Instantiates an empty OBJECT_IDENTIFIER.
OBJECT_IDENTIFIER(int... value)
          Instantiates an OBJECT_IDENTIFIER and initialize it with the array of int value.
OBJECT_IDENTIFIER(java.util.List<java.lang.Integer> value)
          Instantiates an OBJECT_IDENTIFIER and initialize it with the List<Integer> value.
 
Method Summary
<R,E extends java.lang.Throwable>
R
accept(ASN1Visitor<R,E> visitor)
          Accepts the ASN1Visitor and calls a visit method of the visitor.
protected  java.util.List<java.lang.Integer> cloneValue()
          Creates and returns a copy of the value set to this data.
static int nameFormToInt(java.util.List<java.lang.Integer> list, java.lang.String nameForm)
           
 void set(int... value)
          Sets the array of int to the data.
 
Methods inherited from class jp.bitmeister.asn1.type.PrimitiveType
clear, clone, hashCode, hasValue, set, value, valueEquals
 
Methods inherited from class jp.bitmeister.asn1.type.ASN1Type
equals, instantiate, matches, specification, toString, validate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OBJECT_IDENTIFIER

public OBJECT_IDENTIFIER()
Instantiates an empty OBJECT_IDENTIFIER.


OBJECT_IDENTIFIER

public OBJECT_IDENTIFIER(java.util.List<java.lang.Integer> value)
Instantiates an OBJECT_IDENTIFIER and initialize it with the List<Integer> value.

Parameters:
value - the List of Integer represents an object identifier.

OBJECT_IDENTIFIER

public OBJECT_IDENTIFIER(int... value)
Instantiates an OBJECT_IDENTIFIER and initialize it with the array of int value.

Parameters:
value - the array of int represents an object identifier.
Method Detail

nameFormToInt

public static int nameFormToInt(java.util.List<java.lang.Integer> list,
                                java.lang.String nameForm)

set

public void set(int... value)
Sets the array of int to the data.

Parameters:
value - the array of int represents an object identifier.

cloneValue

protected java.util.List<java.lang.Integer> cloneValue()
Description copied from class: PrimitiveType
Creates and returns a copy of the value set to this data.

Overrides:
cloneValue in class PrimitiveType<java.util.List<java.lang.Integer>>
Returns:
A copy of the value.

accept

public <R,E extends java.lang.Throwable> R accept(ASN1Visitor<R,E> visitor)
         throws E extends java.lang.Throwable
Description copied from class: ASN1Type
Accepts the ASN1Visitor and calls a visit method of the visitor.

Specified by:
accept in class ASN1Type
Parameters:
visitor - The visitor.
Returns:
Result.
Throws:
E - When an error occured in the visit method of the visitor.
E extends java.lang.Throwable