Package nl.nn.adapterframework.xml
Class SaxElementBuilder
- java.lang.Object
-
- nl.nn.adapterframework.xml.SaxElementBuilder
-
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
SaxDocumentBuilder
public class SaxElementBuilder extends Object implements AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description SaxElementBuilder()
SaxElementBuilder(Writer writer)
SaxElementBuilder(String elementName)
SaxElementBuilder(String elementName, Writer writer)
SaxElementBuilder(String elementName, ContentHandler handler)
SaxElementBuilder(ContentHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SaxElementBuilder
addAttribute(String name, int value)
SaxElementBuilder
addAttribute(String name, String value)
SaxElementBuilder
addAttributes(Map<String,String> attributes)
void
addElement(String elementName)
void
addElement(String elementName, String value)
void
addElement(String elementName, String attributeName, String attributeValue, String value)
void
addElement(String elementName, Map<String,String> attributes)
void
addElement(String elementName, Map<String,String> attributes, String value)
void
addValue(char[] chars, int offset, int len)
SaxElementBuilder
addValue(String value)
void
close()
SaxElementBuilder
endElement()
ContentHandler
getHandler()
SaxElementBuilder
startElement(String elementName)
String
toString()
-
-
-
Constructor Detail
-
SaxElementBuilder
public SaxElementBuilder() throws SAXException
- Throws:
SAXException
-
SaxElementBuilder
public SaxElementBuilder(Writer writer) throws SAXException
- Throws:
SAXException
-
SaxElementBuilder
public SaxElementBuilder(ContentHandler handler) throws SAXException
- Throws:
SAXException
-
SaxElementBuilder
public SaxElementBuilder(String elementName) throws SAXException
- Throws:
SAXException
-
SaxElementBuilder
public SaxElementBuilder(String elementName, Writer writer) throws SAXException
- Throws:
SAXException
-
SaxElementBuilder
public SaxElementBuilder(String elementName, ContentHandler handler) throws SAXException
- Throws:
SAXException
-
-
Method Detail
-
addAttribute
public SaxElementBuilder addAttribute(String name, int value) throws SAXException
- Throws:
SAXException
-
addAttribute
public SaxElementBuilder addAttribute(String name, String value) throws SAXException
- Throws:
SAXException
-
addAttributes
public SaxElementBuilder addAttributes(Map<String,String> attributes) throws SAXException
- Throws:
SAXException
-
endElement
public SaxElementBuilder endElement() throws SAXException
- Throws:
SAXException
-
addValue
public SaxElementBuilder addValue(String value) throws SAXException
- Throws:
SAXException
-
addValue
public void addValue(char[] chars, int offset, int len) throws SAXException
- Throws:
SAXException
-
startElement
public SaxElementBuilder startElement(String elementName) throws SAXException
- Throws:
SAXException
-
addElement
public void addElement(String elementName) throws SAXException
- Throws:
SAXException
-
addElement
public void addElement(String elementName, Map<String,String> attributes) throws SAXException
- Throws:
SAXException
-
addElement
public void addElement(String elementName, String value) throws SAXException
- Throws:
SAXException
-
addElement
public void addElement(String elementName, Map<String,String> attributes, String value) throws SAXException
- Throws:
SAXException
-
addElement
public void addElement(String elementName, String attributeName, String attributeValue, String value) throws SAXException
- Throws:
SAXException
-
close
public void close() throws SAXException
- Specified by:
close
in interfaceAutoCloseable
- Throws:
SAXException
-
getHandler
public ContentHandler getHandler()
-
-