Class SaxElementBuilder
java.lang.Object
org.frankframework.xml.SaxElementBuilder
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
SaxDocumentBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionSaxElementBuilder(@Nullable String elementName) SaxElementBuilder(@Nullable String elementName, ContentHandler handler) SaxElementBuilder(@NonNull ContentHandler handler) -
Method Summary
Modifier and TypeMethodDescriptionaddAttribute(String name, int value) addAttribute(String name, String value) addAttributes(@Nullable Map<String, String> attributes) voidaddElement(@Nullable String elementName) voidaddElement(@Nullable String elementName, @Nullable String value) voidaddElement(@Nullable String elementName, @Nullable String attributeName, @Nullable String attributeValue, @Nullable String value) voidaddElement(@Nullable String elementName, @Nullable Map<String, String> attributes) voidaddElement(@Nullable String elementName, @Nullable Map<String, String> attributes, @Nullable String value) voidaddValue(char[] chars, int offset, int len) voidclose()@Nullable SaxElementBuilder@NonNull SaxElementBuilderstartElement(@Nullable String elementName)
-
Constructor Details
-
SaxElementBuilder
-
SaxElementBuilder
-
SaxElementBuilder
-
-
Method Details
-
addAttribute
@Contract("_, _ -> this") public SaxElementBuilder addAttribute(String name, int value) throws SAXException - Throws:
SAXException
-
addAttribute
@Contract("_, _ -> this") public SaxElementBuilder addAttribute(String name, String value) throws SAXException - Throws:
SAXException
-
addAttributes
@Contract("_ -> this") public SaxElementBuilder addAttributes(@Nullable Map<String, String> attributes) throws SAXException- Throws:
SAXException
-
endElement
- Throws:
SAXException
-
addValue
@Contract("_ -> this") public SaxElementBuilder addValue(@Nullable String value) throws SAXException - Throws:
SAXException
-
addValue
- Throws:
SAXException
-
startElement
- Throws:
SAXException
-
addElement
- Throws:
SAXException
-
addElement
public void addElement(@Nullable String elementName, @Nullable Map<String, String> attributes) throws SAXException- Throws:
SAXException
-
addElement
- Throws:
SAXException
-
addElement
public void addElement(@Nullable String elementName, @Nullable Map<String, String> attributes, @Nullable String value) throws SAXException- Throws:
SAXException
-
addElement
public void addElement(@Nullable String elementName, @Nullable String attributeName, @Nullable String attributeValue, @Nullable String value) throws SAXException - Throws:
SAXException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
SAXException
-