public class IlpShelfItemPositionSAXInfo extends Object implements IlpSAXSerializable
XML serialization class for IlpShelfItemPosition
.
This class reads and writes an IlpShelfItemPosition
in
the following format:
<xIndex>III</xIndex> <yIndex>III</yIndex> <xSpan>DDD</xSpan> <ySpan>DDD</ySpan>
Where III
stands for an integer number
(an int
), and DDD
stands for a
double number (a double
).
The order of the elements is not taken into account.
If xIndex
or yIndex
is missing,
the value of the missing element is considered as being 0; if
xSpan
or ySpan
is missing, the value of
the missing element is considered as being 1.0.
Modifier and Type | Class and Description |
---|---|
static class |
IlpShelfItemPositionSAXInfo.IlpSAXShelfItemHandler
The SAX handler
|
EMPTY_ATTRS
Constructor and Description |
---|
IlpShelfItemPositionSAXInfo() |
Modifier and Type | Method and Description |
---|---|
IlpSAXAttributeValueHandler |
getSAXHandler()
Returns a SAX handler capable of reading the attribute.
|
void |
output(Object value,
IlpTypeConverter typeConverter,
ContentHandler outputHandler)
Writes the
value to a SAX ContentHandler. |
public IlpSAXAttributeValueHandler getSAXHandler()
getSAXHandler
in interface IlpSAXSerializable
public void output(Object value, IlpTypeConverter typeConverter, ContentHandler outputHandler) throws SAXException
value
to a SAX ContentHandler.
The method translates the object to SAX ContentHandler method calls.output
in interface IlpSAXSerializable
value
- The object to write.typeConverter
- The type converter that may be needed to
translate values to strings.outputHandler
- The SAX ContentHandler used by this method.SAXException
IlpTypeConverter.createStringValue(Class,Object)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.