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()
ObjectService
getIds
in interface ObjectService
public String register(Object object, String createdBy)
ObjectService
register
in interface ObjectService
object
- the Object to be registered.createdBy
- information about where the object is createdpublic boolean remove(String id)
ObjectService
remove
in interface ObjectService
public ObjectInfo find(String id)
ObjectService
find
in interface ObjectService
public boolean contains(String id)
ObjectService
contains
in interface ObjectService
Copyright © 2014–2022 ImageJ. All rights reserved.