|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.farrago.plugin.FarragoAbstractPluginBase
public class FarragoAbstractPluginBase
FarragoAbstractPluginBase is an abstract base for classes used to build
implementations of FarragoPlugin. Instances of this class are not
necessarily direct implementations of the FarragoPlugin interface itself;
they may be sub-components of the plugin.
| Field Summary | |
|---|---|
static String[] |
BOOLEAN_CHOICES_DEFAULT_FALSE
|
static String[] |
BOOLEAN_CHOICES_DEFAULT_TRUE
|
static DriverPropertyInfo[] |
EMPTY_DRIVER_PROPERTIES
A zero-length array of DriverPropertyInfo. |
| Constructor Summary | |
|---|---|
FarragoAbstractPluginBase()
|
|
| Method Summary | |
|---|---|
static boolean |
getBooleanProperty(Properties props,
String propName,
boolean defaultValue)
Gets the value of a boolean property, or a default value if the property does not exist. |
static byte |
getByteProperty(Properties props,
String propName,
byte defaultValue)
Gets the value of a byte property. |
static double |
getDoubleProperty(Properties props,
String propName,
double defaultValue)
Gets the value of an double property. |
static float |
getFloatProperty(Properties props,
String propName,
float defaultValue)
Gets the value of an float property. |
static int |
getIntProperty(Properties props,
String propName,
int defaultValue)
Gets the value of an integer property. |
static long |
getLongProperty(Properties props,
String propName,
long defaultValue)
Gets the value of a long integer property. |
static short |
getShortProperty(Properties props,
String propName,
short defaultValue)
Gets the value of an short property. |
static void |
requireProperty(Properties props,
String propName)
Verifies that a property has been set, throwing an exception if has not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final DriverPropertyInfo[] EMPTY_DRIVER_PROPERTIES
public static final String[] BOOLEAN_CHOICES_DEFAULT_FALSE
public static final String[] BOOLEAN_CHOICES_DEFAULT_TRUE
| Constructor Detail |
|---|
public FarragoAbstractPluginBase()
| Method Detail |
|---|
public static void requireProperty(Properties props,
String propName)
props - properties to checkpropName - name of required property
EigenbaseException - if property is not set
public static long getLongProperty(Properties props,
String propName,
long defaultValue)
props - property setpropName - name of propertydefaultValue - value to return if property is not set
EigenbaseException - if property is set with non-integer value
public static int getIntProperty(Properties props,
String propName,
int defaultValue)
props - property setpropName - name of propertydefaultValue - value to return if property is not set
EigenbaseException - if property is set with non-integer value
public static short getShortProperty(Properties props,
String propName,
short defaultValue)
props - property setpropName - name of propertydefaultValue - value to return if property is not set
EigenbaseException - if property is set with non-short value
public static byte getByteProperty(Properties props,
String propName,
byte defaultValue)
props - property setpropName - name of propertydefaultValue - value to return if property is not set
EigenbaseException - if property is set with non-short value
public static float getFloatProperty(Properties props,
String propName,
float defaultValue)
props - property setpropName - name of propertydefaultValue - value to return if property is not set
EigenbaseException - if property is set with non-short value
public static double getDoubleProperty(Properties props,
String propName,
double defaultValue)
props - property setpropName - name of propertydefaultValue - value to return if property is not set
EigenbaseException - if property is set with non-short value
public static boolean getBooleanProperty(Properties props,
String propName,
boolean defaultValue)
true if the property exists, and its
value is 1, t, true or
yes; the default value if it does not exist; false
otherwise.
props - property setpropName - name of propertydefaultValue - value to return if property is not set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||