|
WebObjects 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.webobjects.foundation.xml.NSXMLOutputFormat
This simple class specifies an output format to control the XML output and is based on the XSLT specification for output format.
Constructor Summary | |
NSXMLOutputFormat()
Creates an output format that has the following properties: indentation is on UTF-8 encoding XML 1.0 version not a standalone document XML declaration is written out |
|
NSXMLOutputFormat(boolean on)
Creates an output format that has the same properties as an default NSXMLOutputFormat except that for the identation property. |
Method Summary | |
String |
encoding()
Returns the specified encoding. |
boolean |
indenting()
Returns true if indentation was specified. |
boolean |
omitXMLDeclaration()
Returns true if the XML document declaration should be ommited. |
void |
setEncoding(String encoding)
Sets the encoding for this output method. |
void |
setIndenting(boolean on)
Sets the indentation on and off. |
void |
setOmitXMLDeclaration(boolean omit)
Sets XML declaration omitting on and off. |
void |
setVersion(String version)
Sets the version for this XML output. |
String |
version()
Returns the version for this output method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NSXMLOutputFormat()
public NSXMLOutputFormat(boolean on)
on
- true if indentation should be onMethod Detail |
public String encoding()
public boolean indenting()
public boolean omitXMLDeclaration()
public void setEncoding(String encoding)
public void setIndenting(boolean on)
on
- true if indentation should be onpublic void setOmitXMLDeclaration(boolean omit)
true
- if XML declaration should be ommitedpublic void setVersion(String version)
the
- output method version, or nullpublic String version()
|
Last updated Fri Feb 21 13:15:00 PST 2003. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |