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 TypeMethodDescriptionvoidaddAssociation(EbXMLAssociation association) Adds an association to this container.voidaddClassification(EbXMLClassification classification) Adds a classification to this container.voidaddExtrinsicObject(EbXMLExtrinsicObject extrinsic) Adds the given extrinsic object to this container.voidaddRegistryPackage(EbXMLRegistryPackage regPackage) Adds a registry package to this container.protected <T extends IdentifiableType>
Tcast(jakarta.xml.bind.JAXBElement<? extends IdentifiableType> identifiable, Class<T> type) Casts an object from the contents into the given type.protected voidFills 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:
getObjectLibraryin 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:EbXMLObjectContainerAdds an association to this container.- Specified by:
addAssociationin interfaceEbXMLObjectContainer- Parameters:
association- the association to add.
-
addExtrinsicObject
Description copied from interface:EbXMLObjectContainerAdds the given extrinsic object to this container.- Specified by:
addExtrinsicObjectin interfaceEbXMLObjectContainer- Parameters:
extrinsic- the object to add. Ifnullnothing will be added.
-
addRegistryPackage
Description copied from interface:EbXMLObjectContainerAdds a registry package to this container.- Specified by:
addRegistryPackagein interfaceEbXMLObjectContainer- Parameters:
regPackage- the registry package to add.
-
getAssociations
Description copied from interface:EbXMLObjectContainerReturns all associations of this container.- Specified by:
getAssociationsin interfaceEbXMLObjectContainer- Returns:
- the associations.
-
getClassifications
- Specified by:
getClassificationsin interfaceEbXMLObjectContainer- Returns:
- all classifications contained in this entry.
-
getExtrinsicObjects
Description copied from interface:EbXMLObjectContainerReturns the list of extrinsic objects of a given type.- Specified by:
getExtrinsicObjectsin interfaceEbXMLObjectContainer- Parameters:
objectTypes- the object types of the extrinsic objects to return.- Returns:
- the extrinsic objects.
-
getExtrinsicObjects
Description copied from interface:EbXMLObjectContainerReturns the list of all extrinsic objects.- Specified by:
getExtrinsicObjectsin interfaceEbXMLObjectContainer- Returns:
- the extrinsic objects of this container.
-
getRegistryPackages
Description copied from interface:EbXMLObjectContainerReturns the list of registry packages matching the classification node.- Specified by:
getRegistryPackagesin interfaceEbXMLObjectContainer- Parameters:
classificationNode- the classification node.- Returns:
- the list of packages that match the node.
-
getRegistryPackages
Description copied from interface:EbXMLObjectContainerReturns all registry packages of this container.- Specified by:
getRegistryPackagesin interfaceEbXMLObjectContainer- Returns:
- the list of packages.
-
addClassification
Description copied from interface:EbXMLObjectContainerAdds a classification to this container.- Specified by:
addClassificationin interfaceEbXMLObjectContainer- Parameters:
classification- the classification to add.
-
cast
protected <T extends IdentifiableType> T cast(jakarta.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
nullif the object wasn't of the given type.
-