public class CmsTemplateContext
extends java.lang.Object
| 构造器和说明 |
|---|
CmsTemplateContext(java.lang.String key,
java.lang.String path,
CmsMessageContainer container,
I_CmsTemplateContextProvider provider)
Constructor.
|
CmsTemplateContext(java.lang.String key,
java.lang.String path,
I_CmsMessageContainer container,
I_CmsTemplateContextProvider provider,
java.util.Collection<CmsClientVariant> clientVariants,
boolean forced)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.Map<java.lang.String,CmsClientVariant> |
getClientVariants()
Gets the map of client variants.
|
java.lang.String |
getKey()
Gets the internal name used as a key.
|
java.lang.String |
getLocalizedName(java.util.Locale locale)
Gets the localized name for a given locale.
|
I_CmsMessageContainer |
getMessageContainer()
Gets the message container for the user-readable name.
|
I_CmsTemplateContextProvider |
getProvider()
Gets the template context provider which produced this template context.
|
java.lang.String |
getTemplatePath()
Gets the path to the template.
|
boolean |
isForced()
Return true if the template context was not automatically determined.
|
java.lang.String |
toString() |
public CmsTemplateContext(java.lang.String key,
java.lang.String path,
CmsMessageContainer container,
I_CmsTemplateContextProvider provider)
key - the internal namepath - the template pathcontainer - the message container for the nameprovider - the template context providerpublic CmsTemplateContext(java.lang.String key,
java.lang.String path,
I_CmsMessageContainer container,
I_CmsTemplateContextProvider provider,
java.util.Collection<CmsClientVariant> clientVariants,
boolean forced)
key - the internal namepath - the template pathcontainer - the message container for the nameprovider - the template context providerclientVariants - the client variantsforced - true if the template context is forced to a specific value instead of automatically determinedpublic java.util.Map<java.lang.String,CmsClientVariant> getClientVariants()
Client variants are specialized variants of a template context which are only used by the container page editor for preview purposes.
public java.lang.String getKey()
public java.lang.String getLocalizedName(java.util.Locale locale)
locale - the locale for which we want the namepublic I_CmsMessageContainer getMessageContainer()
public I_CmsTemplateContextProvider getProvider()
public java.lang.String getTemplatePath()
public boolean isForced()
public java.lang.String toString()
toString 在类中 java.lang.ObjectObject.toString()