Interface SchematicConfig
public interface SchematicConfig
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddSource(SchematicSource source) Adds a new schematic source.Optional<? extends SchematicSource> getSourceForPath(Path path) Gets the source for a path if presentbooleanDefines wheather the path should be prefixed or notThe path separator which should be used when showing pathes.List<? extends SchematicSource> sources()A list of registered sources.
-
Method Details
-
addSource
-
sources
-
pathSeparator
String pathSeparator()The path separator which should be used when showing pathes.- Returns:
- path separator
-
isPathSourceAsPrefix
boolean isPathSourceAsPrefix()Defines wheather the path should be prefixed or not- Returns:
- true if the prefix should used as a suffix for the source path
-
getSourceForPath
Gets the source for a path if present- Parameters:
path- path- Returns:
- optional holding a source
-