public interface CodeListService
Modifier and Type | Method and Description |
---|---|
void |
addCodeList(String resourceId,
CodeList code)
Add a code list to the service.
|
void |
assignEntityCodeList(EntityDefinition entity,
CodeList code)
Assign a code list for a property entity definition.
|
CodeList |
findCodeListByEntity(EntityDefinition entity)
Tries to find a code list associated to the property referenced by the
given entity definition.
|
CodeList |
findCodeListByIdentifier(String namespace,
String identifier)
Tries to find the code list with the given namespace and identifier.
|
CodeList |
getCodeList(String resourceId)
Get the code list associated to a specific resource.
|
List<CodeList> |
getCodeLists()
Get the code lists.
|
boolean |
removeCodeList(String resourceId)
Remove the code list associated to a specific resource.
|
CodeList findCodeListByIdentifier(String namespace, String identifier)
namespace
- the namespaceidentifier
- the identifiernull
CodeList findCodeListByEntity(EntityDefinition entity)
entity
- the entity definitionnull
void assignEntityCodeList(EntityDefinition entity, CodeList code)
entity
- the entity definitioncode
- the code list to assign or null
if the
assignment shall be deletedvoid addCodeList(String resourceId, CodeList code)
resourceId
- the resource identifier of the code listcode
- the code list to addCodeList getCodeList(String resourceId)
resourceId
- the resource identifiernull
if no code list associated to
the resource ID could be foundboolean removeCodeList(String resourceId)
resourceId
- the resource identifiertrue
if the code list associated to the resource was
present and successfully removed, false
otherwiseBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a