2015-06-18 10:25:33 -06:00
|
|
|
##
|
|
|
|
##
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Adapter for com.raytheon.uf.common.localization.LocalizationContext$LocalizationLevel
|
2016-03-16 16:32:17 -05:00
|
|
|
#
|
|
|
|
#
|
2015-06-18 10:25:33 -06:00
|
|
|
# SOFTWARE HISTORY
|
2016-03-16 16:32:17 -05:00
|
|
|
#
|
2015-06-18 10:25:33 -06:00
|
|
|
# Date Ticket# Engineer Description
|
|
|
|
# ------------ ---------- ----------- --------------------------
|
|
|
|
# 01/11/11 dgilling Initial Creation.
|
2016-03-16 16:32:17 -05:00
|
|
|
#
|
|
|
|
#
|
2015-06-18 10:25:33 -06:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from dynamicserialize.dstypes.com.raytheon.uf.common.localization import LocalizationLevel
|
|
|
|
|
|
|
|
ClassAdapter = [
|
|
|
|
'com.raytheon.uf.common.localization.LocalizationContext$LocalizationLevel',
|
|
|
|
'com.raytheon.uf.common.localization.LocalizationLevel'
|
|
|
|
]
|
|
|
|
|
|
|
|
def serialize(context, level):
|
|
|
|
context.writeString(level.getText())
|
|
|
|
context.writeI32(level.getOrder())
|
|
|
|
context.writeBool(level.isSystemLevel());
|
|
|
|
|
|
|
|
def deserialize(context):
|
|
|
|
text = context.readString()
|
|
|
|
order = context.readI32()
|
|
|
|
systemLevel = context.readBool()
|
|
|
|
level = LocalizationLevel(text, order, systemLevel=systemLevel)
|
|
|
|
return level
|
2016-03-28 16:22:44 -05:00
|
|
|
|
|
|
|
|