Copyright @ 2002 SAP. All Rights Reserved.

com.sap.tc.complib
Class FileSet

java.lang.Object
  |
  +--com.sap.tc.complib.FileSet

public class FileSet
extends java.lang.Object

Set of included/excluded files defining an entity file set.


Constructor Summary
FileSet()
           
 
Method Summary
 java.util.List emptyExcludes()
          Removes the entries from the list of excludes, or creates a new empty exclude list.
 java.util.List emptyIncludes()
          Removes the entries from the list of includes, or creates a new empty include list.
 java.util.List getExcludes()
          Returns the list of excluded files.
 java.util.List getIncludes()
          Returns the list of included files.
 void serialize(XMLWriter writer)
          Serializes the file set to the given XMLWriter.
 void setExcludes(java.lang.String excludes)
          Defines the list of excluded files by splitting the given comma-separated string argument.
 void setIncludes(java.lang.String includes)
          Defines the list of included files by splitting the given comma-separated string argument.
 void validate()
          Verifies that the file set is valid (according to the DTD).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSet

public FileSet()
Method Detail

getIncludes

public java.util.List getIncludes()
Returns the list of included files.
Returns:
a list of strings containing file or path patterns

emptyIncludes

public java.util.List emptyIncludes()
Removes the entries from the list of includes, or creates a new empty include list.

getExcludes

public java.util.List getExcludes()
Returns the list of excluded files.
Returns:
a list of strings containing file or path patterns

emptyExcludes

public java.util.List emptyExcludes()
Removes the entries from the list of excludes, or creates a new empty exclude list.

setIncludes

public void setIncludes(java.lang.String includes)
Defines the list of included files by splitting the given comma-separated string argument.

setExcludes

public void setExcludes(java.lang.String excludes)
Defines the list of excluded files by splitting the given comma-separated string argument.

validate

public void validate()
              throws ValidationException
Verifies that the file set is valid (according to the DTD).
Throws:
ValidationException - if the object is not valid.

serialize

public void serialize(XMLWriter writer)
               throws ValidationException
Serializes the file set to the given XMLWriter.
Parameters:
writer - the XMLWriter to use for serialization.

Copyright @ 2002 SAP. All Rights Reserved.