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