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