public class EbXMLObjectLibrary extends Object
Constructor and Description |
---|
EbXMLObjectLibrary() |
Modifier and Type | Method and Description |
---|---|
Object |
getById(String id)
Looks up an object via its ID.
|
String |
getByObj(Object obj)
Looks up an ID via its object.
|
Collection<Object> |
getObjects() |
void |
put(String id,
Object obj)
Puts an object into the library.
|
public void put(String id, Object obj)
The object will only be added if both parameters are non-null
.
id
- the id of the object. Can be null
.obj
- the object. Can be null
.public Object getById(String id)
id
- the id. Can be null
.null
if the input was null
of if the library does not contain an object with the given id.public String getByObj(Object obj)
obj
- the object. Can be null
.null
if the input was null
or if the library does not contain the object.public Collection<Object> getObjects()
Copyright © 2018 Open eHealth Foundation. All rights reserved.