public interface DocumentLibrary
Modifier and Type | Method and Description |
---|---|
Document |
get(String key)
Get the document with the supplied key.
|
String |
getName()
Get the name of this library.
|
Document |
put(String key,
Document document)
Store the supplied document at the given key.
|
Document |
putIfAbsent(String key,
Document document)
Store the supplied document at the given key.
|
Document |
remove(String key)
Remove the existing document at the given key.
|
Document |
replace(String key,
Document document)
Replace the existing document at the given key with the document that is supplied.
|
String getName()
Document get(String key)
key
- the key or identifier for the documentDocument put(String key, Document document)
key
- the key or identifier for the documentdocument
- the document that is to be storedDocument putIfAbsent(String key, Document document)
key
- the key or identifier for the documentdocument
- the document that is to be storedDocument replace(String key, Document document)
key
- the key or identifier for the documentdocument
- the document that is to replace the existing documentCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.