com.caucho.config.types
Class FileSetType

java.lang.Object
  extended by com.caucho.config.types.FileSetType

public class FileSetType
extends java.lang.Object

Abstract type building a path pattern. The pattern follows ant.


Constructor Summary
FileSetType()
           
 
Method Summary
 void add(FileSetType fileSet)
           
 void addExclude(PathPatternType pattern)
          Adds an exclude pattern.
 void addInclude(PathPatternType pattern)
          Adds an include pattern.
 void addInverse(FileSetType fileSet)
           
 void addText(java.lang.String text)
           
 Path getDir()
          Gets the starting directory.
 java.util.ArrayList<Path> getPaths()
          Returns the set of files.
 java.util.ArrayList<Path> getPaths(java.util.ArrayList<Path> paths)
          Returns the set of files.
 void getPaths(java.util.ArrayList<Path> paths, Path path, java.lang.String prefix)
          Returns the set of files.
 void init()
          Initialize the type.
 boolean isMatch(Path path, java.lang.String prefix)
          Returns the set of files.
 void setDir(Path dir)
          Sets the starting directory.
 void setUserPathPrefix(java.lang.String prefix)
          Sets the user-path prefix for better error reporting.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileSetType

public FileSetType()
Method Detail

setDir

public void setDir(Path dir)
Sets the starting directory.


getDir

public Path getDir()
Gets the starting directory.


addInclude

public void addInclude(PathPatternType pattern)
Adds an include pattern.


addText

public void addText(java.lang.String text)

addExclude

public void addExclude(PathPatternType pattern)
Adds an exclude pattern.


add

public void add(FileSetType fileSet)

addInverse

public void addInverse(FileSetType fileSet)

setUserPathPrefix

public void setUserPathPrefix(java.lang.String prefix)
Sets the user-path prefix for better error reporting.


init

@PostConstruct
public void init()
          throws ConfigException
Initialize the type.

Throws:
ConfigException

getPaths

public java.util.ArrayList<Path> getPaths()
Returns the set of files.


getPaths

public java.util.ArrayList<Path> getPaths(java.util.ArrayList<Path> paths)
Returns the set of files.


getPaths

public void getPaths(java.util.ArrayList<Path> paths,
                     Path path,
                     java.lang.String prefix)
Returns the set of files.


isMatch

public boolean isMatch(Path path,
                       java.lang.String prefix)
Returns the set of files.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object