com.xmlmill.connector.ant
Class Compare

java.lang.Object
  |
  +--com.xmlmill.connector.ant.Compare

public final class Compare
extends java.lang.Object

This class represents the <compare> element.

Since:
2.70

Constructor Summary
Compare(org.apache.tools.ant.Project project)
          Create a compare instance reprsenting a <compare> element.
 
Method Summary
 Master createMaster()
          Create aMaster instance.
 Slave createSlave()
          Create aSlave instance.
 java.lang.String getAppend()
           
 java.util.HashMap getArguments()
          Get the attributes that are defined in the <compare> element represented by this compare instance.
 java.lang.String getErrorProperty()
           
 java.lang.String getFailureProperty()
           
 java.lang.String[] getFilenames()
          Get the PDF filesnames that will act as master.
 java.lang.String getHaltonerror()
           
 java.lang.String getLogLevel()
           
 Master getMaster()
           
 java.lang.String getName()
           
 java.lang.String getPrintsummary()
           
 Slave getSlave()
           
 java.io.File getTodir()
           
 java.lang.String getVerbose()
           
 void setAppend(boolean b)
           
 void setErrorProperty(java.lang.String errorProperty)
           
 void setFailureProperty(java.lang.String failureProperty)
           
 void setHaltonerror(boolean b)
           
 void setIf(java.lang.String propertyName)
           
 void setLoglevel(java.lang.String s)
           
 void setName(java.lang.String s)
           
 void setPrintsummary(boolean b)
           
 void setTodir(java.io.File f)
           
 void setUnless(java.lang.String propertyName)
           
 void setVerbose(boolean b)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Compare

public Compare(org.apache.tools.ant.Project project)
Create a compare instance reprsenting a <compare> element.

A slave instance contains all information regarding which files to compare.

Since:
2.70
Method Detail

setName

public void setName(java.lang.String s)

setLoglevel

public void setLoglevel(java.lang.String s)

setAppend

public void setAppend(boolean b)

setVerbose

public void setVerbose(boolean b)

setHaltonerror

public void setHaltonerror(boolean b)

setIf

public void setIf(java.lang.String propertyName)

setUnless

public void setUnless(java.lang.String propertyName)

setTodir

public void setTodir(java.io.File f)

setFailureProperty

public void setFailureProperty(java.lang.String failureProperty)

setErrorProperty

public void setErrorProperty(java.lang.String errorProperty)

setPrintsummary

public void setPrintsummary(boolean b)

getName

public java.lang.String getName()

getLogLevel

public java.lang.String getLogLevel()

getAppend

public java.lang.String getAppend()

getVerbose

public java.lang.String getVerbose()

getHaltonerror

public java.lang.String getHaltonerror()

getTodir

public java.io.File getTodir()

getFailureProperty

public java.lang.String getFailureProperty()

getErrorProperty

public java.lang.String getErrorProperty()

getPrintsummary

public java.lang.String getPrintsummary()

getMaster

public Master getMaster()

getSlave

public Slave getSlave()

createMaster

public Master createMaster()
                    throws org.apache.tools.ant.BuildException
Create aMaster instance.

Following the Ant guidlines.

Returns:
A new Master instance
Throws:
org.apache.tools.ant.BuildException - if the <compare> elements contains more than one <master> element.
Since:
2.70

createSlave

public Slave createSlave()
                  throws org.apache.tools.ant.BuildException
Create aSlave instance.

Following the Ant guidlines.

Returns:
A new Slave instance
Throws:
org.apache.tools.ant.BuildException - if the <compare> elements contains more than one <slave> element.
Since:
2.70

getFilenames

public java.lang.String[] getFilenames()
Get the PDF filesnames that will act as master.

Returns:
an array of filenames representing the PDF documents that are considered to be the master documents.
Since:
2.70

getArguments

public java.util.HashMap getArguments()
                               throws org.apache.tools.ant.BuildException
Get the attributes that are defined in the <compare> element represented by this compare instance.
Returns:
A HashMap instance containing all arguments.
Throws:
org.apache.tools.ant.BuildException - if Slave or Master element are not defined.
Since:
2.70