public class IlpSAXArrayHandler extends IlpAbstractChainedSAXHandler
Default SAX handler for arrays.
This class is used to retrieve the values of an array in an XML file or stream. It reads the following format:
[<value [isNull="true"|"false"] javaClass="Java class name">VVV</value>]*
Where isNull
is false
by defaulr and the
javaClass
is by default the class of the attribute.
VVV
can be anything, as long as it can be converted using the type converter
IlpDefaultTypeConverter
.
Constructor and Description |
---|
IlpSAXArrayHandler() |
Modifier and Type | Method and Description |
---|---|
void |
endElement(String namespaceURI,
String localName,
String qName)
Notifies that the end of an element is reached.
|
void |
readValue(IlpAbstractSAXHandler parent,
IlpSAXAttributeValueHandler.ResultHandler resultHandler,
Class targetClass,
IlpTypeConverter typeConverter) |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
Notifies the beginning of an element.
|
getLocator, getLogger, getParent, getXMLReader, setParent
characters, checkState, clearContent, clearState, error, fatalError, getContent, getState, ignoreUntil, log, logIgnoreElement, processSAXParseException, removeState, setState, throwSAXParseException, warning
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl
public void readValue(IlpAbstractSAXHandler parent, IlpSAXAttributeValueHandler.ResultHandler resultHandler, Class targetClass, IlpTypeConverter typeConverter)
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
null
XML attribute and
clears the content of the element.
If you redefine this method, make sure you always call this implementation.startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
resultHandler.setAttributeValue
method is called, and the parsing continues with the parent contentHandler
.
If you redefine this method, make sure you always call this implementation.endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.