示例#1
0
 def toString(self, memento):
     """
     Returns a string that represents the ASGC memento object.
     @param memento: The ASGC memento object
     @return: string representing the ASGC memento
     """
     return json.JsonWriter().write(memento)
示例#2
0
 def serialize(self, memento, serializationStream):
     """
     Serializes the ASGC memento to the stream
     @param memento: the ASGC memento structure
     @param serializationStream: output stream where memento should
                                  be serialized to
     """
     text = json.JsonWriter().write(memento)
     serializationStream.write(text)
示例#3
0
 def toString(self, memento):
     return json.JsonWriter().write(memento)
示例#4
0
 def serialize(self, memento, serializationStream):
     text = json.JsonWriter().write(memento)
     serializationStream.write(text)