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
Constructors -
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
nullif the input wasnullof 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
nullif the input wasnullor if the library does not contain the object.
-
getObjects
- Returns:
- a read-only collection of all objects in the library.
-