net.sourceforge.jaulp.file.compare
Class FileCompareResultBean

java.lang.Object
  extended by net.sourceforge.jaulp.file.compare.FileCompareResultBean
All Implemented Interfaces:
IFileCompareResultBean
Direct Known Subclasses:
FileContentResultBean

public class FileCompareResultBean
extends java.lang.Object
implements IFileCompareResultBean

The Class FileCompareResultBean is pojo for comparing two files.

Version:
1.0
Author:
Asterios Raptis

Field Summary
protected  java.io.File compare
          The compare file.
protected  java.io.File source
          The source file.
 
Constructor Summary
FileCompareResultBean(java.io.File source, java.io.File compare)
          Instantiates a new file compare result bean.
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true if this FileCompareResultBean is the same as the o argument.
 boolean getAbsolutePathEquality()
          Gets the absolute path equality.
 boolean getFileExtensionEquality()
          Gets the file extension equality.
 java.io.File getFileToCompare()
          Gets the file to compare.
 boolean getLastModifiedEquality()
          Gets the last modified equality.
 boolean getLengthEquality()
          Gets the length equality.
 boolean getNameEquality()
          Gets the name equality.
 java.io.File getSourceFile()
          Gets the source file.
 void setAbsolutePathEquality(java.lang.Boolean absolutePathEquality)
          Sets the absolute path equality.
 void setFileExtensionEquality(java.lang.Boolean fileExtensionEquality)
          Sets the file extension equality.
 void setLastModifiedEquality(java.lang.Boolean lastModifiedEquality)
          Sets the last modified equality.
 void setLengthEquality(java.lang.Boolean lengthEquality)
          Sets the length equality.
 void setNameEquality(java.lang.Boolean nameEquality)
          Sets the name equality.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected java.io.File source
The source file.


compare

protected java.io.File compare
The compare file.

Constructor Detail

FileCompareResultBean

public FileCompareResultBean(java.io.File source,
                             java.io.File compare)
Instantiates a new file compare result bean.

Parameters:
source - the source file.
compare - the compare file.
Method Detail

getAbsolutePathEquality

public boolean getAbsolutePathEquality()
Gets the absolute path equality.

Specified by:
getAbsolutePathEquality in interface IFileCompareResultBean
Returns:
the absolute path equality
See Also:
IFileCompareResultBean.getAbsolutePathEquality()

getFileExtensionEquality

public boolean getFileExtensionEquality()
Gets the file extension equality.

Specified by:
getFileExtensionEquality in interface IFileCompareResultBean
Returns:
the file extension equality
See Also:
IFileCompareResultBean.getFileExtensionEquality()

getFileToCompare

public java.io.File getFileToCompare()
Gets the file to compare.

Specified by:
getFileToCompare in interface IFileCompareResultBean
Returns:
Returns the file to compare.
See Also:
IFileCompareResultBean.getFileToCompare()

getLastModifiedEquality

public boolean getLastModifiedEquality()
Gets the last modified equality.

Specified by:
getLastModifiedEquality in interface IFileCompareResultBean
Returns:
the last modified equality
See Also:
IFileCompareResultBean.getLastModifiedEquality()

getLengthEquality

public boolean getLengthEquality()
Gets the length equality.

Specified by:
getLengthEquality in interface IFileCompareResultBean
Returns:
the length equality
See Also:
IFileCompareResultBean.getLengthEquality()

getNameEquality

public boolean getNameEquality()
Gets the name equality.

Specified by:
getNameEquality in interface IFileCompareResultBean
Returns:
the name equality
See Also:
IFileCompareResultBean.getNameEquality()

getSourceFile

public java.io.File getSourceFile()
Gets the source file.

Specified by:
getSourceFile in interface IFileCompareResultBean
Returns:
Returns the source file.
See Also:
IFileCompareResultBean.getSourceFile()

setAbsolutePathEquality

public void setAbsolutePathEquality(java.lang.Boolean absolutePathEquality)
Description copied from interface: IFileCompareResultBean
Sets the absolute path equality.

Specified by:
setAbsolutePathEquality in interface IFileCompareResultBean
Parameters:
absolutePathEquality - the new absolute path equality

setFileExtensionEquality

public void setFileExtensionEquality(java.lang.Boolean fileExtensionEquality)
Sets the file extension equality.

Specified by:
setFileExtensionEquality in interface IFileCompareResultBean
Parameters:
fileExtensionEquality - the new file extension equality
See Also:
IFileCompareResultBean.setFileExtensionEquality(java.lang.Boolean)

setLastModifiedEquality

public void setLastModifiedEquality(java.lang.Boolean lastModifiedEquality)
Sets the last modified equality.

Specified by:
setLastModifiedEquality in interface IFileCompareResultBean
Parameters:
lastModifiedEquality - the new last modified equality
See Also:
IFileCompareResultBean.setLastModifiedEquality(java.lang.Boolean)

setLengthEquality

public void setLengthEquality(java.lang.Boolean lengthEquality)
Sets the length equality.

Specified by:
setLengthEquality in interface IFileCompareResultBean
Parameters:
lengthEquality - the new length equality
See Also:
IFileCompareResultBean.setLengthEquality(java.lang.Boolean)

setNameEquality

public void setNameEquality(java.lang.Boolean nameEquality)
Sets the name equality.

Specified by:
setNameEquality in interface IFileCompareResultBean
Parameters:
nameEquality - the new name equality
See Also:
IFileCompareResultBean.setNameEquality(java.lang.Boolean)

equals

public boolean equals(java.lang.Object o)
Returns true if this FileCompareResultBean is the same as the o argument.

Overrides:
equals in class java.lang.Object
Returns:
true if this FileCompareResultBean is the same as the o argument.


Copyright © 2010. All Rights Reserved.