public class XdsDocumentRepository extends java.lang.Object implements DocumentRepository
Constructor and Description |
---|
XdsDocumentRepository() |
Modifier and Type | Method and Description |
---|---|
boolean |
asBoolean(java.lang.String name)
Return named property as a String
|
java.util.List<java.lang.String> |
asList(java.lang.String name)
Return named property as a list of Strings
|
java.lang.String |
asString(java.lang.String name)
Return named property as a String
|
void |
delete()
Delete the actor.
|
java.lang.String |
describe()
Describe Simulator Configuration.
|
java.lang.String |
getActorType()
Name of actor type that defines this simulator.
|
SimConfig |
getConfig() |
DocumentContent |
getDocument(java.lang.String uniqueId)
Get contents of a document
|
EngineSpi |
getEngine() |
java.lang.String |
getEnvironmentName()
Name of environment defined for this simulator.
|
RefList |
getEvent(java.lang.String simId,
TransactionType transaction,
java.lang.String eventId) |
RefList |
getEventIds(java.lang.String simId,
TransactionType transaction) |
java.lang.String |
getFullId()
Internal representation of Simulator ID.
|
java.lang.String |
getId()
Simulator ID
|
PatientErrorMap |
getPatientErrorMap() |
java.util.Collection<java.lang.String> |
getPropertyNames() |
java.lang.String |
getUser()
Simulator user (same as TestSession in Toolkit UI)
|
boolean |
isBoolean(java.lang.String name)
Is named property a boolean value?
|
boolean |
isFhir() |
boolean |
isList(java.lang.String name) |
boolean |
isString(java.lang.String name) |
void |
setConfig(SimConfig cnf) |
void |
setEngine(EngineSpi eng) |
void |
setPatientErrorMap(PatientErrorMap errorMap)
Set a property that takes a PatientErrorMap value
|
void |
setProperty(java.lang.String name,
boolean value)
Set a property that takes a boolean value
|
void |
setProperty(java.lang.String name,
java.util.List<java.lang.String> value)
Set a property that takes a String value
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Set a property that takes a String value
|
SimConfig |
update(SimConfig config) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asBoolean, asString, delete, describe, getConfig, getEvent, getEventIds, getId, isBoolean, setProperty, setProperty, update
asList, getPatientErrorMap, getPropertyNames, isList, isString, setPatientErrorMap, setProperty
getActorType, getEnvironmentName, getFullId, getUser, isFhir
public DocumentContent getDocument(java.lang.String uniqueId) throws ToolkitServiceException
DocumentRepository
getDocument
in interface DocumentRepository
uniqueId
- - DocumentEntry.uniqueIdToolkitServiceException
public SimConfig getConfig()
getConfig
in interface AbstractActorInterface
public SimConfig update(SimConfig config) throws ToolkitServiceException
update
in interface AbstractActorInterface
ToolkitServiceException
public void setConfig(SimConfig cnf)
public EngineSpi getEngine()
public void setEngine(EngineSpi eng)
public void delete() throws ToolkitServiceException
AbstractActorInterface
delete
in interface AbstractActorInterface
ToolkitServiceException
- if something goes wrong.public void setProperty(java.lang.String name, java.lang.String value)
setProperty
in interface AbstractActorInterface
setProperty
in interface SimConfig
name
- property name. See SimulatorProperties
for property names.value
- property valuepublic void setProperty(java.lang.String name, boolean value)
setProperty
in interface AbstractActorInterface
setProperty
in interface SimConfig
name
- property name. See SimulatorProperties
for property names.value
- property valuepublic boolean isBoolean(java.lang.String name)
isBoolean
in interface AbstractActorInterface
isBoolean
in interface SimConfig
name
- property name. See SimulatorProperties
for property names.public boolean isString(java.lang.String name)
public java.lang.String asString(java.lang.String name)
asString
in interface AbstractActorInterface
asString
in interface SimConfig
name
- property name. See SimulatorProperties
for property names.public boolean asBoolean(java.lang.String name)
asBoolean
in interface AbstractActorInterface
asBoolean
in interface SimConfig
name
- property name. See SimulatorProperties
for property names.public java.util.List<java.lang.String> asList(java.lang.String name)
SimConfig
public java.lang.String describe()
describe
in interface AbstractActorInterface
describe
in interface SimConfig
public java.lang.String getId()
SimId
getId
in interface AbstractActorInterface
getId
in interface SimId
public java.lang.String getEnvironmentName()
SimId
getEnvironmentName
in interface SimId
public java.lang.String getActorType()
SimId
getActorType
in interface SimId
public void setProperty(java.lang.String name, java.util.List<java.lang.String> value)
SimConfig
setProperty
in interface SimConfig
name
- property name. See SimulatorProperties
for property names.value
- property valuepublic java.lang.String getFullId()
SimId
public java.lang.String getUser()
SimId
public java.util.Collection<java.lang.String> getPropertyNames()
getPropertyNames
in interface SimConfig
public RefList getEventIds(java.lang.String simId, TransactionType transaction) throws ToolkitServiceException
getEventIds
in interface AbstractActorInterface
ToolkitServiceException
public RefList getEvent(java.lang.String simId, TransactionType transaction, java.lang.String eventId) throws ToolkitServiceException
getEvent
in interface AbstractActorInterface
ToolkitServiceException
public void setPatientErrorMap(PatientErrorMap errorMap) throws java.io.IOException
SimConfig
setPatientErrorMap
in interface SimConfig
java.io.IOException
public PatientErrorMap getPatientErrorMap() throws java.io.IOException
getPatientErrorMap
in interface SimConfig
java.io.IOException