E
- the EBXML type of the registry object.public abstract class EbXMLRegistryObject30<E extends RegistryObjectType> extends Object implements EbXMLRegistryObject
RegistryObjectType
.Modifier | Constructor and Description |
---|---|
protected |
EbXMLRegistryObject30(E registryEntry,
EbXMLObjectLibrary objectLibrary)
Constructs a registry entry by wrapping the given ebXML 3.0 object.
|
Modifier and Type | Method and Description |
---|---|
void |
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 |
addSlot(String slotName,
String... slotValues)
Adds a slot with a list of values.
|
List<EbXMLClassification> |
getClassifications() |
List<EbXMLClassification> |
getClassifications(String scheme)
Returns the classification matching the given scheme.
|
LocalizedString |
getDescription() |
List<EbXMLExternalIdentifier> |
getExternalIdentifiers() |
String |
getExternalIdentifierValue(String scheme)
Returns the value of the external identifier matching the given scheme.
|
String |
getHome() |
String |
getId() |
E |
getInternal() |
String |
getLid() |
LocalizedString |
getName() |
protected EbXMLObjectLibrary |
getObjectLibrary() |
String |
getObjectType() |
EbXMLClassification |
getSingleClassification(String scheme)
Returns the first classification matching the given scheme.
|
String |
getSingleSlotValue(String slotName)
Gets a single slot value.
|
List<EbXMLSlot> |
getSlots() |
List<EbXMLSlot> |
getSlots(String slotName)
Returns a filtered list of the slots.
|
List<String> |
getSlotValues(String slotName)
Gets the values of a slot.
|
Version |
getVersionInfo() |
void |
setDescription(LocalizedString description) |
void |
setHome(String home) |
void |
setId(String id) |
void |
setLid(String lid) |
void |
setName(LocalizedString name) |
void |
setObjectType(String objectType) |
void |
setVersionInfo(Version version) |
protected EbXMLRegistryObject30(E registryEntry, EbXMLObjectLibrary objectLibrary)
registryEntry
- the object to wrap.objectLibrary
- the object library to use.protected EbXMLObjectLibrary getObjectLibrary()
public void addClassification(EbXMLClassification classification, String scheme)
EbXMLRegistryObject
addClassification
in interface EbXMLRegistryObject
classification
- the classification to add.scheme
- the scheme of the classification.public void addExternalIdentifier(String value, String scheme, String name)
EbXMLRegistryObject
addExternalIdentifier
in interface EbXMLRegistryObject
value
- the value of the identifier.scheme
- the scheme of the identifier.name
- the name of the identifier.public List<EbXMLClassification> getClassifications()
getClassifications
in interface EbXMLRegistryObject
public List<EbXMLClassification> getClassifications(String scheme)
EbXMLRegistryObject
getClassifications
in interface EbXMLRegistryObject
scheme
- the scheme.public LocalizedString getDescription()
getDescription
in interface EbXMLRegistryObject
public String getExternalIdentifierValue(String scheme)
EbXMLRegistryObject
getExternalIdentifierValue
in interface EbXMLRegistryObject
scheme
- the scheme of the external identifier.null
if no identifier was found that matched the scheme.public List<EbXMLExternalIdentifier> getExternalIdentifiers()
getExternalIdentifiers
in interface EbXMLRegistryObject
public String getId()
getId
in interface EbXMLRegistryObject
public void setId(String id)
setId
in interface EbXMLRegistryObject
id
- the id of this entry.public String getLid()
getLid
in interface EbXMLRegistryObject
public void setLid(String lid)
setLid
in interface EbXMLRegistryObject
lid
- the lid of this entry.public Version getVersionInfo()
getVersionInfo
in interface EbXMLRegistryObject
public void setVersionInfo(Version version)
setVersionInfo
in interface EbXMLRegistryObject
version
- the versionInfo of this entry.public LocalizedString getName()
getName
in interface EbXMLRegistryObject
public String getObjectType()
getObjectType
in interface EbXMLRegistryObject
public EbXMLClassification getSingleClassification(String scheme)
EbXMLRegistryObject
getSingleClassification
in interface EbXMLRegistryObject
scheme
- the scheme.public void setDescription(LocalizedString description)
setDescription
in interface EbXMLRegistryObject
description
- the description of this entry.public void setName(LocalizedString name)
setName
in interface EbXMLRegistryObject
name
- the name of this entry.public void setObjectType(String objectType)
setObjectType
in interface EbXMLRegistryObject
objectType
- the object type of this entry.public String getHome()
getHome
in interface EbXMLRegistryObject
public void setHome(String home)
setHome
in interface EbXMLRegistryObject
home
- the home attribute of this entry.public E getInternal()
getInternal
in interface EbXMLRegistryObject
@Generated(value="lombok") public void addSlot(String slotName, String... slotValues)
EbXMLSlotList
addSlot
in interface EbXMLSlotList
slotName
- the slot name.slotValues
- the slot values. The slot will not be created if this parameter is
empty or null
.@Generated(value="lombok") public List<String> getSlotValues(String slotName)
EbXMLSlotList
getSlotValues
in interface EbXMLSlotList
slotName
- the name of the slot. It is expected that the name is only used for
a single slot. Use EbXMLSlotList.getSlots(String)
if it is possible that
the name is used multiple times.@Generated(value="lombok") public String getSingleSlotValue(String slotName)
EbXMLSlotList
getSingleSlotValue
in interface EbXMLSlotList
slotName
- the name of the slot. It is expected that the name is only used for
a single slot. Use EbXMLSlotList.getSlots(String)
if it is possible that
the name is used multiple times.null
if the slot does not exist, has no slot values
or the value is null
.@Generated(value="lombok") public List<EbXMLSlot> getSlots()
getSlots
in interface EbXMLSlotList
@Generated(value="lombok") public List<EbXMLSlot> getSlots(String slotName)
EbXMLSlotList
getSlots
in interface EbXMLSlotList
slotName
- name of the slots.Copyright © 2018 Open eHealth Foundation. All rights reserved.