XCMS Toolkit

schemajic.model
Class ASN1Boolean

java.lang.Object
  extended by schemajic.model.ASN1Value
      extended by schemajic.model.ASN1Boolean

public class ASN1Boolean
extends ASN1Value

Models the abstract concept of the value of ASN.1 type BOOLEAN.

Type BOOLEAN is a simple builtin type with two distinguished values, "true" and "false".

Universal class tag assignment is UNIVERSAL 1.

XML ASN.1 type name is BOOLEAN and XML ASN.1 BOOLEAN values are <true> and <false>.

Version:
1.00 - 2006/02/09
Author:
support@phillipgriffin.com

Constructor Summary
ASN1Boolean()
          Constructor for ASN1Boolean.
ASN1Boolean(boolean value)
          Constructor for ASN1Boolean with initialization value parameter.
 
Method Summary
 java.lang.Object accept(ValueVisitor visitor, java.lang.Object object)
          Accepts a visit from the ValueVisitor
 Type getAsn1Type()
           
 boolean getBooleanValue()
          Returns the current ASN.1 BOOLEAN value.
 void setBooleanValue(boolean value)
          Sets the current ASN.1 BOOLEAN value to the provided boolean value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASN1Boolean

public ASN1Boolean()
Constructor for ASN1Boolean.


ASN1Boolean

public ASN1Boolean(boolean value)
Constructor for ASN1Boolean with initialization value parameter.

Parameters:
value -
Method Detail

getBooleanValue

public boolean getBooleanValue()
Returns the current ASN.1 BOOLEAN value.


setBooleanValue

public void setBooleanValue(boolean value)
Sets the current ASN.1 BOOLEAN value to the provided boolean value.

Parameters:
value - the boolean value to set as the current value

accept

public java.lang.Object accept(ValueVisitor visitor,
                               java.lang.Object object)
                        throws VisitorException
Accepts a visit from the ValueVisitor

Specified by:
accept in class ASN1Value
Parameters:
visitor - the function applicator (mapper), which knows how to process the given object type and apply appropriate operations to the elements of this type of object
object - an object to be visited
Returns:
a visit to the provided object
Throws:
VisitorException

getAsn1Type

public Type getAsn1Type()
Overrides:
getAsn1Type in class ASN1Value

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.