- 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 AnimationPeriod
animationPeriod
private int
currentDepth
private @NotNull LoaderContext
loaderContext
private @NotNull LoadHelper
loadHelper
private java.util.Map<java.lang.String,java.lang.Object>
namedElements
private @Nullable java.net.URI
rootURI
-
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 AnimationPeriod
animationPeriod()
(package private) int
currentNestingDepth()
<T> T
getElementById(@NotNull java.lang.Class<T> type, @Nullable java.lang.String id)
boolean
hasElementWithId(@NotNull java.lang.String id)
@NotNull LoaderContext
loaderContext()
@NotNull LoadHelper
loadHelper()
void
registerAnimatedElement(@NotNull BaseAnimationNode animate)
void
registerNamedElement(@NotNull java.lang.String name, @Nullable java.lang.Object element)
@Nullable java.net.URI
rootURI()
(package private) void
setCurrentNestingDepth(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:
loaderContext
in 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:
registerNamedElement
in 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:
getElementById
in interfaceDomDocument
-
hasElementWithId
public boolean hasElementWithId(@NotNull @NotNull java.lang.String id)
-
rootURI
@Nullable public @Nullable java.net.URI rootURI()
- Specified by:
rootURI
in interfaceDomDocument
-
animationPeriod
@NotNull public @NotNull AnimationPeriod animationPeriod()
-
registerAnimatedElement
public void registerAnimatedElement(@NotNull @NotNull BaseAnimationNode animate)
-
-