spki
Class SequenceDef

java.lang.Object
  |
  +--spki.BaseObj
        |
        +--spki.SequenceDef

public class SequenceDef
extends BaseObj
implements SeqEntry

spki SequenceDef class.

Formal definition:

 <seq-def>:: "(" "def" <seq-def-name> <seq-def-value> ")" ;
 

Version:
$Id: SequenceDef.java,v 1.1 2002/05/10 07:07:59 tep Exp $
Author:
Tep Narula <tep@win.trlabs.ca>

Field Summary
private static String __ME
          This class's full name.
private  SeqDefName name
          The definition's name.
static String SEXP_NAME
          This class S-Expression type name, used by toSExpression() and other methods.
private  SeqDefValue value
          The definition's value.
 
Fields inherited from class spki.BaseObj
__ME, cache_sexp, cached_sexp, DEFAULT_HASH_ALG, locked, SEXP_NAME
 
Constructor Summary
SequenceDef()
          Don't use me!
SequenceDef(SeqDefName name, SeqDefValue value)
          Create an immutable SequenceDef object from given name and value.
SequenceDef(SExpression sexp)
          Create an immutable SequenceDef object from an S-Expression.
 
Method Summary
 SeqDefName getDefName()
           
static SeqDefName getDefName(SExpression sexp)
           
 SeqDefValue getDefValue()
           
static SeqDefValue getDefValue(SExpression sexp)
           
 SExpression toSExpression()
          Build an SExpression representing this object.
 
Methods inherited from class spki.BaseObj
disableSExpressionCaching, enableSExpressionCaching, extractHashAlgId, getCachedSExpression, isLocked, isSListOfType, lock, providerToSPKI, setCachedSExpression, spkiToProvider, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

__ME

private static final String __ME
This class's full name.

SEXP_NAME

public static final String SEXP_NAME
This class S-Expression type name, used by toSExpression() and other methods.
See Also:
toSExpression()

name

private SeqDefName name
The definition's name.

value

private SeqDefValue value
The definition's value.
Constructor Detail

SequenceDef

public SequenceDef()
Don't use me!

SequenceDef

public SequenceDef(SExpression sexp)
            throws ParseException,
                   SPKIException
Create an immutable SequenceDef object from an S-Expression.
Parameters:
sexp - SExpression object containing existing SequenceDef object.
Throws:
ParseException - if some error occured during parsing.
SPKIException - if some error occured during creation.

SequenceDef

public SequenceDef(SeqDefName name,
                   SeqDefValue value)
            throws SPKIException
Create an immutable SequenceDef object from given name and value.
Parameters:
name - SeqDefName object representing the definition name.
value - SeqDefValue object representing the named value.
Throws:
SPKIException - if some error occured during creation.
Method Detail

toSExpression

public SExpression toSExpression()
                          throws SPKIException
Description copied from interface: SPKIObject
Build an SExpression representing this object.
Overrides:
toSExpression in class BaseObj
Tags copied from interface: SPKIObject
Returns:
SExpression object representing this object, or null.
Throws:
SPKIException - if something went wrong during conversion.

getDefName

public SeqDefName getDefName()

getDefValue

public SeqDefValue getDefValue()

getDefName

public static final SeqDefName getDefName(SExpression sexp)
                                   throws SPKIException,
                                          ParseException

getDefValue

public static final SeqDefValue getDefValue(SExpression sexp)
                                     throws SPKIException,
                                            ParseException