public abstract class EbXMLObjectContainer30 extends Object implements EbXMLObjectContainer
Modifier and Type | Method and Description |
---|---|
void |
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> |
cast(JAXBElement<? extends IdentifiableType> identifiable,
Class<T> type)
Casts an object from the contents into the given type.
|
protected void |
fillObjectLibrary()
Fills the object Library based on the contents.
|
List<EbXMLAssociation> |
getAssociations()
Returns all associations of this container.
|
List<EbXMLClassification> |
getClassifications() |
List<EbXMLExtrinsicObject> |
getExtrinsicObjects()
Returns the list of all extrinsic objects.
|
List<EbXMLExtrinsicObject> |
getExtrinsicObjects(String... objectTypes)
Returns the list of extrinsic objects of a given type.
|
EbXMLObjectLibrary |
getObjectLibrary() |
List<EbXMLRegistryPackage> |
getRegistryPackages()
Returns all registry packages of this container.
|
List<EbXMLRegistryPackage> |
getRegistryPackages(String classificationNode)
Returns the list of registry packages matching the classification node.
|
public EbXMLObjectLibrary getObjectLibrary()
getObjectLibrary
in interface EbXMLObjectContainer
protected void fillObjectLibrary()
public void addAssociation(EbXMLAssociation association)
EbXMLObjectContainer
addAssociation
in interface EbXMLObjectContainer
association
- the association to add.public void addExtrinsicObject(EbXMLExtrinsicObject extrinsic)
EbXMLObjectContainer
addExtrinsicObject
in interface EbXMLObjectContainer
extrinsic
- the object to add. If null
nothing will be added.public void addRegistryPackage(EbXMLRegistryPackage regPackage)
EbXMLObjectContainer
addRegistryPackage
in interface EbXMLObjectContainer
regPackage
- the registry package to add.public List<EbXMLAssociation> getAssociations()
EbXMLObjectContainer
getAssociations
in interface EbXMLObjectContainer
public List<EbXMLClassification> getClassifications()
getClassifications
in interface EbXMLObjectContainer
public List<EbXMLExtrinsicObject> getExtrinsicObjects(String... objectTypes)
EbXMLObjectContainer
getExtrinsicObjects
in interface EbXMLObjectContainer
objectTypes
- the object types of the extrinsic objects to return.public List<EbXMLExtrinsicObject> getExtrinsicObjects()
EbXMLObjectContainer
getExtrinsicObjects
in interface EbXMLObjectContainer
public List<EbXMLRegistryPackage> getRegistryPackages(String classificationNode)
EbXMLObjectContainer
getRegistryPackages
in interface EbXMLObjectContainer
classificationNode
- the classification node.public List<EbXMLRegistryPackage> getRegistryPackages()
EbXMLObjectContainer
getRegistryPackages
in interface EbXMLObjectContainer
public void addClassification(EbXMLClassification classification)
EbXMLObjectContainer
addClassification
in interface EbXMLObjectContainer
classification
- the classification to add.protected <T extends IdentifiableType> T cast(JAXBElement<? extends IdentifiableType> identifiable, Class<T> type)
T
- the type to cast to.identifiable
- the object to cast.type
- the type to cast to.null
if the object wasn't of the given type.Copyright © 2018 Open eHealth Foundation. All rights reserved.