public class CmsDecorationObject
extends java.lang.Object
It uses the information of a
to create the
pre- and postfix for a text decoration.CmsDecorationDefintion
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
MACRO_DECORATION
Macro for the decoration.
|
static java.lang.String |
MACRO_DECORATIONKEY
Macro for the decoration key.
|
static java.lang.String |
MACRO_LANGUAGE
Macro for the language.
|
static java.lang.String |
MACRO_LOCALE
Macro for the locale.
|
构造器和说明 |
---|
CmsDecorationObject()
Constructor, creates a new, empty decoration object.
|
CmsDecorationObject(java.lang.String decorationKey,
java.lang.String decoration,
CmsDecorationDefintion decDef,
java.util.Locale locale)
Constructor, creates a new decoration object with given values.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getContentDecoration(I_CmsDecoratorConfiguration config,
java.lang.String text,
java.lang.String contentLocale)
Gets the decorated content for this decoration object.
|
java.lang.String |
getDecoration()
Returns the decoration.
|
CmsDecorationDefintion |
getDecorationDefinition()
Returns the decorationDefinition.
|
java.lang.String |
getDecorationKey()
Returns the decorationKey.
|
java.lang.String |
toString() |
public static final java.lang.String MACRO_DECORATION
public static final java.lang.String MACRO_DECORATIONKEY
public static final java.lang.String MACRO_LANGUAGE
public static final java.lang.String MACRO_LOCALE
public CmsDecorationObject()
public CmsDecorationObject(java.lang.String decorationKey, java.lang.String decoration, CmsDecorationDefintion decDef, java.util.Locale locale)
decorationKey
- the decoration keydecoration
- the decoration for this decoration keydecDef
- the decoration defintion to be usedlocale
- the locale of this decoration objectpublic java.lang.String getContentDecoration(I_CmsDecoratorConfiguration config, java.lang.String text, java.lang.String contentLocale)
config
- the configuration usedtext
- the text to be decoratedcontentLocale
- the locale of the content to be decoratedpublic java.lang.String getDecoration()
public CmsDecorationDefintion getDecorationDefinition()
public java.lang.String getDecorationKey()
public java.lang.String toString()
toString
在类中 java.lang.Object
Object.toString()