|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--spki.BaseObj
|
+--spki.Sequence
SPKI Sequence class.
Formal definition:
<sequence>:: "(" "sequence" <seq-ent>* ")" ;
| Field Summary | |
private static String |
__ME
This class's full name. |
private boolean |
dirty
Do we need to re-build the SExpression? |
private Vector |
entries
List of objects representing sequence entries. |
static String |
SEXP_NAME
This class S-Expression type name, used by toSExpression() and other methods. |
| Fields inherited from class spki.BaseObj |
__ME,
cache_sexp,
cached_sexp,
DEFAULT_HASH_ALG,
locked,
SEXP_NAME |
| Constructor Summary | |
Sequence()
Create an immutable empty Sequence object. |
|
Sequence(SeqEntry entry)
Create an immutable Sequence object from a single SeqEntry. |
|
Sequence(SeqEntry[] entries)
Create an immutable Sequence object from an array of SeqEntry. |
|
Sequence(SExpression sexp)
Create an immutable Sequence object from an S-Expression. |
|
| Method Summary | |
private void |
add(SeqEntry entry)
Add an entry. |
SeqEntry |
getSeqEntry(int index)
Get an entry with the specified index. |
int |
getSize()
Get the number of entries in this object. |
SeqEntry[] |
toArray()
|
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 |
|
| Field Detail |
private static final String __ME
public static final String SEXP_NAME
toSExpression()private Vector entries
private boolean dirty
add(SeqEntry),
toSExpression()| Constructor Detail |
public Sequence()
Sequence(SExpression),
Sequence(SeqEntry[]),
Sequence(SeqEntry)
public Sequence(SExpression sexp)
throws SPKIException,
ParseException
BaseObj.BaseObj(SExpression)
public Sequence(SeqEntry[] entries)
throws SPKIException
entries - array of SeqEntry.
public Sequence(SeqEntry entry)
throws SPKIException
entry - a SeqEntry.| Method Detail |
public SExpression toSExpression()
throws SPKIException
public int getSize()
public SeqEntry getSeqEntry(int index)
index - index of the entry required.public SeqEntry[] toArray()
private void add(SeqEntry entry)
throws IllegalStateException,
SPKIException
entry - SeqEntry containing an entry.Sequence()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||