mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 22:57:56 -05:00
27 lines
797 B
Python
27 lines
797 B
Python
|
#
|
||
|
# Adapter for com.raytheon.uf.common.localization.LocalizationContext$LocalizationType
|
||
|
#
|
||
|
#
|
||
|
# SOFTWARE HISTORY
|
||
|
#
|
||
|
# Date Ticket# Engineer Description
|
||
|
# ------------ ---------- ----------- --------------------------
|
||
|
# 01/11/11 dgilling Initial Creation.
|
||
|
#
|
||
|
|
||
|
from dynamicserialize.dstypes.com.raytheon.uf.common.localization import LocalizationType
|
||
|
|
||
|
ClassAdapter = [
|
||
|
'com.raytheon.uf.common.localization.LocalizationContext$LocalizationType',
|
||
|
'com.raytheon.uf.common.localization.LocalizationType'
|
||
|
]
|
||
|
|
||
|
|
||
|
def serialize(context, ltype):
|
||
|
context.writeString(ltype.getText())
|
||
|
|
||
|
|
||
|
def deserialize(context):
|
||
|
typeString = context.readString()
|
||
|
return LocalizationType(typeString)
|