public class DefaultObjectService extends Object implements ObjectService
| Constructor and Description |
|---|
DefaultObjectService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String id)
Checks if exists an Object with the given ID.
|
ObjectInfo |
find(String id)
Retrieves the Object with the given ID.
|
Set<String> |
getIds()
Gets a set of all IDs.
|
String |
register(Object object,
String createdBy)
Registers an Object if it does not exist yet.
|
boolean |
remove(String id)
Removes an Object with the given ID.
|
public Set<String> getIds()
ObjectServicegetIds in interface ObjectServicepublic String register(Object object, String createdBy)
ObjectServiceregister in interface ObjectServiceobject - the Object to be registered.createdBy - information about where the object is createdpublic boolean remove(String id)
ObjectServiceremove in interface ObjectServicepublic ObjectInfo find(String id)
ObjectServicefind in interface ObjectServicepublic boolean contains(String id)
ObjectServicecontains in interface ObjectServiceCopyright © 2014–2022 ImageJ. All rights reserved.