jp.bitmeister.asn1.type.builtin
Class RELATIVE_OID

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
              extended by jp.bitmeister.asn1.type.builtin.RELATIVE_OID
All Implemented Interfaces:
java.lang.Cloneable

public class RELATIVE_OID
extends OBJECT_IDENTIFIER

Represents ASN.1 'RELATIVE-OID' type.

An instance of this class represents an 'RELATIVE-OID' 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
RELATIVE_OID()
          Instantiates an empty RELATIVE_OID.
RELATIVE_OID(int... value)
          Instantiates an RELATIVE_OID and initialize it with the array of int value.
RELATIVE_OID(java.util.List<java.lang.Integer> value)
          Instantiates an RELATIVE_OID 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.
 
Methods inherited from class jp.bitmeister.asn1.type.builtin.OBJECT_IDENTIFIER
cloneValue, nameFormToInt, set
 
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

RELATIVE_OID

public RELATIVE_OID()
Instantiates an empty RELATIVE_OID.


RELATIVE_OID

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

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

RELATIVE_OID

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

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

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.

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