Class ErrorCodes

java.lang.Object
com.day.cq.wcm.designimporter.ErrorCodes

public class ErrorCodes extends Object
This file contains all the error codes for design importer component.
  • Field Details

    • MULTIPLE_DIV_TAGS

      public static final String MULTIPLE_DIV_TAGS
      Error code representing presence of multiple canvas div tags. Only one canvas div tag per HTML is allowed.
      See Also:
    • PARSYS_NESTED_TAG

      public static final String PARSYS_NESTED_TAG
      Error code representing stray html content within a parsys component div tag. A parsys component div tag must only contain nested component div tags, nothing else.
      See Also:
    • NESTED_CANVAS_COMPONENT

      public static final String NESTED_CANVAS_COMPONENT
      Error code representing presence of canvas div tag nested within another canvas div tag. Only one canvas div tag is supported.
      See Also:
    • SINGLE_IMG_IMAGE

      public static final String SINGLE_IMG_IMAGE
      Error code representing presence of stray html tag inside of an image component div tag. The image component div tag must only contain a valid img tag.
      See Also:
    • FLOATING_TEXT_SINGLE_IMG_IMAGE

      public static final String FLOATING_TEXT_SINGLE_IMG_IMAGE
      Error code representing presence of stray text inside of an image component div tag. The image component div tag must only contain a valid img tag.
      See Also:
    • ABSOLUTE_URL_NOT_SUPPORTED

      public static final String ABSOLUTE_URL_NOT_SUPPORTED
      Error code representing presence of an absolute url inside of an image component div tag. Only relative images are supported.
      See Also:
    • FREE_FLOATING_TEXT_SCRIPT_TAG

      public static final String FREE_FLOATING_TEXT_SCRIPT_TAG
      Error code representing presence of free floating text within a script tag with src attribute defined. Note that inline scripts are supported, just the src attribute should be omitted.
      See Also:
    • NESTED_COMPONENT_DIV_TAG_ENCOUNTERED_INSIDE_TEXT_COMPONENT_DIV_TAG

      public static final String NESTED_COMPONENT_DIV_TAG_ENCOUNTERED_INSIDE_TEXT_COMPONENT_DIV_TAG
      Error code representing presence of a component div tag nested within a text component div tag. The text component div tag only supports free floating text, markup or a mix of those two.
      See Also:
    • TITLE_EXACTLY_ONE_HEADING_TAG

      public static final String TITLE_EXACTLY_ONE_HEADING_TAG
      Error code representing non-conformance of title component div tag. The title component div tag must contain exactly one heading tag and no free floating text
      See Also:
    • TITLE_COMPONENT_UNKNOWN_TAG

      public static final String TITLE_COMPONENT_UNKNOWN_TAG
      Error code representing nested tags, other than the heading tags, inside of the title component div tag
      See Also:
    • TITLE_COMPONENT_ONE_HEADING_TAG

      public static final String TITLE_COMPONENT_ONE_HEADING_TAG
      Error code representing presence of multiple heading tags within the title component div tag. The title component div tag must contain exactly one heading tag.
      See Also:
  • Constructor Details

    • ErrorCodes

      public ErrorCodes()