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, setParentcharacters, checkState, clearContent, clearState, error, fatalError, getContent, getState, ignoreUntil, log, logIgnoreElement, processSAXParseException, removeState, setState, throwSAXParseException, warningendDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDeclpublic 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 ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic 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 ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXException© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.