Class EbXMLObjectContainer30
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLObjectContainer30
- All Implemented Interfaces:
EbXMLObjectContainer
- Direct Known Subclasses:
EbXMLProvideAndRegisterDocumentSetRequest30
,EbXMLQueryResponse30
,EbXMLSubmitObjectsRequest30
Base class for requests and responses that contain various ebXML 3.0
objects.
- Author:
- Jens Riemschneider
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAssociation
(EbXMLAssociation association) Adds an association to this container.void
addClassification
(EbXMLClassification classification) Adds a classification to this container.void
addExtrinsicObject
(EbXMLExtrinsicObject extrinsic) Adds the given extrinsic object to this container.void
addRegistryPackage
(EbXMLRegistryPackage regPackage) Adds a registry package to this container.protected <T extends IdentifiableType>
Tcast
(javax.xml.bind.JAXBElement<? extends IdentifiableType> identifiable, Class<T> type) Casts an object from the contents into the given type.protected void
Fills the object Library based on the contents.Returns all associations of this container.Returns the list of all extrinsic objects.getExtrinsicObjects
(String... objectTypes) Returns the list of extrinsic objects of a given type.Returns all registry packages of this container.getRegistryPackages
(String classificationNode) Returns the list of registry packages matching the classification node.
-
Method Details
-
getObjectLibrary
- Specified by:
getObjectLibrary
in interfaceEbXMLObjectContainer
- Returns:
- the object library used by this container.
-
fillObjectLibrary
protected void fillObjectLibrary()Fills the object Library based on the contents. -
addAssociation
Description copied from interface:EbXMLObjectContainer
Adds an association to this container.- Specified by:
addAssociation
in interfaceEbXMLObjectContainer
- Parameters:
association
- the association to add.
-
addExtrinsicObject
Description copied from interface:EbXMLObjectContainer
Adds the given extrinsic object to this container.- Specified by:
addExtrinsicObject
in interfaceEbXMLObjectContainer
- Parameters:
extrinsic
- the object to add. Ifnull
nothing will be added.
-
addRegistryPackage
Description copied from interface:EbXMLObjectContainer
Adds a registry package to this container.- Specified by:
addRegistryPackage
in interfaceEbXMLObjectContainer
- Parameters:
regPackage
- the registry package to add.
-
getAssociations
Description copied from interface:EbXMLObjectContainer
Returns all associations of this container.- Specified by:
getAssociations
in interfaceEbXMLObjectContainer
- Returns:
- the associations.
-
getClassifications
- Specified by:
getClassifications
in interfaceEbXMLObjectContainer
- Returns:
- all classifications contained in this entry.
-
getExtrinsicObjects
Description copied from interface:EbXMLObjectContainer
Returns the list of extrinsic objects of a given type.- Specified by:
getExtrinsicObjects
in interfaceEbXMLObjectContainer
- Parameters:
objectTypes
- the object types of the extrinsic objects to return.- Returns:
- the extrinsic objects.
-
getExtrinsicObjects
Description copied from interface:EbXMLObjectContainer
Returns the list of all extrinsic objects.- Specified by:
getExtrinsicObjects
in interfaceEbXMLObjectContainer
- Returns:
- the extrinsic objects of this container.
-
getRegistryPackages
Description copied from interface:EbXMLObjectContainer
Returns the list of registry packages matching the classification node.- Specified by:
getRegistryPackages
in interfaceEbXMLObjectContainer
- Parameters:
classificationNode
- the classification node.- Returns:
- the list of packages that match the node.
-
getRegistryPackages
Description copied from interface:EbXMLObjectContainer
Returns all registry packages of this container.- Specified by:
getRegistryPackages
in interfaceEbXMLObjectContainer
- Returns:
- the list of packages.
-
addClassification
Description copied from interface:EbXMLObjectContainer
Adds a classification to this container.- Specified by:
addClassification
in interfaceEbXMLObjectContainer
- Parameters:
classification
- the classification to add.
-
cast
protected <T extends IdentifiableType> T cast(javax.xml.bind.JAXBElement<? extends IdentifiableType> identifiable, Class<T> type) Casts an object from the contents into the given type.- Type Parameters:
T
- the type to cast to.- Parameters:
identifiable
- the object to cast.type
- the type to cast to.- Returns:
- the result of the cast or
null
if the object wasn't of the given type.
-