Class ParsedDocument

  • All Implemented Interfaces:
    DomDocument

    public class ParsedDocument
    extends java.lang.Object
    implements DomDocument
    • 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

      • 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 interface DomDocument
      • 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 interface DomDocument
      • hasElementWithId

        public boolean hasElementWithId​(@NotNull
                                        @NotNull java.lang.String id)
      • rootURI

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

        @NotNull
        public @NotNull AnimationPeriod animationPeriod()
      • registerAnimatedElement

        public void registerAnimatedElement​(@NotNull
                                            @NotNull BaseAnimationNode animate)