|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Common interface for OpenCms XML content classes. Classes for each customized content type have to be implemtented.
| Method Summary | |
Object |
clone()
Creates a clone of this object. |
String |
getAbsoluteFilename()
Gets the absolute filename of the XML file represented by this content class |
String |
getFilename()
Gets a short filename (without path) of the XML file represented by this content class of the template file. |
String |
getXmlText()
Prints the XML parsed content to a String |
String |
getXmlText(Node n)
Prints the XML parsed content of a given node and its subnodes to a String |
void |
getXmlText(Writer out)
Prints the XML parsed content of this template file to the given Writer. |
void |
getXmlText(Writer out,
Node n)
Prints the XML parsed content of the given Node and its subnodes to the given Writer. |
void |
init(CmsObject cms,
CmsFile file)
Initialize the XML content class. |
void |
init(CmsObject cms,
Document content,
String filename)
Initialize the class with the given parsed XML DOM document. |
void |
init(CmsObject cms,
String filename)
Initialize the XML content class. |
A_CmsXmlContent |
readIncludeFile(String filename)
Parses the given file and stores it in the internal list of included files and appends the relevant data structures of the new file to its own structures. |
void |
write()
Writes the XML document back to the OpenCms system. |
| Method Detail |
public Object clone()
throws CloneNotSupportedException
CloneNotSupportedExceptionpublic String getAbsoluteFilename()
public String getFilename()
public String getXmlText()
public void getXmlText(Writer out)
out - Writer to print to.
public void getXmlText(Writer out,
Node n)
out - Writer to print to.n - Node that should be printed.public String getXmlText(Node n)
n - Node that should be printed.
public void init(CmsObject cms,
CmsFile file)
throws CmsException
cms - CmsObject Object for accessing resources.file - CmsFile object of the file to be loaded and parsed.
CmsException
public void init(CmsObject cms,
String filename)
throws CmsException
cms - CmsObject Object for accessing resources.filename - Filename of the file to be loaded.
CmsException
public void init(CmsObject cms,
Document content,
String filename)
throws CmsException
cms - CmsObject Object for accessing system resources.filename - OpenCms filename of the XML file.
CmsException
public A_CmsXmlContent readIncludeFile(String filename)
throws CmsException
CmsException
public void write()
throws CmsException
CmsException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||