Class DocumentLimits

java.lang.Object
com.github.weisj.jsvg.parser.DocumentLimits

public class DocumentLimits extends Object
  • Field Details

    • DEFAULT_MAX_USE_NESTING_DEPTH

      public static final int DEFAULT_MAX_USE_NESTING_DEPTH
      See Also:
    • DEFAULT_MAX_NESTING_DEPTH

      public static final int DEFAULT_MAX_NESTING_DEPTH
      See Also:
    • DEFAULT_MAX_PATH_COUNT

      public static final int DEFAULT_MAX_PATH_COUNT
      See Also:
    • DEFAULT

      public static final DocumentLimits DEFAULT
    • maxNestingDepth

      private final int maxNestingDepth
    • maxUseNestingDepth

      private final int maxUseNestingDepth
    • maxPathCount

      private final int maxPathCount
  • Constructor Details

    • DocumentLimits

      public DocumentLimits(int maxNestingDepth, int maxUseNestingDepth, int maxPathCount)
  • Method Details

    • maxNestingDepth

      public int maxNestingDepth()
      The maximal allowed nesting depth of elements in the document.
      Returns:
      The maximal nesting depth of elements
    • maxUseNestingDepth

      public int maxUseNestingDepth()
      The maximal allowed depth of nested elements.
      Returns:
      The maximal nesting depth of
    • maxPathCount

      public int maxPathCount()
      The maximal allowed count of rendered instances of elements. This also counts implicit nodes created by markers or elements.
      Returns:
      The maximal allowed count.