|
WebObjects 5.4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webobjects.foundation.xml.NSXMLOutputFormat
public final class 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 void setEncoding(String encoding)
public boolean indenting()
public void setIndenting(boolean on)
on
- true if indentation should be onpublic String version()
public void setVersion(String version)
version
- the output method version, or nullpublic boolean omitXMLDeclaration()
public void setOmitXMLDeclaration(boolean omit)
omit
- true if XML declaration should be ommited
|
Last updated June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |