Class EbXMLObjectLibrary
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.ebxml.EbXMLObjectLibrary
A container of objects used for resolving object references and their ids.
- Author:
- Jens Riemschneider
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
EbXMLObjectLibrary
public EbXMLObjectLibrary()
-
-
Method Details
-
put
Puts an object into the library.The object will only be added if both parameters are non-
null
.- Parameters:
id
- the id of the object. Can benull
.obj
- the object. Can benull
.
-
getById
Looks up an object via its ID.- Parameters:
id
- the id. Can benull
.- Returns:
- the object or
null
if the input wasnull
of if the library does not contain an object with the given id.
-
getByObj
Looks up an ID via its object.- Parameters:
obj
- the object. Can benull
.- Returns:
- the ID or
null
if the input wasnull
or if the library does not contain the object.
-
getObjects
- Returns:
- a read-only collection of all objects in the library.
-