public class CmsXmlContentWidgetVisitor extends java.lang.Object implements I_CmsXmlContentValueVisitor
This implementation is needed when creating the html output of the xmlcontent editor
CmsXmlContentEditor.
| 构造器和说明 |
|---|
CmsXmlContentWidgetVisitor()
Creates a new widget collector node visitor.
|
CmsXmlContentWidgetVisitor(java.util.Locale locale)
Creates a new widget collector node visitor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.Locale |
getLocale()
Returns the locale to get the widgets from.
|
java.util.List<I_CmsWidget> |
getUniqueWidgets()
Returns the unique widgets that were found in the content.
|
java.util.Map<java.lang.String,I_CmsXmlContentValue> |
getValues()
Returns all simple values that were found in the content.
|
java.util.Map<java.lang.String,I_CmsWidget> |
getWidgets()
Returns all widgets that were found in the content.
|
void |
visit(I_CmsXmlContentValue value)
Visits the given value.
|
public CmsXmlContentWidgetVisitor()
public CmsXmlContentWidgetVisitor(java.util.Locale locale)
locale - the Locale to get the widgets frompublic java.util.Locale getLocale()
public java.util.List<I_CmsWidget> getUniqueWidgets()
public java.util.Map<java.lang.String,I_CmsXmlContentValue> getValues()
The map key is the complete xpath of the value.
public java.util.Map<java.lang.String,I_CmsWidget> getWidgets()
The map key is the complete xpath of the corresponding value.
public void visit(I_CmsXmlContentValue value)
I_CmsXmlContentValueVisitorvisit 在接口中 I_CmsXmlContentValueVisitorvalue - the value to visitI_CmsXmlContentValueVisitor.visit(org.opencms.xml.types.I_CmsXmlContentValue)