|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IArgBlock
This interface defines the abstraction for the generic collection of attributes indexed by string names. Set of cooperating implementations of this interface may exploit dot-separated attribute names to provide seamless access to the attributes of attribute value which also implements AttrSet interface as if it was direct attribute of the container E.g., ((AttrSet)container.get("x")).get("y") is equivalent to container.get("x.y");
Method Summary | |
---|---|
java.lang.Object |
addBigIntegerValue(java.lang.String n,
java.math.BigInteger v,
int radix)
Adds integer-type arguments to this block. |
java.lang.Object |
addBooleanValue(java.lang.String n,
boolean v)
Adds boolean-type arguments to this block. |
java.lang.Object |
addIntegerValue(java.lang.String n,
int v)
Adds integer-type arguments to this block. |
java.lang.Object |
addLongValue(java.lang.String n,
long v)
Adds long-type arguments to this block. |
java.lang.Object |
addStringValue(java.lang.String n,
java.lang.String v)
Adds string-based value into this argument block. |
void |
delete(java.lang.String name)
Deletes argument by the given key. |
java.util.Enumeration |
elements()
Retrieves a list of argument keys. |
java.lang.Object |
get(java.lang.String name)
Retrieves argument. |
java.util.Enumeration |
getElements()
Retrieves a list of argument keys. |
java.lang.Object |
getValue(java.lang.Object n)
Retrieves argument value as object |
java.lang.Object |
getValue(java.lang.Object n,
java.lang.Object def)
Retrieves argument value as object |
java.math.BigInteger |
getValueAsBigInteger(java.lang.String n)
Retrieves argument value as big integer. |
java.math.BigInteger |
getValueAsBigInteger(java.lang.String n,
java.math.BigInteger def)
Retrieves argument value as big integer. |
boolean |
getValueAsBoolean(java.lang.String name)
Gets boolean value. |
boolean |
getValueAsBoolean(java.lang.String name,
boolean def)
Gets boolean value. |
int |
getValueAsInt(java.lang.String n)
Retrieves argument value as integer. |
int |
getValueAsInt(java.lang.String n,
int def)
Retrieves argument value as integer. |
KeyGenInfo |
getValueAsKeyGenInfo(java.lang.String name,
KeyGenInfo def)
Gets KeyGenInfo |
netscape.security.pkcs.PKCS10 |
getValueAsPKCS10(java.lang.String name,
boolean checkheader)
Retrieves PKCS10 |
netscape.security.pkcs.PKCS10 |
getValueAsPKCS10(java.lang.String name,
boolean checkheader,
netscape.security.pkcs.PKCS10 def)
Retrieves PKCS10 |
netscape.security.pkcs.PKCS10 |
getValueAsRawPKCS10(java.lang.String name)
Gets PKCS10 request. |
netscape.security.pkcs.PKCS10 |
getValueAsRawPKCS10(java.lang.String name,
netscape.security.pkcs.PKCS10 def)
Gets PKCS10 request. |
java.lang.String |
getValueAsString(java.lang.String n)
Retrieves argument value as string. |
java.lang.String |
getValueAsString(java.lang.String n,
java.lang.String def)
Retrieves argument value as string. |
netscape.security.pkcs.PKCS10 |
getValuePKCS10(java.lang.String name,
netscape.security.pkcs.PKCS10 def)
Retrieves PKCS10 |
boolean |
isValuePresent(java.lang.String n)
Checks if this argument block contains the given key. |
void |
set(java.lang.String name,
java.lang.Object obj)
Sets argument into this block. |
Method Detail |
---|
boolean isValuePresent(java.lang.String n)
n
- key
java.lang.Object addStringValue(java.lang.String n, java.lang.String v)
n
- keyv
- value
java.lang.String getValueAsString(java.lang.String n) throws EBaseException
n
- key
EBaseException
- failed to retrieve valuejava.lang.String getValueAsString(java.lang.String n, java.lang.String def)
n
- keydef
- default value to be returned if key is not present
int getValueAsInt(java.lang.String n) throws EBaseException
n
- key
EBaseException
- failed to retrieve valueint getValueAsInt(java.lang.String n, int def)
n
- keydef
- default value to be returned if key is not present
java.math.BigInteger getValueAsBigInteger(java.lang.String n) throws EBaseException
n
- key
EBaseException
- failed to retrieve valuejava.math.BigInteger getValueAsBigInteger(java.lang.String n, java.math.BigInteger def)
n
- keydef
- default value to be returned if key is not present
java.lang.Object getValue(java.lang.Object n) throws EBaseException
n
- key
EBaseException
- failed to retrieve valuejava.lang.Object getValue(java.lang.Object n, java.lang.Object def)
n
- keydef
- default value to be returned if key is not present
boolean getValueAsBoolean(java.lang.String name) throws EBaseException
name
- name of the input type
true
or false
EBaseException
- failed to retrieve valueboolean getValueAsBoolean(java.lang.String name, boolean def)
name
- name of the input typedef
- Default value to return.
true
or false
KeyGenInfo getValueAsKeyGenInfo(java.lang.String name, KeyGenInfo def) throws EBaseException
name
- name of the input typedef
- default value to return
EBaseException
- On error.netscape.security.pkcs.PKCS10 getValueAsRawPKCS10(java.lang.String name) throws EBaseException
name
- name of the input type
EBaseException
- failed to retrieve valuenetscape.security.pkcs.PKCS10 getValueAsRawPKCS10(java.lang.String name, netscape.security.pkcs.PKCS10 def) throws EBaseException
name
- name of the input typedef
- default PKCS10
EBaseException
- failed to retrieve valuenetscape.security.pkcs.PKCS10 getValueAsPKCS10(java.lang.String name, boolean checkheader) throws EBaseException
name
- name of the input typecheckheader
- true if header must be present
EBaseException
- failed to retrieve valuenetscape.security.pkcs.PKCS10 getValueAsPKCS10(java.lang.String name, boolean checkheader, netscape.security.pkcs.PKCS10 def) throws EBaseException
name
- name of the input typecheckheader
- true if header must be presentdef
- default PKCS10
EBaseException
- on errornetscape.security.pkcs.PKCS10 getValuePKCS10(java.lang.String name, netscape.security.pkcs.PKCS10 def) throws EBaseException
name
- name of the input typedef
- default PKCS10
EBaseException
- on errorjava.util.Enumeration elements()
java.lang.Object addLongValue(java.lang.String n, long v)
n
- keyv
- value
java.lang.Object addIntegerValue(java.lang.String n, int v)
n
- keyv
- value
java.lang.Object addBooleanValue(java.lang.String n, boolean v)
n
- keyv
- value
java.lang.Object addBigIntegerValue(java.lang.String n, java.math.BigInteger v, int radix)
n
- keyv
- valueradix
- radix
void set(java.lang.String name, java.lang.Object obj)
name
- keyobj
- valuejava.lang.Object get(java.lang.String name)
name
- key
void delete(java.lang.String name)
name
- keyjava.util.Enumeration getElements()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |