ilog.cpl.graphic.views
Class IlpSlotSizesSAXInfo

java.lang.Object
  extended by ilog.cpl.graphic.views.IlpSlotSizesSAXInfo
All Implemented Interfaces:
IlpSAXSerializable

public class IlpSlotSizesSAXInfo
extends Object
implements IlpSAXSerializable

XML serialization class for IlpSlotSizes.

This class reads and writes the following format:

[<height> [<value>NNN</value>]* </height>] [<width> [<value>NNN</value>]* </width>] where NNN stands for an integer number. The order between <height> and <width> elements is not taken into account, while the order of the <value> elements is meaningful as it corresponds to the slot order.

Since:
JTGO 3.0

Nested Class Summary
static class IlpSlotSizesSAXInfo.IlpSAXSlotSizesHandler
           
 
Field Summary
 
Fields inherited from interface ilog.cpl.storage.IlpSAXSerializable
EMPTY_ATTRS
 
Constructor Summary
IlpSlotSizesSAXInfo()
           
 
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
 

Constructor Detail

IlpSlotSizesSAXInfo

public IlpSlotSizesSAXInfo()
Method Detail

getSAXHandler

public 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.

Specified by:
getSAXHandler in interface IlpSAXSerializable
Returns:
A handler for SAX events.
Internal method or field: do not use!

output

public 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.

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


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