public class FileAndDirectoryNamingRule extends AbstractValidationRule
| Modifier and Type | Field and Description |
|---|---|
protected static int |
MAXIMUM_FILE_NAME_LENGTH |
protected static Pattern |
NAMING_PATTERN |
| Constructor and Description |
|---|
FileAndDirectoryNamingRule() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkFileAndDirectoryNaming()
Checks that the files and directories in the target conform
to the naming rules in sections 6C.1 and 6C.2.
|
boolean |
isApplicable(String location)
Tests whether a rule is applicable to a target location.
|
protected boolean |
isDirectoryContainingInvalidCharacter(String filename,
boolean isDirectory) |
protected boolean |
isFilenameContainingLegalCharacters(String filename) |
protected boolean |
isFilenameProhibited(String filename) |
protected boolean |
isFilenameTooLong(String filename) |
execute, getCaption, getChildContext, getContext, getExtraTarget, getListener, getParentTarget, getRegistrar, getTarget, isDebugLogLevel, isInfoLogLevel, reportError, reportError, setCaption, verifyLidPrefixprotected static final int MAXIMUM_FILE_NAME_LENGTH
protected static final Pattern NAMING_PATTERN
@ValidationTest public void checkFileAndDirectoryNaming()
protected boolean isFilenameProhibited(String filename)
protected boolean isFilenameTooLong(String filename)
protected boolean isFilenameContainingLegalCharacters(String filename)
protected boolean isDirectoryContainingInvalidCharacter(String filename, boolean isDirectory)
public boolean isApplicable(String location)
AbstractValidationRuleisApplicable in interface ValidationRuleisApplicable in class AbstractValidationRulelocation - the target locationCopyright © 2022 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved.