Class CmsFormatterBeanParser
java.lang.Object
org.opencms.ade.configuration.formatters.CmsFormatterBeanParser
Parses formatter beans from formatter configuration XML contents.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Exception for the errors in the configuration file not covered by other exception types. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Node name.static final String
Node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Node name.static final String
Node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Content value node name.static final String
Node name.static final String
XML node name.static final String
Content value node name.static final String
Content value node name.static final String
Node name for the 'use meta mappings for normal elements' check box.static final String
Content value node name.static final String
Content value node name.static final String
The key for the setting display type. -
Constructor Summary
ConstructorDescriptionCmsFormatterBeanParser
(CmsObject cms, Map<CmsUUID, Map<CmsSharedSettingKey, CmsXmlContentProperty>> settingConfigs) Creates a new parser instance. -
Method Summary
Modifier and TypeMethodDescriptionparse
(CmsXmlContent content, String location, String id) Reads the formatter bean from the given XML content.static String
Creates an xpath from the given components.
-
Field Details
-
N_ALLOWS_SETTINGS_IN_EDITOR
Content value node name.- See Also:
-
N_ATTRIBUTE
Content value node name.- See Also:
-
N_AUTO_ENABLED
Content value node name.- See Also:
-
N_CHOICE_NEW_LINK
Content value node name.- See Also:
-
N_CONTAINER_TYPE
Content value node name.- See Also:
-
N_CSS_INLINE
Content value node name.- See Also:
-
N_CSS_LINK
Content value node name.- See Also:
-
N_DEFAULT
Content value node name.- See Also:
-
N_DEFAULT_CONTENT
Content value node name.- See Also:
-
N_DESCRIPTION
Content value node name.- See Also:
-
N_DETAIL
Content value node name.- See Also:
-
N_DISPLAY
Content value node name.- See Also:
-
N_ELEMENT
Content value node name.- See Also:
-
N_FORMATTER
Node name.- See Also:
-
N_FORMATTERS
Node name.- See Also:
-
N_GROUP
Content value node name.- See Also:
-
N_HEAD_INCLUDE_CSS
Content value node name.- See Also:
-
N_HEAD_INCLUDE_JS
Content value node name.- See Also:
-
N_INCLUDE_SETTINGS
Content value node name.- See Also:
-
N_JAVASCRIPT_INLINE
Content value node name.- See Also:
-
N_JAVASCRIPT_LINK
Content value node name.- See Also:
-
N_JSP
Content value node name.- See Also:
-
N_KEY
Content value node name.- See Also:
-
N_KEY_ALIAS
Content value node name.- See Also:
-
N_MACRO
Node name.- See Also:
-
N_MACRO_NAME
Node name.- See Also:
-
N_MATCH
Content value node name.- See Also:
-
N_MAX_WIDTH
Content value node name.- See Also:
-
N_META_MAPPING
Content value node name.- See Also:
-
N_NESTED_FORMATTER_SETTINGS
Content value node name.- See Also:
-
N_NICE_NAME
Content value node name.- See Also:
-
N_ORDER
Content value node name.- See Also:
-
N_PARAMETER
Content value node name.- See Also:
-
N_PLACEHOLDER_MACRO
Content value node name.- See Also:
-
N_PLACEHOLDER_STRING_TEMPLATE
Node name.- See Also:
-
N_PLUGIN
Content value node name.- See Also:
-
N_PREVIEW
Content value node name.- See Also:
-
N_RANK
Content value node name.- See Also:
-
N_SEARCH_CONTENT
Content value node name.- See Also:
-
N_SETTING
Content value node name.- See Also:
-
N_STRICT_CONTAINERS
Content value node name.- See Also:
-
N_STRING_TEMPLATE
Node name.- See Also:
-
N_TARGET
XML node name.- See Also:
-
N_TYPE
Content value node name.- See Also:
-
N_TYPES
Content value node name.- See Also:
-
N_USE_META_MAPPINGS_FOR_NORMAL_ELEMENTS
Node name for the 'use meta mappings for normal elements' check box.- See Also:
-
N_VALUE
Content value node name.- See Also:
-
N_WIDTH
Content value node name.- See Also:
-
SETTING_DISPLAY_TYPE
The key for the setting display type.- See Also:
-
-
Constructor Details
-
CmsFormatterBeanParser
public CmsFormatterBeanParser(CmsObject cms, Map<CmsUUID, Map<CmsSharedSettingKey, CmsXmlContentProperty>> settingConfigs) Creates a new parser instance.A new parser instance should be created for every formatter configuration you want to parse.
- Parameters:
cms
- the CMS context to use for parsingsettingConfigs
- the additional setting configurations used for includes
-
-
Method Details
-
path
Creates an xpath from the given components.- Parameters:
components
- the xpath componentns- Returns:
- the composed xpath
-
parse
public I_CmsFormatterBean parse(CmsXmlContent content, String location, String id) throws CmsException, CmsFormatterBeanParser.ParseException Reads the formatter bean from the given XML content.- Parameters:
content
- the formatter configuration XML contentlocation
- a string indicating the location of the configurationid
- the id to use as the formatter id- Returns:
- the parsed formatter bean
- Throws:
CmsFormatterBeanParser.ParseException
- if parsing goes wrongCmsException
- if something else goes wrong
-