Interface SchematicSource
- All Superinterfaces:
ConfigurationSerializable
Represents a source where schematics can be drawn from.
Provides excludions
-
Method Summary
Modifier and TypeMethodDescriptionA list of relative pathes to the source which should be excludedinternalPath
(Path path) Get the internal path by stripping the path of the source.boolean
isExcluded
(Path path) Checks wheather the path is excluded or notboolean
An ideally unique prefix for this sourceboolean
Checks if the path is part of this source.path()
Path of the schematic source.prefix()
-
Method Details
-
serialize
- Specified by:
serialize
in interfaceConfigurationSerializable
-
path
String path()Path of the schematic source.- Returns:
- path as string
-
isRelative
boolean isRelative()An ideally unique prefix for this source- Returns:
- prefix
-
prefix
String prefix() -
excludedPath
A list of relative pathes to the source which should be excluded- Returns:
- list of paths
-
isExcluded
Checks wheather the path is excluded or not- Parameters:
path
- path- Returns:
- true if excluded
-
isSource
Checks if the path is part of this source.- Parameters:
path
- path- Returns:
- true if path is in source
-
internalPath
Get the internal path by stripping the path of the source.- Parameters:
path
- path to strip- Returns:
- stripped path. Path may be empty.
-