com.jgoodies.jdiskreport.domain
Class ScanConfiguration

java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by com.jgoodies.jdiskreport.domain.ScanConfiguration
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, Serializable

public final class ScanConfiguration
extends com.jgoodies.binding.beans.Model

Describes the target, inclusions, exclusions, and other options for scanning a file tree.

Version:
$Revision: 1.6 $
Author:
Karsten Lentzsch
See Also:
Serialized Form

Field Summary
static String PROPERTYNAME_CHECK_CYLES
           
static String PROPERTYNAME_EXCLUSIONS
           
static String PROPERTYNAME_INCLUSIONS
           
static String PROPERTYNAME_MAX_MODIFIED
           
static String PROPERTYNAME_MIN_MODIFIED
           
static String PROPERTYNAME_NAME
           
static String PROPERTYNAME_TARGET
           
 
Constructor Summary
ScanConfiguration(File target)
          Constructs a scan configuration for a given path.
ScanConfiguration(String targetPath)
          Constructs a scan configuration for a given path.
 
Method Summary
 boolean accept(String canonicalName)
           
 Properties asProperties()
           
static ScanConfiguration from(Properties properties)
           
 boolean getCheckCycles()
           
 List<String> getExclusions()
           
 List<String> getInclusions()
           
 long getMaxModified()
           
 long getMinModified()
           
 String getName()
           
 File getTarget()
           
 boolean hasExclusions()
           
 boolean hasFilter()
           
 boolean hasInclusions()
           
 boolean hasMaxModifiedDate()
           
 boolean hasMinModifiedDate()
           
 void setCheckCycles(boolean newValue)
           
 void setExclusions(List<String> newValue)
           
 void setInclusions(List<String> newValue)
           
 void setMaxModified(long newValue)
           
 void setMinModified(long newValue)
           
 void setName(String newValue)
           
 void setTarget(File newTarget)
           
 String toString()
           
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROPERTYNAME_TARGET

public static final String PROPERTYNAME_TARGET
See Also:
Constant Field Values

PROPERTYNAME_NAME

public static final String PROPERTYNAME_NAME
See Also:
Constant Field Values

PROPERTYNAME_CHECK_CYLES

public static final String PROPERTYNAME_CHECK_CYLES
See Also:
Constant Field Values

PROPERTYNAME_INCLUSIONS

public static final String PROPERTYNAME_INCLUSIONS
See Also:
Constant Field Values

PROPERTYNAME_EXCLUSIONS

public static final String PROPERTYNAME_EXCLUSIONS
See Also:
Constant Field Values

PROPERTYNAME_MIN_MODIFIED

public static final String PROPERTYNAME_MIN_MODIFIED
See Also:
Constant Field Values

PROPERTYNAME_MAX_MODIFIED

public static final String PROPERTYNAME_MAX_MODIFIED
See Also:
Constant Field Values
Constructor Detail

ScanConfiguration

public ScanConfiguration(String targetPath)
Constructs a scan configuration for a given path.


ScanConfiguration

public ScanConfiguration(File target)
Constructs a scan configuration for a given path.

Method Detail

from

public static ScanConfiguration from(Properties properties)

getTarget

public File getTarget()

setTarget

public void setTarget(File newTarget)

getName

public String getName()

setName

public void setName(String newValue)

getCheckCycles

public boolean getCheckCycles()

setCheckCycles

public void setCheckCycles(boolean newValue)

getInclusions

public List<String> getInclusions()

setInclusions

public void setInclusions(List<String> newValue)

hasInclusions

public boolean hasInclusions()

getExclusions

public List<String> getExclusions()

setExclusions

public void setExclusions(List<String> newValue)

hasExclusions

public boolean hasExclusions()

getMinModified

public long getMinModified()

setMinModified

public void setMinModified(long newValue)

hasMinModifiedDate

public boolean hasMinModifiedDate()

getMaxModified

public long getMaxModified()

setMaxModified

public void setMaxModified(long newValue)

hasMaxModifiedDate

public boolean hasMaxModifiedDate()

hasFilter

public boolean hasFilter()

accept

public boolean accept(String canonicalName)

asProperties

public Properties asProperties()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2000-2008 JGoodies Karsten Lentzsch. All Rights Reserved.