nl.chess.it.util.config
Class PropertyDisplayItem

java.lang.Object
  extended bynl.chess.it.util.config.PropertyDisplayItem
All Implemented Interfaces:
java.lang.Comparable

public class PropertyDisplayItem
extends java.lang.Object
implements java.lang.Comparable

Simple place holder that can be used to display the value of a property. Most properties are read from a Properties, then the original values and key-name will be stored as well. For hard-coded properties (i.e., public getMethods that don't use the Properties).

Version:
$Revision: 1.1.1.1 $
Author:
Guus Bosman (Chess iT)

Constructor Summary
PropertyDisplayItem(java.lang.String methodName, java.lang.String propertyName, java.lang.String originalValue, java.lang.String parseValue)
          Creates a new PropertyDisplayItem object.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getMethodName()
          Name of the method for the property.
 java.lang.String getOriginalValue()
          Original, unparsed value of the element in the property file.
 java.lang.String getParseValue()
          Parsed value of the element in the property file.
 java.lang.String getPropertyName()
          Name of the element in the property file.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyDisplayItem

public PropertyDisplayItem(java.lang.String methodName,
                           java.lang.String propertyName,
                           java.lang.String originalValue,
                           java.lang.String parseValue)
Creates a new PropertyDisplayItem object.

Parameters:
methodName - Name of the method. Cannot be null.
propertyName - Name of the property. Can be null.
originalValue - Original value of the property. Can be null.
parseValue - Value as interpreted by Java Config. This is a String representation. Can be null.
Method Detail

toString

public java.lang.String toString()

getMethodName

public java.lang.String getMethodName()
Name of the method for the property.

Returns:
String. Never null.

getOriginalValue

public java.lang.String getOriginalValue()
Original, unparsed value of the element in the property file.

Returns:
String. Might be null if the element isn't read from the properties.

getParseValue

public java.lang.String getParseValue()
Parsed value of the element in the property file.

Returns:
String. Never null.

getPropertyName

public java.lang.String getPropertyName()
Name of the element in the property file.

Returns:
String. Might be null if the element isn't read from the properties.

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object o)

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable


Copyright © 2003-2005 Chess-iT. All Rights Reserved.