org.vizzini.ui.ai.logic
Class PropertyWrapper

java.lang.Object
  extended by org.vizzini.ui.ai.logic.PropertyWrapper
All Implemented Interfaces:
Comparable

public class PropertyWrapper
extends Object
implements Comparable

Provides a wrapper for properties in the logic system. Wrappers are used to provide a proper display string to the user interface.

Since:
v0.2
Version:
v0.2
Author:
Jeffrey M. Thompson

Constructor Summary
PropertyWrapper(String propertyName)
          Construct this object with the given parameter.
 
Method Summary
 int compareTo(Object object)
          Return -1, 0, or 1 if this is less than, equal to, or greater than the given object.
 boolean equals(Object object)
          Return true if this equals the given object.
 String getPropertyName()
          Return the wrapped property name.
static void setPrefix(String prefix)
           
static void setSuffix(String suffix)
           
 String toString()
          Return a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyWrapper

public PropertyWrapper(String propertyName)
Construct this object with the given parameter.

Parameters:
propertyName - Property name.
Since:
v0.2
Method Detail

setPrefix

public static void setPrefix(String prefix)
Parameters:
prefix - Resource prefix to set.
Since:
v0.2

setSuffix

public static void setSuffix(String suffix)
Parameters:
suffix - Resource suffix to set.
Since:
v0.2

compareTo

public int compareTo(Object object)
Return -1, 0, or 1 if this is less than, equal to, or greater than the given object.

Specified by:
compareTo in interface Comparable
Parameters:
object - Object to compare.
Since:
v0.2

equals

public boolean equals(Object object)
Return true if this equals the given object.

Overrides:
equals in class Object
Parameters:
object - Object to compare.
Since:
v0.2

getPropertyName

public String getPropertyName()
Return the wrapped property name.

Since:
v0.2

toString

public String toString()
Return a string representation of this object.

Overrides:
toString in class Object
Since:
v0.2


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02