|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.objsys.asn1j.runtime.Asn1CharSet
public abstract class Asn1CharSet
This is the base class for representing character sets that are defined in ASN.1 permitted alphabet constraints.
Field Summary | |
---|---|
protected int |
mABitsPerChar
This variable holds number of bits-per-character (PER aligned). |
protected int |
mUBitsPerChar
This variable holds number of bits-per-character (PER unaligned). |
Constructor Summary | |
---|---|
protected |
Asn1CharSet(int nchars)
This constructor sets the number of bits-per-character values based on the given number of characters in the character set. |
Method Summary | |
---|---|
abstract int |
getCharAtIndex(int index)
This method will fetch the character from the permitted alphabet at the given index. |
abstract int |
getCharIndex(int charValue)
This method will determine the index of the given character within the permitted alphabet character set. |
abstract int |
getMaxValue()
This method will determine the maximum value of the given character within the permitted alphabet character set. |
int |
getNumBitsPerChar(boolean aligned)
This method will return the number of bits-per-character. |
abstract boolean |
validate(java.lang.String s)
This method will validate a character string by comparing its contents to the character set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int mABitsPerChar
protected int mUBitsPerChar
Constructor Detail |
---|
protected Asn1CharSet(int nchars)
nchars
- Number of characters in the character setMethod Detail |
---|
public abstract int getCharAtIndex(int index) throws Asn1ConsVioException
index
- Index of character within the character set
Asn1ConsVioException
- Index not within define rangepublic abstract int getCharIndex(int charValue) throws Asn1ConsVioException
charValue
- Character value to search for
Asn1ConsVioException
- Character not found in setpublic abstract int getMaxValue()
public int getNumBitsPerChar(boolean aligned)
aligned
- Boolean value indicating whether number of aligned
(true) or unaligned (false) characters should be
returned.public abstract boolean validate(java.lang.String s)
s
- The string to be validated.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |