Interface SchematicSource


public interface SchematicSource
Represents a source where schematics can be drawn from.

Provides excludions

  • Method Summary

    Modifier and Type
    Method
    Description
    A list of relative pathes to the source which should be excluded
    Get the internal path by stripping the path of the source.
    boolean
    Checks wheather the path is excluded or not
    boolean
    An ideally unique prefix for this source
    boolean
    isSource(Path path)
    Checks if the path is part of this source.
    Path of the schematic source.
     
  • Method Details

    • 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

      List<String> excludedPath()
      A list of relative pathes to the source which should be excluded
      Returns:
      list of paths
    • isExcluded

      boolean isExcluded(Path path)
      Checks wheather the path is excluded or not
      Parameters:
      path - path
      Returns:
      true if excluded
    • isSource

      boolean isSource(Path path)
      Checks if the path is part of this source.
      Parameters:
      path - path
      Returns:
      true if path is in source
    • internalPath

      Path internalPath(Path path)
      Get the internal path by stripping the path of the source.
      Parameters:
      path - path to strip
      Returns:
      stripped path. Path may be empty.