|
|
|||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Objectcom.lightysoft.logmx.business.LogURLParameter
public class LogURLParameter
Defines a parameter that will be sent to a LogFileManager
in order to locate the resource to open.
A LogURLParameter defines a part of a LogURL.
For example, an LogURLParameter could be a login: its name will be "login" and its value
(set by the LogMX user via the GUI) could be "john".
LogURL,
LogURLParameterType| Constructor Summary | |
|---|---|
LogURLParameter(String pName,
LogURLParameterType pType)
Construct a mandatory LogURLParameter with its name and type and no default value |
|
LogURLParameter(String pName,
LogURLParameterType pType,
Object pDefaultValue)
Construct a mandatory LogURLParameter with its name, type, and default value |
|
LogURLParameter(String pName,
LogURLParameterType pType,
Object pDefaultValue,
boolean pOptional)
Construct an optional or mandatory LogURLParameter with its name, type, and default value |
|
| Method Summary | |
|---|---|
Object |
clone()
Clone this Parameter (called by LogMX to clone LogURL returned by the Manager) |
Object |
getDefaultValue()
Getter for attribute defaultValue |
String |
getName()
Getter for attribute name |
LogURLParameterType |
getType()
Getter for attribute type |
Object |
getValue()
Getter for attribute value |
boolean |
isOptional()
Getter for attribute optional |
void |
setDefaultValue(Object pDefaultValue)
Setter for attribute defaultValue |
void |
setOptional(boolean pOptional)
Setter for attribute optional |
void |
setValue(Object pValue)
Setter for attribute value |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogURLParameter(String pName,
LogURLParameterType pType)
LogURLParameter with its name and type and no default value
pName - Parameter name (e.g. "login")pType - Parameter type (e.g. LogURLParameterType.STRING)
public LogURLParameter(String pName,
LogURLParameterType pType,
Object pDefaultValue)
LogURLParameter with its name, type, and default value
pName - Parameter name (e.g. "login")pType - Parameter type (e.g. LogURLParameterType.STRING)pDefaultValue - Parameter default value (e.g. "admin", System.getProperty("user.name"), or null if no default value)
IllegalArgumentException - If pDefaultValue is not consistent with pType
public LogURLParameter(String pName,
LogURLParameterType pType,
Object pDefaultValue,
boolean pOptional)
LogURLParameter with its name, type, and default value
pName - Parameter name (e.g. "login")pType - Parameter type (e.g. LogURLParameterType.STRING)pDefaultValue - Parameter default value (e.g. "admin", System.getProperty("user.name"), or null if no default value)pOptional - Indicates whether this parameter is optional
IllegalArgumentException - If pDefaultValue is not consistent with pType| Method Detail |
|---|
public Object clone()
LogURL returned by the Manager)
clone in class ObjectObject.clone()public String getName()
name
namepublic Object getValue()
value
valuepublic void setValue(Object pValue)
value
pValue - New value for attribute value
IllegalArgumentException - If pValue is not consistent with this parameter typepublic Object getDefaultValue()
defaultValue
defaultValuepublic void setDefaultValue(Object pDefaultValue)
defaultValue
pDefaultValue - New value for attribute defaultValue
IllegalArgumentException - If pDefaultValue is not consistent with this parameter typepublic LogURLParameterType getType()
type
typepublic boolean isOptional()
optional
optionalpublic void setOptional(boolean pOptional)
optional
pOptional - New value for attribute optional
|
|
|||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||