- java.lang.Object
-
- com.github.weisj.jsvg.parser.impl.ParsedDocument
-
- All Implemented Interfaces:
DomDocument
public class ParsedDocument extends java.lang.Object implements DomDocument
-
-
Field Summary
Fields Modifier and Type Field Description private @NotNull AnimationPeriodanimationPeriodprivate intcurrentDepthprivate @NotNull LoaderContextloaderContextprivate @NotNull LoadHelperloadHelperprivate java.util.Map<java.lang.String,java.lang.Object>namedElementsprivate @Nullable java.net.URIrootURI
-
Constructor Summary
Constructors Constructor Description ParsedDocument(@Nullable java.net.URI rootURI, @NotNull LoaderContext loaderContext, @NotNull LoadHelper loadHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull AnimationPeriodanimationPeriod()(package private) intcurrentNestingDepth()<T> TgetElementById(@NotNull java.lang.Class<T> type, @Nullable java.lang.String id)booleanhasElementWithId(@NotNull java.lang.String id)@NotNull LoaderContextloaderContext()@NotNull LoadHelperloadHelper()voidregisterAnimatedElement(@NotNull BaseAnimationNode animate)voidregisterNamedElement(@NotNull java.lang.String name, @Nullable java.lang.Object element)@Nullable java.net.URIrootURI()(package private) voidsetCurrentNestingDepth(int depth)
-
-
-
Field Detail
-
namedElements
private final java.util.Map<java.lang.String,java.lang.Object> namedElements
-
rootURI
@Nullable private final @Nullable java.net.URI rootURI
-
loaderContext
@NotNull private final @NotNull LoaderContext loaderContext
-
loadHelper
@NotNull private final @NotNull LoadHelper loadHelper
-
currentDepth
private int currentDepth
-
animationPeriod
@NotNull private @NotNull AnimationPeriod animationPeriod
-
-
Constructor Detail
-
ParsedDocument
public ParsedDocument(@Nullable @Nullable java.net.URI rootURI, @NotNull @NotNull LoaderContext loaderContext, @NotNull @NotNull LoadHelper loadHelper)
-
-
Method Detail
-
loaderContext
@NotNull public @NotNull LoaderContext loaderContext()
- Specified by:
loaderContextin interfaceDomDocument
-
loadHelper
@NotNull public @NotNull LoadHelper loadHelper()
-
registerNamedElement
public void registerNamedElement(@NotNull @NotNull java.lang.String name, @Nullable @Nullable java.lang.Object element)- Specified by:
registerNamedElementin interfaceDomDocument
-
currentNestingDepth
@Internal int currentNestingDepth()
-
setCurrentNestingDepth
@Internal void setCurrentNestingDepth(int depth)
-
getElementById
@Nullable public <T> T getElementById(@NotNull @NotNull java.lang.Class<T> type, @Nullable @Nullable java.lang.String id)- Specified by:
getElementByIdin interfaceDomDocument
-
hasElementWithId
public boolean hasElementWithId(@NotNull @NotNull java.lang.String id)
-
rootURI
@Nullable public @Nullable java.net.URI rootURI()
- Specified by:
rootURIin interfaceDomDocument
-
animationPeriod
@NotNull public @NotNull AnimationPeriod animationPeriod()
-
registerAnimatedElement
public void registerAnimatedElement(@NotNull @NotNull BaseAnimationNode animate)
-
-