|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.infoengine.object.factory.Webject
public class Webject
| Field Summary | |
|---|---|
static java.lang.String |
CLASS
|
static java.lang.String |
DISPLAY
|
static java.lang.String |
EXTERNAL
|
static java.lang.String |
GROUP
|
static java.lang.String |
GROUP_IN
|
static java.lang.String |
GROUP_OUT
|
static java.lang.String |
MESSAGE
|
static java.lang.String |
OBJECT
|
static java.lang.String |
OUTPUT
|
static java.lang.String |
TASK
|
static byte[] |
text
|
static java.lang.String |
TYPE
|
static java.lang.String |
UNKNOWN
|
| Constructor Summary | |
|---|---|
Webject()
Constructs an unnamed webject. |
|
Webject(IeNode node)
Constructs a webject wrapper around an existing set of parameters. |
|
Webject(java.lang.String name)
Constructs a named webject. |
|
| Method Summary | |
|---|---|
Param |
addKey(java.lang.String key,
java.lang.String value)
Adds a KEY parameter to this webject. |
void |
addMessage(java.lang.String message)
Adds a warning or error message to this webject. |
void |
addMeta(IeMeta meta)
Adds a specific meta item to this webject. |
void |
addMetaValue(java.lang.String name,
java.lang.String value)
Adds a meta item to this webject with a specific name and value. |
void |
addOutput(java.lang.String message)
Adds an output message to this webject. |
void |
addParam(Param param)
Adds a new parameter to this webject. |
Param |
addUniqueKey(java.lang.String key,
java.lang.String value)
Adds a KEY parameter to this webject only if the webject does not contain it already. |
Param |
addUniqueValue(java.lang.String key,
java.lang.String value)
Adds a VALUE parameter to this webject only if the webject does not contain it already. |
Param |
addValue(java.lang.String keyval)
Adds a VALUE parameter to this webject. |
Param |
addValue(java.lang.String key,
java.lang.String value)
Adds a VALUE parameter to this webject. |
void |
addWebject(Webject webject)
Adds a new webject as a child of this webject. |
void |
clearParams()
Removes all parameters of this webject. |
java.lang.Object |
clone()
Returns a shallow copy of this webject. |
Webject |
deepClone()
Returns a deep copy of this webject. |
java.lang.String |
getClassName()
Returns the class name currently assigned to this webject. |
java.util.Map<java.lang.String,com.infoengine.object.factory.ParameterDef> |
getDefinition(java.lang.Class w_impl)
Retrieves a Map of parameter name to parameter definition for a webject implementation class. |
java.lang.String |
getGroupInName()
Returns the name of the default input group of this webject. |
java.util.Enumeration |
getGroupInNames()
Returns the names of all input groups currently associated with this webject. |
java.lang.String |
getGroupOutName()
Returns the name of the default output group of this webject. |
java.util.Enumeration |
getGroupOutNames()
Returns the names of all output groups currently associated with this webject. |
Param |
getKey(java.lang.String name)
Returns the KEY parameter with the specified name. |
java.util.Enumeration |
getKeys()
Returns all of the KEY parameters contained in this webject. |
java.util.Enumeration |
getMessages()
Returns any warning or error messages generated by this webject. |
java.lang.String |
getMetaValue(java.lang.String name)
Returns a meta value from this webject by name. |
java.lang.String |
getName()
Returns the name currently assigned to this webject. |
IeNode |
getNode()
Returns the internal IeNode object of this webject. |
java.util.Enumeration |
getOutput()
Returns any output messages generated by this webject. |
Param |
getParam(java.lang.String name)
Returns a webject parameter by name. |
java.util.Enumeration |
getParamNames()
Returns the names of all parameters associated with this webject. |
java.util.Enumeration |
getParams(java.lang.String name)
Returns all of the webject parameters with a specified name. |
java.lang.String |
getPassword()
Returns the password currently associated with this webject. |
java.lang.String |
getType()
Returns the type currently assigned to this webject. |
java.lang.String |
getUserName()
Returns the username currently associated with this webject. |
Param |
getValue(java.lang.String name)
Returns the VALUE parameter with the specified name. |
java.util.Enumeration |
getValues()
Returns all of the VALUE parameters contained in this webject. |
java.util.Enumeration |
getWebjects()
Returns any webjects that are children of this webject. |
java.lang.Object |
objectParamValue(java.lang.String name)
Retrieves a strongly typed parameter value from this webject. |
java.lang.Object |
objectParamValue(java.lang.String name,
java.lang.Object defaultValue)
|
java.lang.String |
paramValue(java.lang.String name)
Returns the value of a webject parameter by name. |
java.lang.String |
paramValue(java.lang.String name,
java.lang.String defaultValue)
Returns the value of a webject parameter by name. |
java.util.Enumeration |
paramValues(java.lang.String name)
Returns all values of a named parameter of this webject. |
void |
printTree()
Prints the internal structure of this webject to System.out. |
void |
removeAllWebjects()
Removes all child webjects from this webject. |
void |
removeParam(Param param)
Removes a specific parameter from this webject. |
void |
removeParams(java.lang.String name)
Removes all parameters with a specified name from this webject. |
void |
removeWebject(Webject webject)
Removes a specific child webject from this webject. |
void |
setClassName(java.lang.String name)
Sets the class name assigned to this webject. |
void |
setName(java.lang.String name)
Sets the name of this webject. |
void |
setParam(Param param)
Sets a new parameter for this webject. |
void |
setPassword(java.lang.String pwd)
Sets the password associated with this webject. |
void |
setType(java.lang.String type)
Sets the type assigned to this webject. |
void |
setUserName(java.lang.String name)
Sets the username associated with this webject. |
Param |
setValue(java.lang.String key,
java.lang.String value)
Sets a VALUE parameter in this webject. |
java.lang.String |
toString()
Produces a String representation of this webject. |
void |
validate(java.lang.Class w_impl,
Task t)
Validates a webject based on its annotation definition (if any). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MESSAGE
public static final java.lang.String OUTPUT
public static final java.lang.String GROUP_IN
public static final java.lang.String GROUP_OUT
public static final java.lang.String CLASS
public static final java.lang.String TYPE
public static final java.lang.String UNKNOWN
public static final java.lang.String OBJECT
public static final java.lang.String EXTERNAL
public static final java.lang.String DISPLAY
public static final java.lang.String GROUP
public static final java.lang.String TASK
public static final byte[] text
| Constructor Detail |
|---|
public Webject()
public Webject(java.lang.String name)
name - The name of the webject.public Webject(IeNode node)
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - The webject's new name.public void setPassword(java.lang.String pwd)
pwd - The webject's new password.public java.lang.String getPassword()
public void setUserName(java.lang.String name)
name - The webject's new username.public java.lang.String getUserName()
public java.lang.String getType()
public void setType(java.lang.String type)
type - The webject's new type.public java.lang.String getClassName()
public void setClassName(java.lang.String name)
name - The webject's new class name.public java.lang.String getGroupInName()
public java.util.Enumeration getGroupInNames()
public java.lang.String getGroupOutName()
public java.util.Enumeration getGroupOutNames()
public void clearParams()
public void addParam(Param param)
param - The new parameter to be added.public void setParam(Param param)
param - The new parameter to be set.public void removeParam(Param param)
param - The parameter to be removed.public void removeParams(java.lang.String name)
name - The name of the parameter(s) to be removed.public java.lang.String paramValue(java.lang.String name)
name - The name of the desired parameter.
public java.lang.String paramValue(java.lang.String name,
java.lang.String defaultValue)
name - The name of the desired parameter.defaultValue - The default value to return if the parameter is not found.
public java.util.Enumeration paramValues(java.lang.String name)
name - The name of the desired parameter.
public Param getParam(java.lang.String name)
name - The name of the desired parameter.
public java.util.Enumeration getParams(java.lang.String name)
name - The name of the desired parameters. A null name causes all
parameters, regardless of name, to be returned.
public java.util.Enumeration getParamNames()
public java.lang.String getMetaValue(java.lang.String name)
name - The name of the desired meta value.
public void addMetaValue(java.lang.String name,
java.lang.String value)
name - The name of the new meta item.value - The value of the meta item.public void addMeta(IeMeta meta)
meta - The IeMeta object to be added.public Param getKey(java.lang.String name)
name - The name associated with the KEY parameter.
public java.util.Enumeration getKeys()
public Param addKey(java.lang.String key,
java.lang.String value)
key - The name of the new parameter.value - The value of the new parameter.
public Param addUniqueKey(java.lang.String key,
java.lang.String value)
key - The name of the new parameter.value - The value of the new parameter.
public Param getValue(java.lang.String name)
name - The name of the desired VALUE parameter.
public java.util.Enumeration getValues()
public Param addValue(java.lang.String key,
java.lang.String value)
key - The name of the new parameter.value - The value of the new parameter.
public Param addUniqueValue(java.lang.String key,
java.lang.String value)
key - The name of the new parameter.value - The value of the new parameter.
public Param setValue(java.lang.String key,
java.lang.String value)
key - The name of the new parameter.value - The value of the new parameter.
public Param addValue(java.lang.String keyval)
keyval - A key=value string representing a parameter.
public java.util.Enumeration getMessages()
public void addMessage(java.lang.String message)
message - The warning or error message to be added.public java.util.Enumeration getOutput()
public void addOutput(java.lang.String message)
message - The output message to be added.public java.lang.Object clone()
clone in class java.lang.Objectpublic Webject deepClone()
public IeNode getNode()
public java.util.Enumeration getWebjects()
public void addWebject(Webject webject)
webject - The new child webject.public void removeWebject(Webject webject)
webject - The child webject to be removed.public void removeAllWebjects()
public void printTree()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Map<java.lang.String,com.infoengine.object.factory.ParameterDef> getDefinition(java.lang.Class w_impl)
w_impl - The implementation.
public void validate(java.lang.Class w_impl,
Task t)
throws IEException
w_impl - The webject implementation class.
IEException - if based on the webject's definition a rule has been broken.
public java.lang.Object objectParamValue(java.lang.String name)
throws IEException
name - The parameter name.
IEException - if the incoming parameter is a bad value (not an int, not a boolean, etc.)
java.lang.IllegalArgumentException - if name is not a known parameter for the webject implementation.
public java.lang.Object objectParamValue(java.lang.String name,
java.lang.Object defaultValue)
throws IEException
IEException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||