|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openhealthexchange.openpixpdq.ihe.configuration.Configuration
public class Configuration
This class contains a number of utilities for getting configuration and using configuration information from a connection description.
| Constructor Summary | |
|---|---|
Configuration()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
applyEnumMap(com.misyshealthcare.connect.net.IConnectionDescription connection,
java.lang.Enum value,
java.lang.Class enumType,
boolean isRequired)
Translates an enum value into a Code appropriate for this connection. |
static java.lang.String |
applyStringMap(com.misyshealthcare.connect.net.IConnectionDescription connection,
java.lang.String value,
java.lang.String valueType,
boolean isRequired)
Translates a symbolic string into a Code appropriate for this connection. |
static com.misyshealthcare.connect.net.Identifier |
getIdentifier(com.misyshealthcare.connect.net.IConnectionDescription connection,
java.lang.String name,
boolean isRequired)
Gets an identifier description from the connection this actor is using. |
static com.misyshealthcare.connect.net.PropertySet |
getPropertySet(com.misyshealthcare.connect.net.IConnectionDescription connection,
java.lang.String name,
boolean isRequired)
Gets a property set from the connection being used by this actor. |
static java.lang.String |
getPropertySetValue(com.misyshealthcare.connect.net.IConnectionDescription connection,
java.lang.String setName,
java.lang.String valueName,
boolean isRequired)
Gets a value from a property set defined for a connection. |
static java.lang.String |
getPropertyValue(com.misyshealthcare.connect.net.IConnectionDescription connection,
java.lang.String valueName,
boolean isRequired)
Gets a value of a property defined for a connection. |
static java.lang.Enum |
reverseEnumMap(com.misyshealthcare.connect.net.IConnectionDescription connection,
java.lang.String code,
java.lang.Class enumType)
Translates a code to an internal Misys Connect enum value. |
static java.lang.String |
reverseStringMap(com.misyshealthcare.connect.net.IConnectionDescription connection,
java.lang.String code,
java.lang.String valueType)
Translates a Code from this connection into a Misys Connect string value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Configuration()
| Method Detail |
|---|
public static com.misyshealthcare.connect.net.Identifier getIdentifier(com.misyshealthcare.connect.net.IConnectionDescription connection,
java.lang.String name,
boolean isRequired)
throws IheConfigurationException
connection - the connection description being usedname - the name of the identifier in the configurationisRequired - true if this identifier must exist
IheConfigurationException - If this identifier must be in the configuration and it is not
public static com.misyshealthcare.connect.net.PropertySet getPropertySet(com.misyshealthcare.connect.net.IConnectionDescription connection,
java.lang.String name,
boolean isRequired)
throws IheConfigurationException
connection - the connection description being usedname - the name of the property set in the configurationisRequired - true if this property set must exist
IheConfigurationException - If this property set must be in the configuration and it is not
public static java.lang.String getPropertySetValue(com.misyshealthcare.connect.net.IConnectionDescription connection,
java.lang.String setName,
java.lang.String valueName,
boolean isRequired)
throws IheConfigurationException
connection - the connection description holding the setsetName - the name of the property setvalueName - the name of the value within the property setisRequired - true if this value must be defined
IheConfigurationException - If this value must be in the configuration and it is not
public static java.lang.String getPropertyValue(com.misyshealthcare.connect.net.IConnectionDescription connection,
java.lang.String valueName,
boolean isRequired)
throws IheConfigurationException
connection - the connection description holding the setvalueName - the name of propertyisRequired - true if this property must be defined
IheConfigurationException - If this value must be in the configuration and it is not
public static java.lang.String applyEnumMap(com.misyshealthcare.connect.net.IConnectionDescription connection,
java.lang.Enum value,
java.lang.Class enumType,
boolean isRequired)
throws IheConfigurationException
connection - the connection being submitted tovalue - the enum value used within Misys ConnectenumType - the enum Class for this value, ie. the name of the EnumMap to use for translationisRequired - true if a translation of this value is required, False if the value can default to itself
IheConfigurationException - When the required EnumMap is not defined for this connection
public static java.lang.Enum reverseEnumMap(com.misyshealthcare.connect.net.IConnectionDescription connection,
java.lang.String code,
java.lang.Class enumType)
connection - the connection to usecode - the code used by that connectionenumType - the Misys Connect enum type
public static java.lang.String applyStringMap(com.misyshealthcare.connect.net.IConnectionDescription connection,
java.lang.String value,
java.lang.String valueType,
boolean isRequired)
throws IheConfigurationException
connection - the connection being submitted tovalue - the symbolic value used within Misys ConnectvalueType - the kind of value this is, ie. the name of the StringMap to use for translationisRequired - true if a translation of this value is required, False if the value can default to itself
IheConfigurationException - When the required StringMap is not defined for this connection
public static java.lang.String reverseStringMap(com.misyshealthcare.connect.net.IConnectionDescription connection,
java.lang.String code,
java.lang.String valueType)
connection - the connection being submitted tocode - the Code used by the connectionvalueType - the kind of value this is, ie. the name of the StringMap to use for translation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||