Package org.apache.ofbiz.widget.model
Class XmlWidgetConditionVisitor
- java.lang.Object
-
- org.apache.ofbiz.widget.model.XmlAbstractWidgetVisitor
-
- org.apache.ofbiz.widget.model.XmlWidgetConditionVisitor
-
- All Implemented Interfaces:
ModelConditionVisitor
public class XmlWidgetConditionVisitor extends XmlAbstractWidgetVisitor implements ModelConditionVisitor
An object that generates XML from widget models. The generated XML is unformatted - if you want to "pretty print" the XML, then use a transformer.
-
-
Field Summary
-
Fields inherited from class org.apache.ofbiz.widget.model.XmlAbstractWidgetVisitor
writer
-
-
Constructor Summary
Constructors Constructor Description XmlWidgetConditionVisitor(java.lang.Appendable writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visit(AbstractModelCondition.And and)
void
visit(AbstractModelCondition.IfCompare ifCompare)
void
visit(AbstractModelCondition.IfCompareField ifCompareField)
void
visit(AbstractModelCondition.IfEmpty ifEmpty)
void
visit(AbstractModelCondition.IfEntityPermission ifEntityPermission)
void
visit(AbstractModelCondition.IfHasPermission ifHasPermission)
void
visit(AbstractModelCondition.IfRegexp ifRegexp)
void
visit(AbstractModelCondition.IfServicePermission ifServicePermission)
void
visit(AbstractModelCondition.IfValidateMethod ifValidateMethod)
void
visit(AbstractModelCondition.Not not)
void
visit(AbstractModelCondition.Or or)
void
visit(AbstractModelCondition.Xor xor)
void
visit(ModelMenuCondition modelMenuCondition)
void
visit(ModelScreenCondition.IfEmptySection ifEmptySection)
void
visit(ModelTreeCondition modelTreeCondition)
-
Methods inherited from class org.apache.ofbiz.widget.model.XmlAbstractWidgetVisitor
visitAttribute, visitAttribute, visitAttribute, visitAttribute, visitAttribute, visitAutoEntityParameters, visitAutoServiceParameters, visitImage, visitLink, visitLinkAttributes, visitModelWidget, visitParameters
-
-
-
-
Method Detail
-
visit
public void visit(AbstractModelCondition.And and) throws java.lang.Exception
- Specified by:
visit
in interfaceModelConditionVisitor
- Throws:
java.lang.Exception
-
visit
public void visit(AbstractModelCondition.IfCompare ifCompare) throws java.lang.Exception
- Specified by:
visit
in interfaceModelConditionVisitor
- Throws:
java.lang.Exception
-
visit
public void visit(AbstractModelCondition.IfCompareField ifCompareField) throws java.lang.Exception
- Specified by:
visit
in interfaceModelConditionVisitor
- Throws:
java.lang.Exception
-
visit
public void visit(AbstractModelCondition.IfEmpty ifEmpty) throws java.lang.Exception
- Specified by:
visit
in interfaceModelConditionVisitor
- Throws:
java.lang.Exception
-
visit
public void visit(ModelScreenCondition.IfEmptySection ifEmptySection) throws java.lang.Exception
- Specified by:
visit
in interfaceModelConditionVisitor
- Throws:
java.lang.Exception
-
visit
public void visit(AbstractModelCondition.IfEntityPermission ifEntityPermission) throws java.lang.Exception
- Specified by:
visit
in interfaceModelConditionVisitor
- Throws:
java.lang.Exception
-
visit
public void visit(AbstractModelCondition.IfHasPermission ifHasPermission) throws java.lang.Exception
- Specified by:
visit
in interfaceModelConditionVisitor
- Throws:
java.lang.Exception
-
visit
public void visit(AbstractModelCondition.IfRegexp ifRegexp) throws java.lang.Exception
- Specified by:
visit
in interfaceModelConditionVisitor
- Throws:
java.lang.Exception
-
visit
public void visit(AbstractModelCondition.IfServicePermission ifServicePermission) throws java.lang.Exception
- Specified by:
visit
in interfaceModelConditionVisitor
- Throws:
java.lang.Exception
-
visit
public void visit(AbstractModelCondition.IfValidateMethod ifValidateMethod) throws java.lang.Exception
- Specified by:
visit
in interfaceModelConditionVisitor
- Throws:
java.lang.Exception
-
visit
public void visit(ModelMenuCondition modelMenuCondition) throws java.lang.Exception
- Specified by:
visit
in interfaceModelConditionVisitor
- Throws:
java.lang.Exception
-
visit
public void visit(ModelTreeCondition modelTreeCondition) throws java.lang.Exception
- Specified by:
visit
in interfaceModelConditionVisitor
- Throws:
java.lang.Exception
-
visit
public void visit(AbstractModelCondition.Not not) throws java.lang.Exception
- Specified by:
visit
in interfaceModelConditionVisitor
- Throws:
java.lang.Exception
-
visit
public void visit(AbstractModelCondition.Or or) throws java.lang.Exception
- Specified by:
visit
in interfaceModelConditionVisitor
- Throws:
java.lang.Exception
-
visit
public void visit(AbstractModelCondition.Xor xor) throws java.lang.Exception
- Specified by:
visit
in interfaceModelConditionVisitor
- Throws:
java.lang.Exception
-
-