jp.bitmeister.asn1.processor
Class ASN1VisitorAdaptor<R,E extends java.lang.Throwable>

java.lang.Object
  extended by jp.bitmeister.asn1.processor.ASN1VisitorAdaptor<R,E>
All Implemented Interfaces:
ASN1Visitor<R,E>

public class ASN1VisitorAdaptor<R,E extends java.lang.Throwable>
extends java.lang.Object
implements ASN1Visitor<R,E>

Adapter class for ASN1Visitor interface.

An adapter to simplify implementation of visitor class that do not need all visit methods on ASN1Visitor interface. All methods defined in this class do nothing and return null.

Author:
WATANABE, Jun.
See Also:
ASN1Visitor

Constructor Summary
ASN1VisitorAdaptor()
           
 
Method Summary
 R visit(ANY data)
          Visits the ANY data.
 R visit(BIT_STRING data)
          Visits the BIT_STRING data.
 R visit(BOOLEAN data)
          Visits the BOOLEAN data.
 R visit(CHOICE data)
          Visits the CHOICE data.
 R visit(ENUMERATED data)
          Visits the ENUMERATED data.
 R visit(INTEGER data)
          Visits the INTEGER data.
 R visit(NULL data)
          Visits the NULL data.
 R visit(OBJECT_IDENTIFIER data)
          Visits the OBJECT_IDENTIFIER data.
 R visit(OCTET_STRING data)
          Visits the OCTET_STRING data.
 R visit(REAL data)
          Visits the REAL data.
 R visit(SEQUENCE_OF<? extends ASN1Type> data)
          Visits the SEQUENCE_OF data.
 R visit(SEQUENCE data)
          Visits the SEQUENCE data.
 R visit(SET_OF<? extends ASN1Type> data)
          Visits the SET_OF data.
 R visit(SET data)
          Visits the SET data.
 R visit(StringType data)
          Visits the StringType data.
 R visit(TimeType data)
          Visits the TimeType data.
 R visit(UnknownType data)
          Visits the UnknownType data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASN1VisitorAdaptor

public ASN1VisitorAdaptor()
Method Detail

visit

public R visit(BOOLEAN data)
        throws E extends java.lang.Throwable
Description copied from interface: ASN1Visitor
Visits the BOOLEAN data.

Specified by:
visit in interface ASN1Visitor<R,E extends java.lang.Throwable>
Parameters:
data - The data to be visited.
Returns:
Result.
Throws:
E - When an error occured in the accept method.
E extends java.lang.Throwable

visit

public R visit(INTEGER data)
        throws E extends java.lang.Throwable
Description copied from interface: ASN1Visitor
Visits the INTEGER data.

Specified by:
visit in interface ASN1Visitor<R,E extends java.lang.Throwable>
Parameters:
data - The data to be visited.
Returns:
Result.
Throws:
E - When an error occured in the accept method.
E extends java.lang.Throwable

visit

public R visit(BIT_STRING data)
        throws E extends java.lang.Throwable
Description copied from interface: ASN1Visitor
Visits the BIT_STRING data.

Specified by:
visit in interface ASN1Visitor<R,E extends java.lang.Throwable>
Parameters:
data - The data to be visited.
Returns:
Result.
Throws:
E - When an error occured in the accept method.
E extends java.lang.Throwable

visit

public R visit(OCTET_STRING data)
        throws E extends java.lang.Throwable
Description copied from interface: ASN1Visitor
Visits the OCTET_STRING data.

Specified by:
visit in interface ASN1Visitor<R,E extends java.lang.Throwable>
Parameters:
data - The data to be visited.
Returns:
Result.
Throws:
E - When an error occured in the accept method.
E extends java.lang.Throwable

visit

public R visit(NULL data)
        throws E extends java.lang.Throwable
Description copied from interface: ASN1Visitor
Visits the NULL data.

Specified by:
visit in interface ASN1Visitor<R,E extends java.lang.Throwable>
Parameters:
data - The data to be visited.
Returns:
Result.
Throws:
E - When an error occured in the accept method.
E extends java.lang.Throwable

visit

public R visit(OBJECT_IDENTIFIER data)
        throws E extends java.lang.Throwable
Description copied from interface: ASN1Visitor
Visits the OBJECT_IDENTIFIER data.

Specified by:
visit in interface ASN1Visitor<R,E extends java.lang.Throwable>
Parameters:
data - The data to be visited.
Returns:
Result.
Throws:
E - When an error occured in the accept method.
E extends java.lang.Throwable

