Class XmlAbstractWidgetVisitor

java.lang.Object
org.apache.ofbiz.widget.model.XmlAbstractWidgetVisitor
Direct Known Subclasses:
XmlWidgetActionVisitor, XmlWidgetConditionVisitor, XmlWidgetFieldVisitor, XmlWidgetVisitor

public abstract class XmlAbstractWidgetVisitor extends Object
Abstract XML widget visitor.
  • Constructor Details

    • XmlAbstractWidgetVisitor

      public XmlAbstractWidgetVisitor(Appendable writer)
  • Method Details

    • getWriter

      public Appendable getWriter()
      Gets writer.
      Returns:
      the writer
    • visitAttribute

      protected void visitAttribute(String attributeName, Boolean attributeValue) throws Exception
      Visit attribute.
      Parameters:
      attributeName - the attribute name
      attributeValue - the attribute value
      Throws:
      Exception - the exception
    • visitAttribute

      protected void visitAttribute(String attributeName, FlexibleMapAccessor<?> attributeValue) throws Exception
      Visit attribute.
      Parameters:
      attributeName - the attribute name
      attributeValue - the attribute value
      Throws:
      Exception - the exception
    • visitAttribute

      protected void visitAttribute(String attributeName, FlexibleStringExpander attributeValue) throws Exception
      Visit attribute.
      Parameters:
      attributeName - the attribute name
      attributeValue - the attribute value
      Throws:
      Exception - the exception
    • visitAttribute

      protected void visitAttribute(String attributeName, Integer attributeValue) throws Exception
      Visit attribute.
      Parameters:
      attributeName - the attribute name
      attributeValue - the attribute value
      Throws:
      Exception - the exception
    • visitAttribute

      protected void visitAttribute(String attributeName, String attributeValue) throws Exception
      Visit attribute.
      Parameters:
      attributeName - the attribute name
      attributeValue - the attribute value
      Throws:
      Exception - the exception
    • visitAutoEntityParameters

      protected void visitAutoEntityParameters(CommonWidgetModels.AutoEntityParameters autoEntityParameters) throws Exception
      Throws:
      Exception
    • visitAutoServiceParameters

      protected void visitAutoServiceParameters(CommonWidgetModels.AutoServiceParameters autoServiceParameters) throws Exception
      Throws:
      Exception
    • visitImage

      protected void visitImage(CommonWidgetModels.Image image) throws Exception
      Visit image.
      Parameters:
      image - the image
      Throws:
      Exception - the exception
    • visitLink

      protected void visitLink(CommonWidgetModels.Link link) throws Exception
      Visit link.
      Parameters:
      link - the link
      Throws:
      Exception - the exception
    • visitLinkAttributes

      protected void visitLinkAttributes(CommonWidgetModels.Link link) throws Exception
      Visit link attributes.
      Parameters:
      link - the link
      Throws:
      Exception - the exception
    • visitModelWidget

      protected void visitModelWidget(ModelWidget widget) throws Exception
      Visit model widget.
      Parameters:
      widget - the widget
      Throws:
      Exception - the exception
    • visitParameters

      protected void visitParameters(Collection<CommonWidgetModels.Parameter> parameters) throws Exception
      Visit parameters.
      Parameters:
      parameters - the parameters
      Throws:
      Exception - the exception