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
ConstructorsModifierConstructorDescriptionprotectedEbXMLRegistryObject30(E registryEntry, EbXMLObjectLibrary objectLibrary) Constructs a registry entry by wrapping the given ebXML 3.0 object. -
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.voidAdds 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 EbXMLObjectLibrarygetSingleClassification(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.voidsetDescription(LocalizedString description) voidvoidvoidvoidsetName(LocalizedString name) voidsetObjectType(String objectType) voidsetVersionInfo(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:EbXMLRegistryObjectAdds a classification to this entry with a random id.- Specified by:
addClassificationin interfaceEbXMLRegistryObject- Parameters:
classification- the classification to add.scheme- the scheme of the classification.
-
addExternalIdentifier
Description copied from interface:EbXMLRegistryObjectAdds a new external identifier to this entry.- Specified by:
addExternalIdentifierin interfaceEbXMLRegistryObject- Parameters:
value- the value of the identifier.scheme- the scheme of the identifier.name- the name of the identifier.
-
getClassifications
- Specified by:
getClassificationsin interfaceEbXMLRegistryObject- Returns:
- all classifications contained in this entry.
-
getClassifications
Description copied from interface:EbXMLRegistryObjectReturns the classification matching the given scheme.- Specified by:
getClassificationsin interfaceEbXMLRegistryObject- Parameters:
scheme- the scheme.- Returns:
- the classifications contained in this entry that match the scheme.
-
getDescription
- Specified by:
getDescriptionin interfaceEbXMLRegistryObject- Returns:
- the description of this entry.
-
getExternalIdentifierValue
Description copied from interface:EbXMLRegistryObjectReturns the value of the external identifier matching the given scheme.- Specified by:
getExternalIdentifierValuein interfaceEbXMLRegistryObject- 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.
-
getExternalIdentifiers
- Specified by:
getExternalIdentifiersin interfaceEbXMLRegistryObject- Returns:
- all external identifiers contained in this entry.
-
getId
- Specified by:
getIdin interfaceEbXMLRegistryObject- Returns:
- the id of this entry.
-
setId
- Specified by:
setIdin interfaceEbXMLRegistryObject- Parameters:
id- the id of this entry.
-
getLid
- Specified by:
getLidin interfaceEbXMLRegistryObject- Returns:
- the lid of this entry.
-
setLid
- Specified by:
setLidin interfaceEbXMLRegistryObject- Parameters:
lid- the lid of this entry.
-
getVersionInfo
- Specified by:
getVersionInfoin interfaceEbXMLRegistryObject- Returns:
- the id of this entry.
-
setVersionInfo
- Specified by:
setVersionInfoin interfaceEbXMLRegistryObject- Parameters:
version- the versionInfo of this entry.
-
getName
- Specified by:
getNamein interfaceEbXMLRegistryObject- Returns:
- the name of this entry.
-
getObjectType
- Specified by:
getObjectTypein interfaceEbXMLRegistryObject- Returns:
- the object type of this entry.
-
getSingleClassification
Description copied from interface:EbXMLRegistryObjectReturns the first classification matching the given scheme.- Specified by:
getSingleClassificationin interfaceEbXMLRegistryObject- Parameters:
scheme- the scheme.- Returns:
- the classification matching the scheme. Only the first classification is considered, other classifications are ignored.
-
setDescription
- Specified by:
setDescriptionin interfaceEbXMLRegistryObject- Parameters:
description- the description of this entry.
-
setName
- Specified by:
setNamein interfaceEbXMLRegistryObject- Parameters:
name- the name of this entry.
-
setObjectType
- Specified by:
setObjectTypein interfaceEbXMLRegistryObject- Parameters:
objectType- the object type of this entry.
-
getHome
- Specified by:
getHomein interfaceEbXMLRegistryObject- Returns:
- the home attribute of this entry.
-
setHome
- Specified by:
setHomein interfaceEbXMLRegistryObject- Parameters:
home- the home attribute of this entry.
-
getInternal
- Specified by:
getInternalin interfaceEbXMLRegistryObject- Returns:
- the ebXML object being wrapped by this entry.
-
addSlot
Description copied from interface:EbXMLSlotListAdds a slot with a list of values.- Specified by:
addSlotin 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:EbXMLSlotListGets the values of a slot.- Specified by:
getSlotValuesin 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:EbXMLSlotListGets a single slot value.- Specified by:
getSingleSlotValuein 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
nullif the slot does not exist, has no slot values or the value isnull.
-
getSlots
- Specified by:
getSlotsin interfaceEbXMLSlotList- Returns:
- the complete list of all slots.
-
getSlots
Description copied from interface:EbXMLSlotListReturns a filtered list of the slots.- Specified by:
getSlotsin interfaceEbXMLSlotList- Parameters:
slotName- name of the slots.- Returns:
- the list of slots named with the given slot name.
-