CSVObjects Framework

net.sf.anupam.csv.formatters
Class FormatterConfiguration

java.lang.Object
  extended by net.sf.anupam.csv.formatters.FormatterConfiguration
All Implemented Interfaces:
Comparable<FormatterConfiguration>

public class FormatterConfiguration
extends Object
implements Comparable<FormatterConfiguration>

FormatConfiguration.

Since:
1.5
Version:
$Revision: 1.2 $
Author:
Anupam Sengupta

Constructor Summary
FormatterConfiguration()
          Constructor for FormatConfiguration.
 
Method Summary
 int compareTo(FormatterConfiguration other)
          Compares this formatter configuration to another configuration for ordering purposes.
 boolean equals(Object other)
          Compares this formatter configuration to another configuration for equality.
 String getFormatterClass()
          Returns value of the formatterClass.
 String getFormatterName()
          Returns value of the formatName.
 int hashCode()
          Computes the hash code for this formatter configuration.
 boolean isConstructionNeeded()
          Returns value of the constructionNeeded.
 void setConstructionNeeded(boolean constructionNeeded)
          Sets value of the constructionNeeded.
 void setFormatterClass(String formatterClass)
          Sets value of the formatterClass.
 void setFormatterName(String formatName)
          Sets value of the formatName.
 String toString()
          Returns a string representation of this formatter configuration for debugging purposes only.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormatterConfiguration

public FormatterConfiguration()
Constructor for FormatConfiguration.

Method Detail

compareTo

public int compareTo(FormatterConfiguration other)
Compares this formatter configuration to another configuration for ordering purposes. The comparision is based on the formatter name.

Specified by:
compareTo in interface Comparable<FormatterConfiguration>
Parameters:
other - the other configuration to compare against
Returns:
0 if the two configurations are equal, -1 if this configuration ranks "lower", +1 if this configuration ranks "higher"
See Also:
Comparable.compareTo(Object)

toString

public String toString()
Returns a string representation of this formatter configuration for debugging purposes only.

Overrides:
toString in class Object
Returns:
a string representation of this formatter configuration
See Also:
Object.toString()

hashCode

public int hashCode()
Computes the hash code for this formatter configuration. The has code is based on the formatter configuration's name.

Overrides:
hashCode in class Object
Returns:
the hash code
See Also:
Object.hashCode()

equals

public boolean equals(Object other)
Compares this formatter configuration to another configuration for equality. Equality test is based on the formatter configuration name.

Overrides:
equals in class Object
Parameters:
other - the other configuration to compare to
Returns:
true if the configurations are equal, false other wise
See Also:
Object.equals(Object)

getFormatterName

public String getFormatterName()
Returns value of the formatName.

Returns:
Returns the formatName.

setFormatterName

public void setFormatterName(String formatName)
Sets value of the formatName.

Parameters:
formatName - The formatName to set.

getFormatterClass

public String getFormatterClass()
Returns value of the formatterClass.

Returns:
Returns the formatterClass.

setFormatterClass

public void setFormatterClass(String formatterClass)
Sets value of the formatterClass.

Parameters:
formatterClass - The formatterClass to set.

isConstructionNeeded

public boolean isConstructionNeeded()
Returns value of the constructionNeeded.

Returns:
Returns the constructionNeeded.

setConstructionNeeded

public void setConstructionNeeded(boolean constructionNeeded)
Sets value of the constructionNeeded.

Parameters:
constructionNeeded - The constructionNeeded to set.

SourceForge.net Logo

© Anupam Sengupta 2005