Package org.opencms.workplace.editors
Class CmsXmlContentWidgetVisitor
java.lang.Object
org.opencms.workplace.editors.CmsXmlContentWidgetVisitor
- All Implemented Interfaces:
I_CmsXmlContentValueVisitor
Visitor implementation that collects the different widgets for all visited values and all widgets for the found values.
This implementation is needed when creating the html output of the xmlcontent editor
CmsXmlContentEditor
.
- Since:
- 6.0.0
-
Constructor Summary
ConstructorDescriptionCreates a new widget collector node visitor.CmsXmlContentWidgetVisitor
(CmsObject cms, Locale locale) Creates a new widget collector node visitor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the locale to get the widgets from.Returns the unique widgets that were found in the content.Returns all simple values that were found in the content.Returns all widgets that were found in the content.void
visit
(I_CmsXmlContentValue value) Visits the given value.
-
Constructor Details
-
CmsXmlContentWidgetVisitor
Creates a new widget collector node visitor.- Parameters:
cms
- the CMS context
-
CmsXmlContentWidgetVisitor
Creates a new widget collector node visitor.- Parameters:
cms
- the CMS contextlocale
- the Locale to get the widgets from
-
-
Method Details
-
getLocale
Returns the locale to get the widgets from.- Returns:
- the locale to get the widgets from
-
getUniqueWidgets
Returns the unique widgets that were found in the content.- Returns:
- the unique widgets that were found in the content
-
getValues
Returns all simple values that were found in the content.The map key is the complete xpath of the value.
- Returns:
- all simple values that were found in the content
-
getWidgets
Returns all widgets that were found in the content.The map key is the complete xpath of the corresponding value.
- Returns:
- all widgets that were found in the content
-
visit
Description copied from interface:I_CmsXmlContentValueVisitor
Visits the given value.- Specified by:
visit
in interfaceI_CmsXmlContentValueVisitor
- Parameters:
value
- the value to visit- See Also:
-