com.seventytwomiles.architecturerules.domain
Class SourceDirectory

java.lang.Object
  extended by com.seventytwomiles.architecturerules.domain.SourceDirectory

public class SourceDirectory
extends Object

Representation of a source directory to search for packages and .class files in.

Author:
mikenereson

Constructor Summary
SourceDirectory()
          Instantiates a new SourceDirectory entity.
SourceDirectory(String path)
          Instantiates a new SourceDirectory with the given path
SourceDirectory(String path, boolean shouldThrowExceptionWhenNotFound)
          Instantiates a new SourceDirectory with the given path and shouldThrowExceptionWhenNotFound values
SourceDirectory(String path, String notFound)
          Instantiates a new SourceDirectory with the given path and notFound values.
 
Method Summary
 boolean equals(Object object)
           
 String getPath()
          Getter for property path.
 int hashCode()
           
 void setNotFound(String notFound)
          Setter for property 'notFound'.
 void setPath(String path)
          Setter for property path.
 void setShouldThrowExceptionWhenNotFound(boolean shouldThrowExceptionWhenNotFound)
          Setter for property shouldThrowExceptionWhenNotFound.
 boolean shouldThrowExceptionWhenNotFound()
          Getter for property shouldThrowExceptionWhenNotFound.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceDirectory

public SourceDirectory()

Instantiates a new SourceDirectory entity.


SourceDirectory

public SourceDirectory(String path)

Instantiates a new SourceDirectory with the given path

Parameters:
path - String path

SourceDirectory

public SourceDirectory(String path,
                       boolean shouldThrowExceptionWhenNotFound)

Instantiates a new SourceDirectory with the given path and shouldThrowExceptionWhenNotFound values

Parameters:
path - String path
shouldThrowExceptionWhenNotFound - boolean shouldThrowExceptionWhenNotFound

SourceDirectory

public SourceDirectory(String path,
                       String notFound)

Instantiates a new SourceDirectory with the given path and notFound values.

Parameters:
path - String path
notFound - boolean @notFound
Method Detail

setShouldThrowExceptionWhenNotFound

public void setShouldThrowExceptionWhenNotFound(boolean shouldThrowExceptionWhenNotFound)
Setter for property shouldThrowExceptionWhenNotFound.

Parameters:
shouldThrowExceptionWhenNotFound - Value to set for property shouldThrowExceptionWhenNotFound.

setNotFound

public void setNotFound(String notFound)
Setter for property 'notFound'.

Parameters:
notFound - Value to set for property 'notFound'.

getPath

public String getPath()

Getter for property path.

Returns:
Value for property path.

setPath

public void setPath(String path)

Setter for property path.

Parameters:
path - Value to set for property path.

equals

public boolean equals(Object object)
Overrides:
equals in class Object
See Also:
Object.equals(Object)

hashCode

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

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

shouldThrowExceptionWhenNotFound

public boolean shouldThrowExceptionWhenNotFound()
Getter for property shouldThrowExceptionWhenNotFound.

Returns:
Value for property shouldThrowExceptionWhenNotFound.


Copyright © 2007-2008. All Rights Reserved.