Package com.github.weisj.jsvg.parser
Class ParsedDocument
- java.lang.Object
-
- com.github.weisj.jsvg.parser.ParsedDocument
-
public class ParsedDocument extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private @NotNull LoaderContext
loaderContext
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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
getElementById(@NotNull java.lang.Class<T> type, @Nullable java.lang.String id)
boolean
hasElementWithId(@NotNull java.lang.String id)
@NotNull LoaderContext
loaderContext()
void
registerNamedElement(@NotNull java.lang.String name, @Nullable java.lang.Object element)
@Nullable java.net.URI
rootURI()
-
-
-
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
-
-
Constructor Detail
-
ParsedDocument
public ParsedDocument(@Nullable @Nullable java.net.URI rootURI, @NotNull @NotNull LoaderContext loaderContext)
-
-
Method Detail
-
loaderContext
@NotNull public @NotNull LoaderContext loaderContext()
-
registerNamedElement
public void registerNamedElement(@NotNull @NotNull java.lang.String name, @Nullable @Nullable java.lang.Object element)
-
getElementById
@Nullable public <T> T getElementById(@NotNull @NotNull java.lang.Class<T> type, @Nullable @Nullable java.lang.String id)
-
hasElementWithId
public boolean hasElementWithId(@NotNull @NotNull java.lang.String id)
-
rootURI
@Nullable public @Nullable java.net.URI rootURI()
-
-