Interface EbXMLRegistryObject
- All Superinterfaces:
EbXMLSlotList
- All Known Subinterfaces:
EbXMLAssociation,EbXMLExtrinsicObject,EbXMLRegistryPackage
- All Known Implementing Classes:
EbXMLAssociation30,EbXMLExtrinsicObject30,EbXMLRegistryObject30,EbXMLRegistryPackage30
Encapsulation of the ebXML classes for
RegistryEntryType and
RegistryObjectType.
This class contains convenience methods and provides a version independent abstraction of the ebXML data structure.
- Author:
- Jens Riemschneider
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddClassification(EbXMLClassification classification, String scheme) Adds a classification to this entry with a random id.voidaddExternalIdentifier(String value, String scheme, String name) Adds a new external identifier to this entry.getClassifications(String scheme) Returns the classification matching the given scheme.getExternalIdentifierValue(String scheme) Returns the value of the external identifier matching the given scheme.getHome()getId()getLid()getName()getSingleClassification(String scheme) Returns the first classification matching the given scheme.voidsetDescription(LocalizedString description) voidvoidvoidvoidsetName(LocalizedString name) voidsetObjectType(String objectType) voidsetVersionInfo(Version version) Methods inherited from interface org.openehealth.ipf.commons.ihe.xds.core.ebxml.EbXMLSlotList
addSlot, getSingleSlotValue, getSlots, getSlots, getSlotValues
-
Method Details
-
getClassifications
List<EbXMLClassification> getClassifications()- Returns:
- all classifications contained in this entry.
-
getClassifications
Returns the classification matching the given scheme.- Parameters:
scheme- the scheme.- Returns:
- the classifications contained in this entry that match the scheme.
-
getSingleClassification
Returns the first classification matching the given scheme.- Parameters:
scheme- the scheme.- Returns:
- the classification matching the scheme. Only the first classification is considered, other classifications are ignored.
-
addClassification
Adds a classification to this entry with a random id.- Parameters:
classification- the classification to add.scheme- the scheme of the classification.
-
getExternalIdentifiers
List<EbXMLExternalIdentifier> getExternalIdentifiers()- Returns:
- all external identifiers contained in this entry.
-
getExternalIdentifierValue
Returns the value of the external identifier matching the given scheme.- Parameters:
scheme- the scheme of the external identifier.- Returns:
- the value of the external identifier that matched the scheme.
nullif no identifier was found that matched the scheme.
-
addExternalIdentifier
Adds a new external identifier to this entry.- Parameters:
value- the value of the identifier.scheme- the scheme of the identifier.name- the name of the identifier.
-
getObjectType
String getObjectType()- Returns:
- the object type of this entry.
-
setObjectType
- Parameters:
objectType- the object type of this entry.
-
getDescription
LocalizedString getDescription()- Returns:
- the description of this entry.
-
setDescription
- Parameters:
description- the description of this entry.
-
getName
LocalizedString getName()- Returns:
- the name of this entry.
-
setName
- Parameters:
name- the name of this entry.
-
getHome
String getHome()- Returns:
- the home attribute of this entry.
-
setHome
- Parameters:
home- the home attribute of this entry.
-
getId
String getId()- Returns:
- the id of this entry.
-
setId
- Parameters:
id- the id of this entry.
-
getLid
String getLid()- Returns:
- the lid of this entry.
-
setLid
- Parameters:
lid- the lid of this entry.
-
getVersionInfo
Version getVersionInfo()- Returns:
- the id of this entry.
-
setVersionInfo
- Parameters:
version- the versionInfo of this entry.
-
getInternal
Object getInternal()- Returns:
- the ebXML object being wrapped by this entry.
-