|
Voyager ORB | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IDirectory is the interface that is implemented by Directory.
Field Summary | |
static int |
ALREADY_BOUND
The name was already bound to another object. |
static int |
COMPONENT_MISSING
An intermediate component in a path was missing. |
static int |
COMPONENT_NOT_DIRECTORY
An intermediate component in a path was not a directory. |
static int |
INTERNAL_ERROR
An error occurred in the underlying directory implementation. |
static int |
INVALID_KEY
The key was empty. |
static java.lang.String |
SEPARATOR
|
static java.lang.String |
SEPARATOR_STRING
|
Method Summary | |
void |
add(java.lang.String key,
java.lang.Object value)
Associate a key with a value. |
void |
clear()
Remove every entry from the local directory. |
IDirectory |
createSubdirectory(java.lang.String key)
|
java.lang.Object |
get(java.lang.String key)
Return the value associated with a particular key. |
Entry[] |
getAllEntries(java.lang.String key)
|
Entry[] |
getDirectoryEntries(java.lang.String key)
|
java.lang.Object[] |
getKeys()
Return an array of the keys in the local directory. |
Entry[] |
getObjectEntries(java.lang.String key)
|
java.lang.Object[] |
getValues()
Return an array of the values in the local directory. |
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Associate a key with a value. |
java.lang.Object |
remove(java.lang.String key)
Remove the directory entry with the specified key. |
int |
size()
Return the number of keys in the local directory. |
Field Detail |
public static final java.lang.String SEPARATOR
public static final java.lang.String SEPARATOR_STRING
public static final int INVALID_KEY
public static final int ALREADY_BOUND
public static final int COMPONENT_NOT_DIRECTORY
public static final int COMPONENT_MISSING
public static final int INTERNAL_ERROR
Method Detail |
public java.lang.Object put(java.lang.String key, java.lang.Object value) throws DirectoryException
key
- The key.value
- The value to be associated with the key.public java.lang.Object get(java.lang.String key) throws DirectoryException
key
- The key.public java.lang.Object remove(java.lang.String key) throws DirectoryException
key
- The key.public void clear()
public int size()
public java.lang.Object[] getValues()
public java.lang.Object[] getKeys()
public void add(java.lang.String key, java.lang.Object value) throws DirectoryException
key
- The key to add.value
- The value to add.public Entry[] getAllEntries(java.lang.String key) throws DirectoryException
public Entry[] getObjectEntries(java.lang.String key) throws DirectoryException
public Entry[] getDirectoryEntries(java.lang.String key) throws DirectoryException
public IDirectory createSubdirectory(java.lang.String key) throws DirectoryException
|
ObjectSpace Inc. | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |