|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.seventytwomiles.architecturerules.domain.SourceDirectory
public class SourceDirectory
Representation of a source directory to search for packages and .class files in.
| Constructor Summary | |
|---|---|
SourceDirectory()
Instantiates a new SourceDirectory entity. |
|
SourceDirectory(java.lang.String path)
Instantiates a new SourceDirectory with the given path |
|
SourceDirectory(java.lang.String path,
boolean shouldThrowExceptionWhenNotFound)
Instantiates a new SourceDirectory with the given path and shouldThrowExceptionWhenNotFound values |
|
SourceDirectory(java.lang.String path,
java.lang.String notFound)
Instantiates a new SourceDirectory with the given path and notFound values. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getPath()
Getter for property path.
|
int |
hashCode()
|
protected java.lang.String |
replaceBackslashForOS(java.lang.String path)
Replaces inappropriate backslash with the appropriate slash based on the operating system's requirements For example, on a Windows system, src/main/resources becomes src\\main\\resource TODO: this may be able to be replaced with String.replaceAll, but I couldn't get the regex just right |
void |
setNotFound(java.lang.String notFound)
Setter for property 'notFound'. |
void |
setPath(java.lang.String path)
Setter for property path.
|
void |
setShouldThrowExceptionWhenNotFound(boolean shouldThrowExceptionWhenNotFound)
Setter for property shouldThrowExceptionWhenNotFound.
|
boolean |
shouldThrowExceptionWhenNotFound()
Getter for property shouldThrowExceptionWhenNotFound.
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait,
wait |
| Constructor Detail |
|---|
public SourceDirectory()
Instantiates a new SourceDirectory entity.
public SourceDirectory(java.lang.String path)
Instantiates a new SourceDirectory with the given path
path - String
path
public SourceDirectory(java.lang.String path,
boolean shouldThrowExceptionWhenNotFound)
Instantiates a new SourceDirectory with the given path and shouldThrowExceptionWhenNotFound values
path - String
path
shouldThrowExceptionWhenNotFound - boolean
shouldThrowExceptionWhenNotFound
public SourceDirectory(java.lang.String path,
java.lang.String notFound)
Instantiates a new SourceDirectory with the given path and notFound values.
path - String
path
notFound - boolean @notFound
| Method Detail |
|---|
public void setShouldThrowExceptionWhenNotFound(boolean shouldThrowExceptionWhenNotFound)
shouldThrowExceptionWhenNotFound.
shouldThrowExceptionWhenNotFound - Value to set for
property
shouldThrowExceptionWhenNotFound.
public void setNotFound(java.lang.String notFound)
notFound - Value to set for property 'notFound'.
public java.lang.String getPath()
Getter for property
path.
public void setPath(java.lang.String path)
Setter for property
path.
path - Value to set for property path.
protected java.lang.String replaceBackslashForOS(java.lang.String path)
path - String the path to fix
public boolean equals(java.lang.Object object)
equals in class java.lang.Object
Object.equals(Object)
public int hashCode()
hashCode in class java.lang.Object
Object.hashCode()
public java.lang.String toString()
toString in class java.lang.Object
Object.toString()
public boolean shouldThrowExceptionWhenNotFound()
shouldThrowExceptionWhenNotFound.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||