|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- public interface GOMDocument<T extends GOMElement>
GOMDocument acts as a container for GOMElements to render the containing GOMElement as a valid xml document. This class renderes the
<?xml version="1.0" encoding="UTF-8"?>header to the outputstream before the containing element will be rendered.
Method Summary | |
---|---|
String |
getCharacterEncoding()
Gets the xml charset encoding |
T |
getRootElement()
Getter for the root element of the xml e.g GOMDocument |
String |
getVersion()
Gets the xml version |
void |
setCharacterEncoding(String aEncoding)
Sets the xml charset encoding |
void |
setRootElement(T aRootElement)
setter for the root element of the xml e.g GOMDocument |
void |
setVersion(String aVersion)
Sets the xml version |
void |
writeAtomOutput(GOMOutputWriter aStreamWriter)
Generates a complete xml document starting with the header followed by the output of the specified root element in the ATOM 1.0 formate. |
void |
writeRssOutput(GOMOutputWriter aStreamWriter)
Generates a complete xml document starting with the header followed by the output of the specified root element in the RSS 2.0 formate. |
Method Detail |
---|
void setRootElement(T aRootElement)
aRootElement
- -
the root element to setT getRootElement()
void setVersion(String aVersion)
aVersion
- -
the version stringString getVersion()
String getCharacterEncoding()
void setCharacterEncoding(String aEncoding)
aEncoding
- -
the charset encoding to setvoid writeAtomOutput(GOMOutputWriter aStreamWriter) throws javax.xml.stream.XMLStreamException
aStreamWriter
- -
the GOMOutputWriter
implementation to write the output
javax.xml.stream.XMLStreamException
- -
if the GOMOutputWriter
throws an exceptionvoid writeRssOutput(GOMOutputWriter aStreamWriter) throws javax.xml.stream.XMLStreamException
aStreamWriter
- -
the GOMOutputWriter
implementation to write the output
javax.xml.stream.XMLStreamException
- -
if the GOMOutputWriter
throws an exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |