Class DocumentLimits


  • public class DocumentLimits
    extends java.lang.Object
    • Field Detail

      • DEFAULT_MAX_USE_NESTING_DEPTH

        public static final int DEFAULT_MAX_USE_NESTING_DEPTH
        See Also:
        Constant Field Values
      • DEFAULT_MAX_NESTING_DEPTH

        public static final int DEFAULT_MAX_NESTING_DEPTH
        See Also:
        Constant Field Values
      • maxNestingDepth

        private final int maxNestingDepth
      • maxUseNestingDepth

        private final int maxUseNestingDepth
      • maxPathCount

        private final int maxPathCount
    • Constructor Detail

      • DocumentLimits

        public DocumentLimits​(int maxNestingDepth,
                              int maxUseNestingDepth,
                              int maxPathCount)
    • Method Detail

      • 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.