public enum MdlContentSpecType extends Enum<MdlContentSpecType>
type
values which are possible in the allow and deny lists of the directories.json
configuration file used by the ModuleDirectoryLayoutCheck
.Enum Constant and Description |
---|
FileExtensions
A comma-separated list of file extensions, excluding leading dots.
|
FromPath
one of the MDL paths listed in directories.json.
|
SimpleFolder
the simple name of a folder which, if present anywhere on the specific path, constitutes a match.
|
SimpleName
the simple name of a file, for example
file.txt |
SpecificPathRegex
a regular expression which is applied to the specific path.
|
TopLevelFolder
the simple name of a folder which, if present at the top of the specific path, constitutes a match.
|
Modifier and Type | Method and Description |
---|---|
static MdlContentSpecType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MdlContentSpecType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MdlContentSpecType FileExtensions
public static final MdlContentSpecType FromPath
public static final MdlContentSpecType SimpleFolder
doc-files
would match all files contained somewhere in a doc-files
folder.public static final MdlContentSpecType SimpleName
file.txt
public static final MdlContentSpecType SpecificPathRegex
public static final MdlContentSpecType TopLevelFolder
META-INF
was specified as top-level folder, a path like META-INF/foo/META-INF/file.txt
would be illegal.public static MdlContentSpecType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static MdlContentSpecType[] values()
for (MdlContentSpecType c : MdlContentSpecType.values()) System.out.println(c);