mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-24 06:57:56 -05:00
33 lines
808 B
Python
33 lines
808 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, type):
|
|
context.writeString(type.getText())
|
|
|
|
def deserialize(context):
|
|
typeString = context.readString()
|
|
return LocalizationType(typeString)
|
|
|