public class CmsDecorationDefintion
extends java.lang.Object
构造器和说明 |
---|
CmsDecorationDefintion()
Constructor, creates a new empty CmsDecorationDefintion.
|
CmsDecorationDefintion(java.lang.String name,
java.lang.String preText,
java.lang.String postText,
java.lang.String preTextFirst,
java.lang.String postTextFirst,
boolean markFrist,
java.lang.String configurationFile)
Constructor, creates a new CmsDecorationDefintion with given values.
|
限定符和类型 | 方法和说明 |
---|---|
CmsDecorationBundle |
createDecorationBundle(CmsObject cms,
java.util.Locale locale)
Creates a CmsDecorationBundle of text decoration to be used by the decorator.
|
CmsDecorationBundle |
createDecorationBundle(java.util.List<CmsDecorationMap> decorationMaps,
java.util.Locale locale)
Creates a CmsDecorationBundle of text decoration to be used by the decorator based on a list of decoration maps.
|
java.lang.String |
getConfigurationFile()
Returns the configurationFile.
|
static java.util.List<java.lang.String> |
getDecorationDefinitionNames(CmsObject cms)
Returns all different decoration configuration names (like "abbr" or "acronym") that
are in the config file pointed to by module parameter "configfile".
|
java.lang.String |
getName()
Returns the name.
|
java.lang.String |
getPostText()
Returns the postText.
|
java.lang.String |
getPostTextFirst()
Returns the postTextFirst.
|
java.lang.String |
getPreText()
Returns the preText.
|
java.lang.String |
getPreTextFirst()
Returns the preTextFirst.
|
boolean |
isMarkFirst()
Returns the markFirst flag.
|
void |
setConfigurationFile(java.lang.String configurationFile)
Sets the configurationFile.
|
void |
setMarkFirst(boolean markFirst)
Sets the markFirst flag.
|
void |
setName(java.lang.String name)
Sets the name.
|
void |
setPostText(java.lang.String postText)
Sets the postText.
|
void |
setPostTextFirst(java.lang.String postTextFirst)
Sets the postTextFirst.
|
void |
setPreText(java.lang.String preText)
Sets the preText.
|
void |
setPreTextFirst(java.lang.String preTextFirst)
Sets the preTextFirst.
|
java.lang.String |
toString() |
public CmsDecorationDefintion()
public CmsDecorationDefintion(java.lang.String name, java.lang.String preText, java.lang.String postText, java.lang.String preTextFirst, java.lang.String postTextFirst, boolean markFrist, java.lang.String configurationFile)
name
- the name of the decoration defintinionpreText
- the preText to be usedpostText
- the postText to be usedpreTextFirst
- the preTextFirst to be usedpostTextFirst
- the postTextFirst to be usedmarkFrist
- the flag to use different decorations for the first occuranceconfigurationFile
- the name of the configuration filepublic static java.util.List<java.lang.String> getDecorationDefinitionNames(CmsObject cms) throws CmsException
cms
- needed to access the decoration definition XML contentCmsException
- if sth goes wrongpublic CmsDecorationBundle createDecorationBundle(CmsObject cms, java.util.Locale locale) throws CmsException
cms
- the CmsObjectlocale
- the locale to build the decoration bundle for. If no locale is given, a bundle of all locales is buildCmsException
- if something goes wrongpublic CmsDecorationBundle createDecorationBundle(java.util.List<CmsDecorationMap> decorationMaps, java.util.Locale locale)
decorationMaps
- the decoration maps to build the bundle fromlocale
- the locale to build the decoration bundle for. If no locale is given, a bundle of all locales is buildpublic java.lang.String getConfigurationFile()
public java.lang.String getName()
public java.lang.String getPostText()
public java.lang.String getPostTextFirst()
public java.lang.String getPreText()
public java.lang.String getPreTextFirst()
public boolean isMarkFirst()
public void setConfigurationFile(java.lang.String configurationFile)
configurationFile
- the configurationFile to setpublic void setMarkFirst(boolean markFirst)
markFirst
- the markFirst flag to setpublic void setName(java.lang.String name)
name
- the name to setpublic void setPostText(java.lang.String postText)
postText
- the postText to setpublic void setPostTextFirst(java.lang.String postTextFirst)
postTextFirst
- the postTextFirst to setpublic void setPreText(java.lang.String preText)
preText
- the preText to setpublic void setPreTextFirst(java.lang.String preTextFirst)
preTextFirst
- the preTextFirst to setpublic java.lang.String toString()
toString
在类中 java.lang.Object
Object.toString()