- java.lang.Object
-
- com.github.weisj.jsvg.parser.impl.MutableLoaderContext
-
- All Implemented Interfaces:
LoaderContext
,LoaderContext.Builder
public final class MutableLoaderContext extends java.lang.Object implements LoaderContext, LoaderContext.Builder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.weisj.jsvg.parser.LoaderContext
LoaderContext.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private @NotNull CssParser
cssParser
private static CssParser
DEFAULT_CSS_PARSER
private static ElementLoader
DEFAULT_ELEMENT_LOADER
private static PaintParser
DEFAULT_PAINT_PARSER
private static ResourceLoader
DEFAULT_RESOURCE_LOADER
private @NotNull DocumentLimits
documentLimits
private @NotNull ElementLoader
elementLoader
private @NotNull PaintParser
paintParser
private @Nullable DomProcessor
preProcessor
private @NotNull ResourceLoader
resourceLoader
private @NotNull ResourcePolicy
resourcePolicy
-
Constructor Summary
Constructors Constructor Description MutableLoaderContext()
-
Method Summary
-
-
-
Field Detail
-
DEFAULT_RESOURCE_LOADER
private static final ResourceLoader DEFAULT_RESOURCE_LOADER
-
DEFAULT_ELEMENT_LOADER
private static final ElementLoader DEFAULT_ELEMENT_LOADER
-
DEFAULT_CSS_PARSER
private static final CssParser DEFAULT_CSS_PARSER
-
DEFAULT_PAINT_PARSER
private static final PaintParser DEFAULT_PAINT_PARSER
-
preProcessor
@Nullable private @Nullable DomProcessor preProcessor
-
cssParser
@NotNull private @NotNull CssParser cssParser
-
paintParser
@NotNull private @NotNull PaintParser paintParser
-
resourceLoader
@NotNull private @NotNull ResourceLoader resourceLoader
-
elementLoader
@NotNull private @NotNull ElementLoader elementLoader
-
resourcePolicy
@NotNull private @NotNull ResourcePolicy resourcePolicy
-
documentLimits
@NotNull private @NotNull DocumentLimits documentLimits
-
-
Method Detail
-
createDefault
@NotNull public static @NotNull MutableLoaderContext createDefault()
-
preProcessor
@Nullable public @Nullable DomProcessor preProcessor()
- Specified by:
preProcessor
in interfaceLoaderContext
-
cssParser
@NotNull public @NotNull CssParser cssParser()
- Specified by:
cssParser
in interfaceLoaderContext
-
paintParser
@NotNull public @NotNull PaintParser paintParser()
- Specified by:
paintParser
in interfaceLoaderContext
-
resourceLoader
@NotNull public @NotNull ResourceLoader resourceLoader()
- Specified by:
resourceLoader
in interfaceLoaderContext
-
elementLoader
@NotNull public @NotNull ElementLoader elementLoader()
- Specified by:
elementLoader
in interfaceLoaderContext
-
externalResourcePolicy
@NotNull public @NotNull ResourcePolicy externalResourcePolicy()
- Specified by:
externalResourcePolicy
in interfaceLoaderContext
-
documentLimits
@NotNull public @NotNull DocumentLimits documentLimits()
- Specified by:
documentLimits
in interfaceLoaderContext
-
preProcessor
@NotNull public @NotNull LoaderContext.Builder preProcessor(@Nullable @Nullable DomProcessor preProcessor)
- Specified by:
preProcessor
in interfaceLoaderContext.Builder
-
cssParser
@NotNull public @NotNull LoaderContext.Builder cssParser(@NotNull @NotNull CssParser cssParser)
- Specified by:
cssParser
in interfaceLoaderContext.Builder
-
paintParser
@NotNull public @NotNull LoaderContext.Builder paintParser(@NotNull @NotNull PaintParser paintParser)
- Specified by:
paintParser
in interfaceLoaderContext.Builder
-
resourceLoader
@NotNull public @NotNull LoaderContext.Builder resourceLoader(@NotNull @NotNull ResourceLoader resourceLoader)
- Specified by:
resourceLoader
in interfaceLoaderContext.Builder
-
elementLoader
@NotNull public @NotNull LoaderContext.Builder elementLoader(@NotNull @NotNull ElementLoader elementLoader)
- Specified by:
elementLoader
in interfaceLoaderContext.Builder
-
externalResourcePolicy
@NotNull public @NotNull LoaderContext.Builder externalResourcePolicy(@NotNull @NotNull ResourcePolicy policy)
- Specified by:
externalResourcePolicy
in interfaceLoaderContext.Builder
-
documentLimits
@NotNull public @NotNull LoaderContext.Builder documentLimits(@NotNull @NotNull DocumentLimits documentLimits)
- Specified by:
documentLimits
in interfaceLoaderContext.Builder
-
build
@NotNull public @NotNull LoaderContext build()
- Specified by:
build
in interfaceLoaderContext.Builder
-
-