com.phoenix_int.aserver.types
Interface IPHXFormat
- All Known Implementing Classes:
- PHXDouble, PHXDoubleArray, PHXInteger, PHXLong, PHXLongArray
-
public interface IPHXFormat
Interface for variables that support formats
Example usage:
IPHXType var = wrapper.getVariable("myVar");
if (var instanceof IPHXFormat)
{
((IPHXFormat)var).setFormat("0.0");
}
| Method Summary |
java.lang.String |
getFormat()
Get the format string for the variable |
boolean |
hasFormat()
Whether or not the variable has a format |
void |
setFormat(java.lang.String format)
Set the format string for the variable |
getFormat
java.lang.String getFormat()
- Get the format string for the variable
-
- Returns:
- format string
hasFormat
boolean hasFormat()
- Whether or not the variable has a format
-
- Returns:
- true if variable has a format
setFormat
void setFormat(java.lang.String format)
- Set the format string for the variable
-
- Parameters:
format - format string