ilog.cpl.storage
Interface IlpSAXSerializable

All Known Implementing Classes:
IlpGeographicPolygonSAXInfo, IlpGeographicPolylineSAXInfo, IlpGeographicPolyPointsSAXInfo, IlpGeographicPositionSAXInfo, IlpPointSAXInfo, IlpPolygonSAXInfo, IlpPolylineSAXInfo, IlpPolyPointsSAXInfo, IlpRectSAXInfo, IlpRelativePointSAXInfo, IlpRelativeRectSAXInfo, IlpShelfItemPositionSAXInfo, IlpSlotSizesSAXInfo, IltAlarmObjectStateSAXInfo, IltAlarmSeverityAttribute, IltBellcoreObjectStateSAXInfo, IltBiSONETObjectStateSAXInfo, IltObjectStateSAXInfo, IltOSIObjectStateSAXInfo, IltShelfItemPositionSAXInfo, IltSNMPObjectStateSAXInfo, IltSONETObjectStateSAXInfo, IltTrapObjectStateSAXInfo

public interface IlpSAXSerializable

This interface should be implemented by the classes that cannot be serialized in XML using the default serialization. It can also be implemented by IlpAttribute to support a custom serialization.

Since:
JTGO 3.0
See Also:
IlpAttribute, IlpSAXAttributeValueHandler

Field Summary
static Attributes EMPTY_ATTRS
           
 
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.
 

Field Detail

EMPTY_ATTRS

static final Attributes EMPTY_ATTRS
See Also:
AttributesImpl
Method Detail

getSAXHandler

IlpSAXAttributeValueHandler getSAXHandler()
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.

Returns:
A handler for SAX events.

output

void output(Object value,
            IlpTypeConverter typeConverter,
            ContentHandler outputHandler)
            throws SAXException
Outputs the value to an SAX ContentHandler. The method translates the object as SAX ContentHandler method calls.

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.