Class ParsedDocument

java.lang.Object
com.github.weisj.jsvg.parser.impl.ParsedDocument
All Implemented Interfaces:
DomDocument

public class ParsedDocument extends Object implements DomDocument
  • Field Details

    • namedElements

      private final Map<String,Object> namedElements
    • rootURI

      @Nullable private final @Nullable 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 Details

    • ParsedDocument

      public ParsedDocument(@Nullable @Nullable URI rootURI, @NotNull @NotNull LoaderContext loaderContext, @NotNull @NotNull LoadHelper loadHelper)
  • Method Details

    • loaderContext

      @NotNull public @NotNull LoaderContext loaderContext()
      Specified by:
      loaderContext in interface DomDocument
    • loadHelper

      @NotNull public @NotNull LoadHelper loadHelper()
    • registerNamedElement

      public void registerNamedElement(@NotNull @NotNull String name, @Nullable @Nullable Object element)
      Specified by:
      registerNamedElement in interface DomDocument
    • 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:
      getElementById in interface DomDocument
    • hasElementWithId

      public boolean hasElementWithId(@NotNull @NotNull String id)
    • rootURI

      @Nullable public @Nullable URI rootURI()
      Specified by:
      rootURI in interface DomDocument
    • animationPeriod

      @NotNull public @NotNull AnimationPeriod animationPeriod()
    • registerAnimatedElement

      public void registerAnimatedElement(@NotNull @NotNull BaseAnimationNode animate)