|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.opencms.template.A_CmsXmlContent
|
+--com.opencms.template.CmsXmlTemplateFile
|
+--com.opencms.workplace.CmsXmlWpTemplateFile
Content definition for Workplace template files.
| Field Summary |
| Fields inherited from class com.opencms.template.CmsXmlTemplateFile |
C_EDIT_TEMPLATE, C_TEMPLATE |
| Fields inherited from class com.opencms.template.A_CmsXmlContent |
C_ERR_NODATABLOCK, C_MINIMUM_CLASSNAME, C_PARAMTYPES_HANDLING_METHODS, C_PARAMTYPES_USER_METHODS, C_REGISTER_FIRST_RUN, C_REGISTER_MAIN_RUN, C_TEMPLATE_EXTENSION, C_TEMPLATEPATH, m_cms, m_firstRunTags, m_knownTags, m_mainProcessTags |
| Fields inherited from interface com.opencms.boot.I_CmsLogChannels |
C_FLEX_CACHE, C_FLEX_LOADER, C_LOGGING, C_MODULE_CRITICAL, C_MODULE_DEBUG, C_MODULE_INFO, C_OPENCMS_CACHE, C_OPENCMS_CRITICAL, C_OPENCMS_CRONSCHEDULER, C_OPENCMS_DEBUG, C_OPENCMS_ELEMENTCACHE, C_OPENCMS_INFO, C_OPENCMS_INIT, C_OPENCMS_POOL, C_OPENCMS_STATICEXPORT, C_OPENCMS_STREAMING, C_PREPROCESSOR_IS_LOGGING |
| Constructor Summary | |
CmsXmlWpTemplateFile()
Default constructor. |
|
CmsXmlWpTemplateFile(CmsObject cms,
CmsFile file)
Constructor for creating a new object containing the content of the given filename. |
|
CmsXmlWpTemplateFile(CmsObject cms,
String filename)
Constructor for creating a new object containing the content of the given filename. |
|
| Method Summary | |
static void |
clearcache()
Clears the internal language cache |
void |
clearStartup()
Clears the startup tag that can be used in workplace documents. |
void |
fastSetXmlData(String tag,
String data)
Fast method to replace a datablock. |
CmsXmlLanguageFile |
getLanguageFile()
Gets the actual instance of the language file. |
String |
getProcessedXmlDataValue(String tag)
Deprecated. Use getProcessedDataValue instead. |
String |
getProcessedXmlDataValue(String tag,
Object callingObject)
Deprecated. Use getProcessedDataValue instead. |
String |
getProcessedXmlDataValue(String tag,
Object callingObject,
Object userObj)
Deprecated. Use getProcessedDataValue instead. |
String |
getXmlDataValue(String tag)
Deprecated. Use getDataValue instead. is found for this key. |
String |
getXmlDocumentTagName()
Gets the expected tagname for the XML documents of this content type |
Object |
handleAnyTag(Element n,
Object callingObject,
Object userObj)
Handles any occurence of any special workplace XML tag like <BUTTON> or
<LABEL>. |
boolean |
hasXmlData(String tag)
Deprecated. Use hasData instead. |
void |
init(CmsObject cms,
CmsFile file)
Overridden init method of A_CmsXmlContent. |
void |
init(CmsObject cms,
String filename)
Overridden init method of A_CmsXmlContent. |
void |
removeXmlData(String tag)
Deprecated. Use removeData instead. |
void |
setXmlData(String tag,
String data)
Deprecated. Use setData instead. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CmsXmlWpTemplateFile()
throws CmsException
public CmsXmlWpTemplateFile(CmsObject cms,
CmsFile file)
throws CmsException
cms - CmsObject object for accessing system resources.
public CmsXmlWpTemplateFile(CmsObject cms,
String filename)
throws CmsException
cms - CmsObject object for accessing system resources.filename - Name of the body file that shoul be read.| Method Detail |
public static void clearcache()
public void clearStartup()
public void fastSetXmlData(String tag,
String data)
USE WITH CARE!
Using this method only if
null
tag - Key for this datablock.data - String to be put in the datablock.public CmsXmlLanguageFile getLanguageFile()
public String getProcessedXmlDataValue(String tag)
throws CmsException
tag - Key for the datablocks hashtable.
CmsException
public String getProcessedXmlDataValue(String tag,
Object callingObject)
throws CmsException
tag - Key for the datablocks hashtable.callingObject - Object that should be used to look up user methods.
CmsException
public String getProcessedXmlDataValue(String tag,
Object callingObject,
Object userObj)
throws CmsException
The userObj Object is passed to all called user methods. By using this, the initiating class can pass customized data to its methods.
tag - Key for the datablocks hashtable.callingObject - Object that should be used to look up user methods.userObj - any object that should be passed to user methods
CmsException
public String getXmlDataValue(String tag)
throws CmsException
tag - Key for the datablocks hashtable.
CmsExceptionpublic String getXmlDocumentTagName()
getXmlDocumentTagName in class CmsXmlTemplateFile
public Object handleAnyTag(Element n,
Object callingObject,
Object userObj)
throws CmsException
<BUTTON> or
<LABEL>. Looks up the appropriate workplace element class for the current
tag and calls the handleSpecialWorkplaceTag() method of this class.
Every workplace element class used by this method has to implement the interface
I_CmsWpElement
n - XML element containing the current special workplace tag.callingObject - reference to the calling object.userObj - hashtable containig all user parameters.
CmsExceptionI_CmsWpElement
public boolean hasXmlData(String tag)
throws CmsException
CmsException
public void init(CmsObject cms,
CmsFile file)
throws CmsException
init in interface I_CmsXmlContentinit in class A_CmsXmlContentcms - 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
init in interface I_CmsXmlContentinit in class A_CmsXmlContentcms - CmsObject Object for accessing resources.
CmsExceptionpublic void removeXmlData(String tag)
tag - Key of the datablock to delete.
public void setXmlData(String tag,
String data)
tag - Key for this datablock.data - String to be put in the datablock.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||