mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-24 06:57:56 -05:00
29 lines
789 B
Python
29 lines
789 B
Python
|
#
|
||
|
# Adapter for java.lang.StackTraceElement[]
|
||
|
#
|
||
|
#
|
||
|
# SOFTWARE HISTORY
|
||
|
#
|
||
|
# Date Ticket# Engineer Description
|
||
|
# ------------ ---------- ----------- --------------------------
|
||
|
# 09/21/10 njensen Initial Creation.
|
||
|
#
|
||
|
|
||
|
import dynamicserialize
|
||
|
from dynamicserialize.dstypes.java.lang import StackTraceElement
|
||
|
|
||
|
ClassAdapter = 'java.lang.StackTraceElement'
|
||
|
|
||
|
|
||
|
def serialize(context, obj):
|
||
|
raise dynamicserialize.SerializationException('Not implemented yet')
|
||
|
|
||
|
|
||
|
def deserialize(context):
|
||
|
result = StackTraceElement()
|
||
|
result.setDeclaringClass(context.readString())
|
||
|
result.setMethodName(context.readString())
|
||
|
result.setFileName(context.readString())
|
||
|
result.setLineNumber(context.readI32())
|
||
|
return result
|