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