Class DecomposedPath
- java.lang.Object
-
- com.thomasjensen.checkstyle.addons.checks.misc.DecomposedPath
-
@Immutable public class DecomposedPath extends Object
Encapsulates the components of a checked file path.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getFileExtensions()
String
getMdlPath()
String
getModulePath()
String
getSimpleFilename()
List<String>
getSpecificFolders()
String
getSpecificPath()
-
-
-
Constructor Detail
-
DecomposedPath
public DecomposedPath(@Nonnull String pModulePath, @Nonnull String pMdlPath, @Nonnull String pSpecificPath, @Nonnull String pSimpleFilename, @Nonnull Set<String> pFileExtensions, @Nonnull List<String> pSpecificFolders)
Constructor.- Parameters:
pModulePath
- the module path, for examplesubsystem1/module1
pMdlPath
- the MDL path, for examplesrc/main/java
pSpecificPath
- the specific path, for examplecom/acme/Foo.java
pSimpleFilename
- the simple file name, for exampleFoo.java
pFileExtensions
- the list of file extensions, for examplejava
, but it could be a list if multiple dots are present (e.g.tar.gz, gz
)pSpecificFolders
- the simple names of all folders on the specific path, for examplecom, acme
-
-