Class DocumentLimits
java.lang.Object
com.github.weisj.jsvg.parser.DocumentLimits
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DocumentLimitsstatic final intstatic final intstatic final intprivate final intprivate final intprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionDocumentLimits(int maxNestingDepth, int maxUseNestingDepth, int maxPathCount) -
Method Summary
Modifier and TypeMethodDescriptionintThe maximal allowed nesting depth of elements in the document.intThe maximal allowed count of rendered instances of elements.intThe maximal allowed depth of nested
-
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
-
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- 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- Returns:
- The maximal allowed count.
-