com.phoenix_int.aserver.types
Class PHXSimpleType

java.lang.Object
  extended by com.phoenix_int.aserver.types.PHXSimpleType
All Implemented Interfaces:
IPHXType, IPHXType2, IPHXUnits
Direct Known Subclasses:
PHXBoolean, PHXDouble, PHXFile, PHXGeometry, PHXInteger, PHXLong, PHXRawFile, PHXScriptObject, PHXSimpleArray, PHXString

public abstract class PHXSimpleType
extends java.lang.Object
implements IPHXType2, IPHXUnits

A base class for most Phoenix data types. The class defines the following properties:

This class will fire a property change event when hasChanged(true) is called. The property event will always have the property name be "value" and the old and new values of null. Use toString or getValue functions to get the actual new value from the variable.


Constructor Summary
PHXSimpleType()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
           
 java.lang.String getDescription()
          
 java.lang.String[] getEnumTokens(java.lang.String enums)
           
 boolean getHasChanged()
          retrieves the hasChanged flag
 java.lang.String getUnits()
          Get the units string for the variable
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
           
 void setDescription(java.lang.String d)
          
 void setHasChanged(boolean v)
          sets the hasChanged flag
 void setUnits(java.lang.String u)
          Set the units string for the variable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.phoenix_int.aserver.types.IPHXType2
fromString2, toString2
 
Methods inherited from interface com.phoenix_int.aserver.types.IPHXType
fromString, toString
 

Constructor Detail

PHXSimpleType

public PHXSimpleType()
Method Detail

setUnits

public void setUnits(java.lang.String u)
Set the units string for the variable

Specified by:
setUnits in interface IPHXUnits
Parameters:
u - units for the variable

getUnits

public java.lang.String getUnits()
Get the units string for the variable

Specified by:
getUnits in interface IPHXUnits
Returns:
units string

setDescription

public void setDescription(java.lang.String d)


getDescription

public java.lang.String getDescription()


setHasChanged

public void setHasChanged(boolean v)
sets the hasChanged flag

Parameters:
d - the new value for the flag

getHasChanged

public boolean getHasChanged()
retrieves the hasChanged flag

Returns:
true if the variable has changed since the last time the hasChanged flag was set to false

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)

getEnumTokens

public java.lang.String[] getEnumTokens(java.lang.String enums)