Class EbXMLRegistryObject30<E extends RegistryObjectType>
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLRegistryObject30<E>
- Type Parameters:
E
- the EBXML type of the registry object.
- All Implemented Interfaces:
EbXMLRegistryObject
,EbXMLSlotList
- Direct Known Subclasses:
EbXMLAssociation30
,EbXMLExtrinsicObject30
,EbXMLRegistryPackage30
public abstract class EbXMLRegistryObject30<E extends RegistryObjectType>
extends Object
implements EbXMLRegistryObject
Encapsulation of
RegistryObjectType
.- Author:
- Jens Riemschneider
-
Constructor Summary
ModifierConstructorDescriptionprotected
EbXMLRegistryObject30
(E registryEntry, EbXMLObjectLibrary objectLibrary) Constructs a registry entry by wrapping the given ebXML 3.0 object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addClassification
(EbXMLClassification classification, String scheme) Adds a classification to this entry with a random id.void
addExternalIdentifier
(String value, String scheme, String name) Adds a new external identifier to this entry.void
Adds a slot with a list of values.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()
protected EbXMLObjectLibrary
getSingleClassification
(String scheme) Returns the first classification matching the given scheme.getSingleSlotValue
(String slotName) Gets a single slot value.getSlots()
Returns a filtered list of the slots.getSlotValues
(String slotName) Gets the values of a slot.void
setDescription
(LocalizedString description) void
void
void
void
setName
(LocalizedString name) void
setObjectType
(String objectType) void
setVersionInfo
(Version version)
-
Constructor Details
-
EbXMLRegistryObject30
Constructs a registry entry by wrapping the given ebXML 3.0 object.- Parameters:
registryEntry
- the object to wrap.objectLibrary
- the object library to use.
-
-
Method Details
-
getObjectLibrary
- Returns:
- the object library.
-
addClassification
Description copied from interface:EbXMLRegistryObject
Adds a classification to this entry with a random id.- Specified by:
addClassification
in interfaceEbXMLRegistryObject
- Parameters:
classification
- the classification to add.scheme
- the scheme of the classification.
-
addExternalIdentifier
Description copied from interface:EbXMLRegistryObject
Adds a new external identifier to this entry.- Specified by:
addExternalIdentifier
in interfaceEbXMLRegistryObject
- Parameters:
value
- the value of the identifier.scheme
- the scheme of the identifier.name
- the name of the identifier.
-
getClassifications
- Specified by:
getClassifications
in interfaceEbXMLRegistryObject
- Returns:
- all classifications contained in this entry.
-
getClassifications
Description copied from interface:EbXMLRegistryObject
Returns the classification matching the given scheme.- Specified by:
getClassifications
in interfaceEbXMLRegistryObject
- Parameters:
scheme
- the scheme.- Returns:
- the classifications contained in this entry that match the scheme.
-
getDescription
- Specified by:
getDescription
in interfaceEbXMLRegistryObject
- Returns:
- the description of this entry.
-
getExternalIdentifierValue
Description copied from interface:EbXMLRegistryObject
Returns the value of the external identifier matching the given scheme.- Specified by:
getExternalIdentifierValue
in interfaceEbXMLRegistryObject
- Parameters:
scheme
- the scheme of the external identifier.- Returns:
- the value of the external identifier that matched the scheme.
null
if no identifier was found that matched the scheme.
-
getExternalIdentifiers
- Specified by:
getExternalIdentifiers
in interfaceEbXMLRegistryObject
- Returns:
- all external identifiers contained in this entry.
-
getId
- Specified by:
getId
in interfaceEbXMLRegistryObject
- Returns:
- the id of this entry.
-
setId
- Specified by:
setId
in interfaceEbXMLRegistryObject
- Parameters:
id
- the id of this entry.
-
getLid
- Specified by:
getLid
in interfaceEbXMLRegistryObject
- Returns:
- the lid of this entry.
-
setLid
- Specified by:
setLid
in interfaceEbXMLRegistryObject
- Parameters:
lid
- the lid of this entry.
-
getVersionInfo
- Specified by:
getVersionInfo
in interfaceEbXMLRegistryObject
- Returns:
- the id of this entry.
-
setVersionInfo
- Specified by:
setVersionInfo
in interfaceEbXMLRegistryObject
- Parameters:
version
- the versionInfo of this entry.
-
getName
- Specified by:
getName
in interfaceEbXMLRegistryObject
- Returns:
- the name of this entry.
-
getObjectType
- Specified by:
getObjectType
in interfaceEbXMLRegistryObject
- Returns:
- the object type of this entry.
-
getSingleClassification
Description copied from interface:EbXMLRegistryObject
Returns the first classification matching the given scheme.- Specified by:
getSingleClassification
in interfaceEbXMLRegistryObject
- Parameters:
scheme
- the scheme.- Returns:
- the classification matching the scheme. Only the first classification is considered, other classifications are ignored.
-
setDescription
- Specified by:
setDescription
in interfaceEbXMLRegistryObject
- Parameters:
description
- the description of this entry.
-
setName
- Specified by:
setName
in interfaceEbXMLRegistryObject
- Parameters:
name
- the name of this entry.
-
setObjectType
- Specified by:
setObjectType
in interfaceEbXMLRegistryObject
- Parameters:
objectType
- the object type of this entry.
-
getHome
- Specified by:
getHome
in interfaceEbXMLRegistryObject
- Returns:
- the home attribute of this entry.
-
setHome
- Specified by:
setHome
in interfaceEbXMLRegistryObject
- Parameters:
home
- the home attribute of this entry.
-
getInternal
- Specified by:
getInternal
in interfaceEbXMLRegistryObject
- Returns:
- the ebXML object being wrapped by this entry.
-
addSlot
Description copied from interface:EbXMLSlotList
Adds a slot with a list of values.- Specified by:
addSlot
in interfaceEbXMLSlotList
- Parameters:
slotName
- the slot name.slotValues
- the slot values. The slot will not be created if this parameter is empty ornull
.
-
getSlotValues
Description copied from interface:EbXMLSlotList
Gets the values of a slot.- Specified by:
getSlotValues
in interfaceEbXMLSlotList
- Parameters:
slotName
- the name of the slot. It is expected that the name is only used for a single slot. UseEbXMLSlotList.getSlots(String)
if it is possible that the name is used multiple times.- Returns:
- the list of slot values.
-
getSingleSlotValue
Description copied from interface:EbXMLSlotList
Gets a single slot value.- Specified by:
getSingleSlotValue
in interfaceEbXMLSlotList
- Parameters:
slotName
- the name of the slot. It is expected that the name is only used for a single slot. UseEbXMLSlotList.getSlots(String)
if it is possible that the name is used multiple times.- Returns:
- the first slot value. Other slot values are ignored. Can be
null
if the slot does not exist, has no slot values or the value isnull
.
-
getSlots
- Specified by:
getSlots
in interfaceEbXMLSlotList
- Returns:
- the complete list of all slots.
-
getSlots
Description copied from interface:EbXMLSlotList
Returns a filtered list of the slots.- Specified by:
getSlots
in interfaceEbXMLSlotList
- Parameters:
slotName
- name of the slots.- Returns:
- the list of slots named with the given slot name.
-