Class EbXMLClassification30
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.EbXMLClassification30
- All Implemented Interfaces:
EbXMLClassification
,EbXMLSlotList
Encapsulation of
ClassificationType
.- Author:
- Jens Riemschneider
-
Field Summary
Fields inherited from interface org.openehealth.ipf.commons.ihe.xds.core.ebxml.EbXMLClassification
CLASSIFICATION_OBJECT_TYPE
-
Constructor Summary
ConstructorDescriptionEbXMLClassification30
(ClassificationType classification) Constructs a classification by wrapping the given ebXML 3.0 object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a slot with a list of values.void
Assigns a random unique ID to this classification.getName()
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
setClassificationNode
(String classificationNode) void
setClassificationScheme
(String classificationScheme) void
setClassifiedObject
(String classifiedObject) void
setName
(LocalizedString name) void
setNodeRepresentation
(String nodeRepresentation)
-
Constructor Details
-
EbXMLClassification30
Constructs a classification by wrapping the given ebXML 3.0 object.- Parameters:
classification
- the object to wrap.
-
-
Method Details
-
getClassificationScheme
- Specified by:
getClassificationScheme
in interfaceEbXMLClassification
- Returns:
- the classification scheme.
-
getClassifiedObject
- Specified by:
getClassifiedObject
in interfaceEbXMLClassification
- Returns:
- the object being classified by this classification.
-
setClassificationScheme
- Specified by:
setClassificationScheme
in interfaceEbXMLClassification
- Parameters:
classificationScheme
- the classification scheme.
-
setClassifiedObject
- Specified by:
setClassifiedObject
in interfaceEbXMLClassification
- Parameters:
classifiedObject
- the object being classified by this classification.
-
getNodeRepresentation
- Specified by:
getNodeRepresentation
in interfaceEbXMLClassification
- Returns:
- the node representation.
-
setNodeRepresentation
- Specified by:
setNodeRepresentation
in interfaceEbXMLClassification
- Parameters:
nodeRepresentation
- the node representation.
-
getName
- Specified by:
getName
in interfaceEbXMLClassification
- Returns:
- the name as a localized string.
-
getNameAsInternationalString
- Specified by:
getNameAsInternationalString
in interfaceEbXMLClassification
- Returns:
- the name as an international string.
-
setName
- Specified by:
setName
in interfaceEbXMLClassification
- Parameters:
name
- the name as a localized string.
-
setClassificationNode
- Specified by:
setClassificationNode
in interfaceEbXMLClassification
- Parameters:
classificationNode
- the classification node.
-
getClassificationNode
- Specified by:
getClassificationNode
in interfaceEbXMLClassification
- Returns:
- the classification node.
-
getInternal
- Specified by:
getInternal
in interfaceEbXMLClassification
- Returns:
- the ebXML 3.0 object being wrapped by this class.
-
assignUniqueId
public void assignUniqueId()Description copied from interface:EbXMLClassification
Assigns a random unique ID to this classification.- Specified by:
assignUniqueId
in interfaceEbXMLClassification
-
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.
-