public class FndXmlBuffer
extends java.lang.Object
This is a framework internal class! Backward compatibility is not guaranteed.
Constructor and Description |
---|
FndXmlBuffer(java.lang.String defaultNamespace)
Creates a new FndXmlBuffer that writes to an internal FndXmlWriter.
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(java.lang.String name,
FndXmlElementAttributeList attributes)
Adds a simple element to the document.
|
void |
addElement(java.lang.String name,
java.lang.String attrName,
java.lang.String attrValue)
Adds a simple element with a single attribute to the document.
|
void |
addElement(java.lang.String name,
java.lang.String attr1Name,
java.lang.String attr1Value,
java.lang.String attr2Name,
java.lang.String attr2Value)
Adds a simple element with two attributes to the document.
|
void |
addHeaderElement(java.lang.String value)
Adds a header element to the document.
|
void |
addSimpleElement(java.lang.String name)
Adds a simple element to the document.
|
void |
addSimpleElement(java.lang.String name,
java.lang.String value)
Adds a simple element to the document.
|
void |
addWsdlDocumentation(java.lang.String termDef,
java.lang.String definition)
Add documentation tag to the XML document.
|
void |
append(java.lang.String s)
Appends a XML formatted string to the document.
|
void |
appendXml(byte[] data)
Append UTF-8 encoded XML text to the document.
|
void |
close()
Closes this XML buffer and its underlying XML writer.
|
void |
endElement()
Adds an end element to the document.
|
byte[] |
getBytes()
Return byte representation the XML document.
|
java.lang.StringBuffer |
getText()
Return a string buffer with the text of the XML document.
|
void |
startElement(java.lang.String name)
Adds a start element to the document.
|
void |
startElement(java.lang.String name,
FndXmlElementAttributeList attributes)
Adds a start element to the document.
|
void |
startElement(java.lang.String name,
java.lang.String attrName,
java.lang.String attrValue)
Adds a start element with a single attribute to the document.
|
void |
startElement(java.lang.String name,
java.lang.String attr1Name,
java.lang.String attr1Value,
java.lang.String attr2Name,
java.lang.String attr2Value)
Adds a start element with two attributes to the document.
|
public FndXmlBuffer(java.lang.String defaultNamespace) throws SystemException
SystemException
public void close() throws SystemException
SystemException
public void startElement(java.lang.String name, FndXmlElementAttributeList attributes)
name
- the name of the element.attributes
- a FndXmlElementAttributeList object with name-value pairs constituting
the element's attributes.public void startElement(java.lang.String name, java.lang.String attrName, java.lang.String attrValue)
name
- the name of the element.attrName
- the name of the single attributeattrValue
- the value for the attribute abovepublic void startElement(java.lang.String name, java.lang.String attr1Name, java.lang.String attr1Value, java.lang.String attr2Name, java.lang.String attr2Value)
name
- the name of the element.attr1Name
- the name of the first attributeattr1Value
- the value for the first attributeattr2Name
- the name of the second attributeattr2Value
- the value for the second attributepublic void startElement(java.lang.String name)
name
- the name of the element.public void endElement()
public void addSimpleElement(java.lang.String name, java.lang.String value)
name
- the name of the element.value
- the text value for the elementpublic void addSimpleElement(java.lang.String name)
name
- the name of the element.public void addHeaderElement(java.lang.String value)
value
- the text value for the elementpublic void addElement(java.lang.String name, FndXmlElementAttributeList attributes)
name
- the name of the element.attributes
- a FndXmlElementAttributeList object with name-value pairs constituting
the element's attributes.public void addElement(java.lang.String name, java.lang.String attrName, java.lang.String attrValue)
name
- the name of the element.attrName
- the name of the single attributeattrValue
- the value for the attribute abovepublic void addElement(java.lang.String name, java.lang.String attr1Name, java.lang.String attr1Value, java.lang.String attr2Name, java.lang.String attr2Value)
name
- the name of the element.attr1Name
- the name of the first attributeattr1Value
- the value for the first attributeattr2Name
- the name of the second attributeattr2Value
- the value for the second attributepublic void append(java.lang.String s)
s
- string to appendpublic void appendXml(byte[] data)
data
- array of bytes to appendpublic java.lang.StringBuffer getText()
public byte[] getBytes() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public void addWsdlDocumentation(java.lang.String termDef, java.lang.String definition) throws ParseException
termDef
- term definition pathdefinition
- technical descriptionParseException