XCMS Toolkit

schemajic.model
Class ASN1VisibleString

java.lang.Object
  extended by schemajic.model.ASN1Value
      extended by schemajic.model.ASN1VisibleString
Direct Known Subclasses:
ASN1BMPString, ASN1GeneralString, ASN1IA5String, ASN1ISO646String, ASN1NumericString, ASN1PrintableString, ASN1T61String, ASN1TeletexString, ASN1UniversalString, ASN1UTF8String, ASN1VideotexString

public class ASN1VisibleString
extends ASN1Value

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

Universal class tag assignment is UNIVERSAL 26, the same tag used by ASN.1 type ISO646String.

XML ASN.1 type name is VisibleString.

No permitted alphabet constraints are enforced on values of this type, as these constraints are left to the application. Characters of this ASN.1 type are treated as opaque, having no structure or meaning, though all characters are represented in one octet.

The values of VisibleString include all of the human-readable characters in IA5String, but exclude all of the computer control characters such as 'delete' and 'escape'.

The values of the builtin types NumericString, PrintableString, and VisibleString are subsets of the values of type IA5String. In terms of their character values, NumericString is a subset of PrintableString, which is a subset of VisibleString, which is a subset of IA5String.

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

Constructor Summary
ASN1VisibleString()
          Constructor for ASN1VisibleString sets the current value to the empty string.
ASN1VisibleString(java.lang.String s)
          Constructor for ASN1VisibleString sets the current value to the provided string value .
 
Method Summary
 java.lang.Object accept(ValueVisitor visitor, java.lang.Object object)
          Accepts a visit from the ValueVisitor
 boolean equals(java.lang.Object o)
          Returns boolean true if the value of the provided object is equal to the current value.
 Type getAsn1Type()
          Returns an ASN.1 VisibleStringtype
 java.lang.String getStringValue()
          Gets the current string value.
 void setStringValue(java.lang.String s)
          Sets the current string value to a provided string value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASN1VisibleString

public ASN1VisibleString()
Constructor for ASN1VisibleString sets the current value to the empty string.


ASN1VisibleString

public ASN1VisibleString(java.lang.String s)
Constructor for ASN1VisibleString sets the current value to the provided string value .

Parameters:
s - a string to become the current value
Method Detail

getStringValue

public java.lang.String getStringValue()
Gets the current string value.

Returns:
the current value

setStringValue

public void setStringValue(java.lang.String s)
Sets the current string value to a provided string value.

Parameters:
s - a string that becomes the current value

equals

public boolean equals(java.lang.Object o)
Returns boolean true if the value of the provided object is equal to the current value. Otherwise, returns false.

Overrides:
equals in class java.lang.Object

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()
Returns an ASN.1 VisibleStringtype

Overrides:
getAsn1Type in class ASN1Value

XCMS Toolkit


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