|
Components | |||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.util.ParamObjectBase
public class ParamObjectBase
Base class for all Parameter objects. Parameter objects are used to store
and retrieve parameters for both applications and applets.
Applets:
Applet parameters are passed to an applet via the HTML tag
Applications:
Application parameters are passed to an application via command line
arguments as a name/value pair, such as
Field Summary | |
---|---|
static int |
PARAM_TYPE_APPLET
|
static int |
PARAM_TYPE_ARGS
|
Constructor Summary | |
---|---|
ParamObjectBase()
Construct a new (empty) ParamObjectBase object. |
|
ParamObjectBase(java.applet.Applet applet)
Construct a new ParamObjectBase object using an applet. |
|
ParamObjectBase(java.lang.String[] args)
Construct a new ParamObjectBase object using application arguments. |
Method Summary | |
---|---|
java.lang.String |
getParam(java.lang.String param)
Returns the named parameter. |
java.lang.String |
getParam(java.lang.String param,
java.lang.String defaultValue)
Returns the named parameter. |
Field Detail |
---|
public static final int PARAM_TYPE_APPLET
public static final int PARAM_TYPE_ARGS
Constructor Detail |
---|
public ParamObjectBase()
public ParamObjectBase(java.applet.Applet applet)
applet
- The appletpublic ParamObjectBase(java.lang.String[] args)
args
- Command line arguments passed to the application main() methodMethod Detail |
---|
public java.lang.String getParam(java.lang.String param)
param
- Parameter name
public java.lang.String getParam(java.lang.String param, java.lang.String defaultValue)
param
- Parameter namedefaultValue
- The default value if the parameter is not found
|
Components | |||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |