Class ParsedDocument
java.lang.Object
com.github.weisj.jsvg.parser.impl.ParsedDocument
- All Implemented Interfaces:
DomDocument
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @NotNull AnimationPeriodprivate intprivate final @NotNull LoaderContextprivate final @NotNull LoadHelperprivate final @Nullable URI -
Constructor Summary
ConstructorsConstructorDescriptionParsedDocument(@Nullable URI rootURI, @NotNull LoaderContext loaderContext, @NotNull LoadHelper loadHelper) -
Method Summary
Modifier and TypeMethodDescription@NotNull AnimationPeriod(package private) int<T> TgetElementById(@NotNull Class<T> type, @Nullable String id) booleanhasElementWithId(@NotNull String id) @NotNull LoaderContext@NotNull LoadHelpervoidregisterAnimatedElement(@NotNull BaseAnimationNode animate) voidregisterNamedElement(@NotNull String name, @Nullable Object element) @Nullable URIrootURI()(package private) voidsetCurrentNestingDepth(int depth)
-
Field Details
-
namedElements
-
rootURI
-
loaderContext
-
loadHelper
-
currentDepth
private int currentDepth -
animationPeriod
-
-
Constructor Details
-
ParsedDocument
public ParsedDocument(@Nullable @Nullable URI rootURI, @NotNull @NotNull LoaderContext loaderContext, @NotNull @NotNull LoadHelper loadHelper)
-
-
Method Details
-
loaderContext
- Specified by:
loaderContextin interfaceDomDocument
-
loadHelper
-
registerNamedElement
- Specified by:
registerNamedElementin interfaceDomDocument
-
currentNestingDepth
@Internal int currentNestingDepth() -
setCurrentNestingDepth
@Internal void setCurrentNestingDepth(int depth) -
getElementById
@Nullable public <T> T getElementById(@NotNull @NotNull Class<T> type, @Nullable @Nullable String id) - Specified by:
getElementByIdin interfaceDomDocument
-
hasElementWithId
-
rootURI
- Specified by:
rootURIin interfaceDomDocument
-
animationPeriod
-
registerAnimatedElement
-