ilog.tgo.model
Class IltTrapObjectStateSAXInfo

java.lang.Object
  extended by ilog.tgo.model.IltTrapObjectStateSAXInfo
All Implemented Interfaces:
IlpSAXSerializable

public class IltTrapObjectStateSAXInfo
extends Object
implements IlpSAXSerializable

XML serialization class for IltTrapObjectState. This class reads and writes an IltTrapObjectState in the following format:

[<traps> [<new type="TTT" [operation=""set"|add"|"remove"]>NNN</new>]* [<ack type="TTT" [operation=""set"|add"|"remove"]>NNN</ack>]* </traps>] where: NNN stands for an integer number and TTT stands for a trap type, such as LinkFailure.

The operation attribute is optional and indicates if the traps are being added, removed or set in the object state. By default, the traps are set to the object state. This attribute is used when the traps are set within an updateState element.

Since:
JTGO 3.0

Field Summary
static String TRAPS_TAG
           
 
Fields inherited from interface ilog.cpl.storage.IlpSAXSerializable
EMPTY_ATTRS
 
Constructor Summary
IltTrapObjectStateSAXInfo()
           
 
Method Summary
 IlpSAXAttributeValueHandler getSAXHandler()
          Returns a SAX handler capable of reading the attribute.
 void output(Object value, IlpTypeConverter typeConverter, ContentHandler outputHandler)
          Outputs the value to an SAX ContentHandler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRAPS_TAG

public static final String TRAPS_TAG
See Also:
Constant Field Values
Internal method or field: do not use!
Constructor Detail

IltTrapObjectStateSAXInfo

public IltTrapObjectStateSAXInfo()
Method Detail

getSAXHandler

public IlpSAXAttributeValueHandler getSAXHandler()
Description copied from interface: IlpSAXSerializable
Returns a SAX handler capable of reading the attribute. The returned SAX handler should either be a new one each time this method is called, or at least there should be one instance for each thread.

Specified by:
getSAXHandler in interface IlpSAXSerializable
Returns:
A handler for SAX events.

output

public void output(Object value,
                   IlpTypeConverter typeConverter,
                   ContentHandler outputHandler)
            throws SAXException
Description copied from interface: IlpSAXSerializable
Outputs the value to an SAX ContentHandler. The method translates the object as SAX ContentHandler method calls.

Specified by:
output in interface IlpSAXSerializable
Parameters:
value - The object to output
typeConverter - The type converter that may be needed to translate values to strings.
outputHandler - The SAX ContentHandler used by this method.
Throws:
SAXException
See Also:
IlpTypeConverter.createStringValue(Class,Object)


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.