org.apache.maven.plugin.eclipse
Class EclipseSourceDir

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

public class EclipseSourceDir
extends java.lang.Object
implements java.lang.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 728546 2008-12-21 22:56:51Z bentmann $
Author:
Fabrizio Giustina

Constructor Summary
EclipseSourceDir(java.lang.String path, java.lang.String output, boolean isResource, boolean test, java.lang.String include, java.lang.String exclude, boolean filtering)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getExclude()
          Getter for exclude.
 java.lang.String getInclude()
          Getter for include.
 java.lang.String getOutput()
          Getter for output.
 java.lang.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(java.lang.String exclude)
          Setter for exclude.
 void setInclude(java.lang.String include)
          Setter for include.
 void setOutput(java.lang.String output)
          Setter for output.
 void setPath(java.lang.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(java.lang.String path,
                        java.lang.String output,
                        boolean isResource,
                        boolean test,
                        java.lang.String include,
                        java.lang.String exclude,
                        boolean filtering)
Method Detail

getExclude

public java.lang.String getExclude()
Getter for exclude.

Returns:
Returns the exclude.

setExclude

public void setExclude(java.lang.String exclude)
Setter for exclude.

Parameters:
exclude - The exclude to set.

getInclude

public java.lang.String getInclude()
Getter for include.

Returns:
Returns the include.

setInclude

public void setInclude(java.lang.String include)
Setter for include.

Parameters:
include - The include to set.

getOutput

public java.lang.String getOutput()
Getter for output.

Returns:
Returns the output.

setOutput

public void setOutput(java.lang.String output)
Setter for output.

Parameters:
output - The output to set.

getPath

public java.lang.String getPath()
Getter for path.

Returns:
Returns the path.

setPath

public void setPath(java.lang.String path)
Setter for path. Converts \\ to / in 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(java.lang.Object obj)
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
See Also:
Object.hashCode()

compareTo

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


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