public class KeyValueStoreDescriptor extends Object implements Descriptor
Modifier and Type | Field and Description |
---|---|
Class<? extends KeyValueStoreProvider> |
klass |
String |
name |
String |
namespace
An optional namespace that may be used to disambiguate otherwise similar descriptors (in particular, copies).
|
Map<String,String> |
properties |
boolean |
remove |
UNIQUE_DESCRIPTOR_ID
Constructor and Description |
---|
KeyValueStoreDescriptor()
Empty constructor.
|
KeyValueStoreDescriptor(KeyValueStoreDescriptor other)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
The descriptor id, descriptors with same id are merged.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doesRemove, merge
public boolean remove
public Class<? extends KeyValueStoreProvider> klass
public String namespace
public Map<String,String> properties
public KeyValueStoreDescriptor()
public KeyValueStoreDescriptor(KeyValueStoreDescriptor other)
public String getId()
Descriptor
To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden toString()
for exemple.
getId
in interface Descriptor
Copyright © 2019 Nuxeo. All rights reserved.