flux.file
Interface FilePattern


public interface FilePattern

Represents a group of files and directories that are used in a file operation, including a count that can be specified to denote the minimum number of files that must match the file pattern when wildcards are used. The file criteria is satisfied when the number of files matching the file pattern reaches the specified minimum.

Author:
Copyright 2014 Flux Corporation. All rights reserved.

Method Summary
 int getMinimumCount()
          Returns the minimum number of files that must exist for this pattern to be satisfied.
 java.lang.String getPattern()
          Returns the file pattern to which files are matched; the file pattern typically includes wildcard characters.
 void setMinimumCount(int minimumCount)
          Sets the minimum number of files that must exist for this pattern to be satisfied.
 void setPattern(java.lang.String filePattern)
          The file pattern to which files are matched; the file pattern typically includes wildcard characters.
 

Method Detail

getMinimumCount

int getMinimumCount()
Returns the minimum number of files that must exist for this pattern to be satisfied.

Returns:
The minimum number of files that must exist for this pattern to be satisfied.

getPattern

java.lang.String getPattern()
Returns the file pattern to which files are matched; the file pattern typically includes wildcard characters.

Returns:
The file pattern to which files are matched.

setMinimumCount

void setMinimumCount(int minimumCount)
Sets the minimum number of files that must exist for this pattern to be satisfied.

Parameters:
minimumCount - The minimum number of files that must exist for this pattern to be satisfied.
Throws:
java.lang.IllegalArgumentException - If minimumCount is null or empty.

setPattern

void setPattern(java.lang.String filePattern)
The file pattern to which files are matched; the file pattern typically includes wildcard characters.

Parameters:
filePattern - The file pattern to which files are matched.
Throws:
java.lang.IllegalArgumentException - If filePattern is null or empty.


© 2014 Flux Corporation. All rights reserved.