visit

public R visit(REAL data)
        throws E extends java.lang.Throwable
Description copied from interface: ASN1Visitor
Visits the REAL data.

Specified by:
visit in interface ASN1Visitor<R,E extends java.lang.Throwable>
Parameters:
data - The data to be visited.
Returns:
Result.
Throws:
E - When an error occured in the accept method.
E extends java.lang.Throwable

visit

public R visit(ENUMERATED data)
        throws E extends java.lang.Throwable
Description copied from interface: ASN1Visitor
Visits the ENUMERATED data.

Specified by:
visit in interface ASN1Visitor<R,E extends java.lang.Throwable>
Parameters:
data - The data to be visited.
Returns:
Result.
Throws:
E - When an error occured in the accept method.
E extends java.lang.Throwable

visit

public R visit(ANY data)
        throws E extends java.lang.Throwable
Description copied from interface: ASN1Visitor
Visits the ANY data.

Specified by:
visit in interface ASN1Visitor<R,E extends java.lang.Throwable>
Parameters:
data - The data to be visited.
Returns:
Result.
Throws:
E - When an error occured in the accept method.
E extends java.lang.Throwable

visit

public R visit(CHOICE data)
        throws E extends java.lang.Throwable
Description copied from interface: ASN1Visitor
Visits the CHOICE data.

Specified by:
visit in interface ASN1Visitor<R,E extends java.lang.Throwable>
Parameters:
data - The data to be visited.
Returns:
Result.
Throws:
E - When an error occured in the accept method.
E extends java.lang.Throwable

visit

public R visit(SEQUENCE_OF<? extends ASN1Type> data)
        throws E extends java.lang.Throwable
Description copied from interface: ASN1Visitor
Visits the SEQUENCE_OF data.

Specified by:
visit in interface ASN1Visitor<R,E extends java.lang.Throwable>
Parameters:
data - The data to be visited.
Returns:
Result.
Throws:
E - When an error occured in the accept method.
E extends java.lang.Throwable

visit

public R visit(SEQUENCE data)
        throws E extends java.lang.Throwable
Description copied from interface: ASN1Visitor
Visits the SEQUENCE data.

Specified by:
visit in interface ASN1Visitor<R,E extends java.lang.Throwable>
Parameters:
data - The data to be visited.
Returns:
Result.
Throws:
E - When an error occured in the accept method.
E extends java.lang.Throwable

visit

public R visit(SET_OF<? extends ASN1Type> data)
        throws E extends java.lang.Throwable
Description copied from interface: ASN1Visitor
Visits the SET_OF data.

Specified by:
visit in interface ASN1Visitor<R,E extends java.lang.Throwable>
Parameters:
data - The data to be visited.
Returns:
Result.
Throws:
E - When an error occured in the accept method.
E extends java.lang.Throwable

visit

public R visit(SET data)
        throws E extends java.lang.Throwable
Description copied from interface: ASN1Visitor
Visits the SET data.

Specified by:
visit in interface ASN1Visitor<R,E extends java.lang.Throwable>
Parameters:
data - The data to be visited.
Returns:
Result.
Throws:
E - When an error occured in the accept method.
E extends java.lang.Throwable

visit

public R visit(StringType data)
        throws E extends java.lang.Throwable
Description copied from interface: ASN1Visitor
Visits the StringType data.

Specified by:
visit in interface ASN1Visitor<R,E extends java.lang.Throwable>
Parameters:
data - The data to be visited.
Returns:
Result.
Throws:
E - When an error occured in the accept method.
E extends java.lang.Throwable

visit

public R visit(TimeType data)
        throws E extends java.lang.Throwable
Description copied from interface: ASN1Visitor
Visits the TimeType data.

Specified by:
visit in interface ASN1Visitor<R,E extends java.lang.Throwable>
Parameters:
data - The data to be visited.
Returns:
Result.
Throws:
E - When an error occured in the accept method.
E extends java.lang.Throwable

visit

public R visit(UnknownType data)
        throws E extends java.lang.Throwable
Description copied from interface: ASN1Visitor
Visits the UnknownType data.

Specified by:
visit in interface ASN1Visitor<R,E extends java.lang.Throwable>
Parameters:
data - The data to be visited.
Returns:
Result.
Throws:
E - When an error occured in the accept method.
E extends java.lang.Throwable