org.apache.maven.plugin.eclipse
Class EclipseSourceDir

java.lang.Object
  extended by org.apache.maven.plugin.eclipse.EclipseSourceDir
All Implemented Interfaces:
Comparable

public class EclipseSourceDir
extends Object
implements Comparable

Represent an eclipse source dir. Eclipse has no "main", "test" or "resource" concepts, so two source dirs with the same path are equal.

Version:
$Id: EclipseSourceDir.java 595476 2007-11-15 22:21:55Z aheritier $
Author:
Fabrizio Giustina

Constructor Summary
EclipseSourceDir(String path, String output, boolean isResource, boolean test, String include, String exclude, boolean filtering)
           
 
Method Summary
 int compareTo(Object obj)
           
 boolean equals(Object obj)
           
 String getExclude()
          Getter for exclude.
 String getInclude()
          Getter for include.
 String getOutput()
          Getter for output.
 String getPath()
          Getter for path.
 int hashCode()
           
 boolean isFiltering()
          Wheter this resource should be copied with filtering.
 boolean isResource()
          Getter for isResource.
 boolean isTest()
          Getter for test.
 void setExclude(String exclude)
          Setter for exclude.
 void setInclude(String include)
          Setter for include.
 void setOutput(String output)
          Setter for output.
 void setPath(String path)
          Setter for path.
 void setTest(boolean test)
          Setter for test.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseSourceDir

public EclipseSourceDir(String path,
                        String output,
                        boolean isResource,
                        boolean test,
                        String include,
                        String exclude,
                        boolean filtering)
Method Detail

getExclude

public String getExclude()
Getter for exclude.

Returns:
Returns the exclude.

setExclude

public void setExclude(String exclude)
Setter for exclude.

Parameters:
exclude - The exclude to set.

getInclude

public String getInclude()
Getter for include.

Returns:
Returns the include.

setInclude

public void setInclude(String include)
Setter for include.

Parameters:
include - The include to set.

getOutput

public String getOutput()
Getter for output.

Returns:
Returns the output.

setOutput

public void setOutput(String output)
Setter for output.

Parameters:
output - The output to set.

getPath

public String getPath()
Getter for path.

Returns:
Returns the path.

setPath

public void setPath(String path)
Setter for path.

Parameters:
path - The path to set.

isTest

public boolean isTest()
Getter for test.

Returns:
Returns the test.

setTest

public void setTest(boolean test)
Setter for test.

Parameters:
test - The test to set.

isResource

public boolean isResource()
Getter for isResource.

Returns:
Returns the isResource.

isFiltering

public boolean isFiltering()
Wheter this resource should be copied with filtering.


equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

compareTo

public int compareTo(Object obj)
Specified by:
compareTo in interface Comparable
See Also:
Comparable.compareTo(java.lang.Object)


Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.