|
Collaboration API Documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.filenet.bso.api.util.BsoXMLWriter
The BsoXMLWriter
class provides helper methods to produce well-formed XML output.
BsoGenericSAXHandler
,
BsoXMLBinder
,
BsoXMLMarshal
,
BsoXMLUnmarshal
,
BsoXPathDef
Method Summary | |
static void |
beginElement(java.io.BufferedWriter out,
java.lang.String name,
boolean attributesToFollow)
Writes out the beginning of an XML element to a BufferedWriter . |
static void |
endAttributes(java.io.BufferedWriter out,
boolean endElement)
If an XML element was begun by calling beginElement(out, name, true) ,
call this to write out the closing part of the begin element tag. |
static void |
endElement(java.io.BufferedWriter out,
java.lang.String name)
Writes an end XML element tag to a BufferedWriter . |
static void |
write(java.io.BufferedWriter out,
java.util.List list)
Writes all objects in a List to a BufferedWriter . |
static void |
write(java.io.BufferedWriter out,
java.lang.Object obj)
Writes an object to a BufferedWriter . |
static void |
write(java.io.BufferedWriter out,
java.lang.String line)
Writes an XML string to a BufferedWriter . |
static void |
writeAttribute(java.io.BufferedWriter out,
java.lang.String name,
boolean value)
Writes an XML attribute name and boolean value to a BufferedWriter . |
static void |
writeAttribute(java.io.BufferedWriter out,
java.lang.String name,
java.lang.Integer value)
Writes an XML attribute name and integer value to a BufferedWriter . |
static void |
writeAttribute(java.io.BufferedWriter out,
java.lang.String name,
java.lang.String value)
Writes an XML attribute name and string value to a BufferedWriter . |
static void |
writeElement(java.io.BufferedWriter out,
java.lang.String name,
boolean value)
Writes a simple XML boolean element to a BufferedWriter . |
static void |
writeElement(java.io.BufferedWriter out,
java.lang.String name,
java.lang.Integer value)
Writes a simple XML integer element to a BufferedWriter . |
static void |
writeElement(java.io.BufferedWriter out,
java.lang.String name,
java.lang.String value)
Writes a simple XML element to a BufferedWriter . |
static void |
writeElementIfAny(java.io.BufferedWriter out,
java.lang.String name,
java.lang.String value)
Writes a simple XML element to a BufferedWriter . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void write(java.io.BufferedWriter out, java.lang.String line)
BufferedWriter
.
out
- An output stream object.
line
- A String
containing XML content.public static void write(java.io.BufferedWriter out, java.util.List list)
BufferedWriter
.
out
- An output stream object.
list
- A List containing objects that implement the BsoXMLMarshal
interface.public static void write(java.io.BufferedWriter out, java.lang.Object obj)
BufferedWriter
.
out
- An output stream object.
obj
- An Object
that implements the BsoXMLMarshal
interface.public static void writeElementIfAny(java.io.BufferedWriter out, java.lang.String name, java.lang.String value)
BufferedWriter
. This method
does not output the element if the value
parameter is null
.
out
- An output stream object.
name
- The name of the XML element.
value
- The value of the XML element.public static void writeElement(java.io.BufferedWriter out, java.lang.String name, java.lang.String value)
BufferedWriter
. If the
value
parameter is null
, this method closes the
element tag.
out
- An output stream object.
name
- The name of the XML element.
value
- The value of the XML element.public static void writeElement(java.io.BufferedWriter out, java.lang.String name, boolean value)
boolean
element to a BufferedWriter
.
out
- An output stream object.
name
- The name of the XML element.
value
- The value of the XML element.public static void writeElement(java.io.BufferedWriter out, java.lang.String name, java.lang.Integer value)
integer
element to a BufferedWriter
.
out
- An output stream object.
name
- The name of the XML element.
value
- The value of the XML element.public static void beginElement(java.io.BufferedWriter out, java.lang.String name, boolean attributesToFollow)
BufferedWriter
.
out
- An output stream object.
name
- The name of the XML element.
attributesToFollow
- If true, doesn't write out the closing part
of the element tag, leaving room for attributes
to be written. You must call endAttributes()
to write out the closing part of the begin element
tag.public static void endAttributes(java.io.BufferedWriter out, boolean endElement)
beginElement(out, name, true)
,
call this to write out the closing part of the begin element tag.
out
- An output stream object.
endElement
- If true, ends the element with a closing slash, "/",
to mark that the element has no additional content.public static void endElement(java.io.BufferedWriter out, java.lang.String name)
BufferedWriter
.
out
- An output stream object.
name
- The name of the XML element.public static void writeAttribute(java.io.BufferedWriter out, java.lang.String name, java.lang.String value)
BufferedWriter
.
If the value
parameter is null
, this method
does not write the attribute to the output stream object.
out
- An output stream object.
name
- The name of the XML attribute.
value
- The value of the XML attribute.public static void writeAttribute(java.io.BufferedWriter out, java.lang.String name, boolean value)
boolean
value to a BufferedWriter
.
out
- An output stream object.
name
- The name of the XML attribute.
value
- The value of the XML attribute.public static void writeAttribute(java.io.BufferedWriter out, java.lang.String name, java.lang.Integer value)
integer
value to a BufferedWriter
.
out
- An output stream object.
name
- The name of the XML attribute.
value
- The value of the XML attribute.
|
Collaboration API Documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |