public class RepositoryTypeEnumFactory extends Object implements EnumFactory<RepositoryType>
| Constructor and Description |
|---|
RepositoryTypeEnumFactory() |
| Modifier and Type | Method and Description |
|---|---|
RepositoryType |
fromCode(String codeString)
Read an enumeration value from the string that represents it on the XML or JSON
|
String |
toCode(RepositoryType code)
Get the XML/JSON representation for an enumerated value
|
String |
toSystem(RepositoryType code)
Get the XML/JSON representation for an enumerated value
|
public RepositoryTypeEnumFactory()
public RepositoryType fromCode(String codeString) throws IllegalArgumentException
EnumFactoryfromCode in interface EnumFactory<RepositoryType>fromCode in interface IBaseEnumFactory<RepositoryType>codeString - the value found in the XML or JSONIllegalArgumentExceptionpublic String toCode(RepositoryType code)
EnumFactorytoCode in interface EnumFactory<RepositoryType>toCode in interface IBaseEnumFactory<RepositoryType>code - - the enumeration valuepublic String toSystem(RepositoryType code)
EnumFactorytoSystem in interface EnumFactory<RepositoryType>code - - the enumeration valueCopyright © 2014–2017 University Health Network. All rights reserved.