|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.object.factory.Webject
Field Summary | |
static String |
CLASS
|
private static int |
counter
|
static String |
DISPLAY
|
static String |
EXTERNAL
|
static String |
GROUP
|
static String |
GROUP_IN
|
static String |
GROUP_OUT
|
static String |
MESSAGE
|
private IeNode |
myNode
|
static String |
OBJECT
|
static String |
OUTPUT
|
static String |
TASK
|
static byte[] |
text
|
static String |
TYPE
|
static String |
UNKNOWN
|
Constructor Summary | |
Webject()
Constructs an unnamed webject. |
|
Webject(IeNode node)
Constructs a webject wrapper around an existing set of parameters. |
|
Webject(String name)
Constructs a named webject. |
Method Summary | |
Param |
addKey(String key,
String value)
Adds a KEY parameter to this webject. |
void |
addMessage(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(String name,
String value)
Adds a meta item to this webject with a specific name and value. |
void |
addOutput(String message)
Adds an output message to this webject. |
void |
addParam(Param param)
Adds a new parameter to this webject. |
Param |
addUniqueKey(String key,
String value)
Adds a KEY parameter to this webject only if the webject does not contain it already. |
Param |
addUniqueValue(String key,
String value)
Adds a VALUE parameter to this webject only if the webject does not contain it already. |
Param |
addValue(String keyval)
Adds a VALUE parameter to this webject. |
Param |
addValue(String key,
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. |
Object |
clone()
Returns a shallow copy of this webject. |
Webject |
deepClone()
Returns a deep copy of this webject. |
String |
getClassName()
Returns the class name currently assigned to this webject. |
String |
getGroupInName()
Returns the name of the default input group of this webject. |
Enumeration |
getGroupInNames()
Returns the names of all input groups currently associated with this webject. |
String |
getGroupOutName()
Returns the name of the default output group of this webject. |
Enumeration |
getGroupOutNames()
Returns the names of all output groups currently associated with this webject. |
Param |
getKey(String name)
Returns the KEY parameter with the specified name. |
Enumeration |
getKeys()
Returns all of the KEY parameters contained in this webject. |
Enumeration |
getMessages()
Returns any warning or error messages generated by this webject. |
String |
getMetaValue(String name)
Returns a meta value from this webject by name. |
String |
getName()
Returns the name currently assigned to this webject. |
IeNode |
getNode()
Returns the internal IeNode object of this webject. |
Enumeration |
getOutput()
Returns any output messages generated by this webject. |
Param |
getParam(String name)
Returns a webject parameter by name. |
protected Param |
getParam(String name,
int type)
Returns a webject parameter of a specific type by name. |
Enumeration |
getParamNames()
Returns the names of all parameters associated with this webject. |
Enumeration |
getParams(String name)
Returns all of the webject parameters with a specified name. |
protected Enumeration |
getParams(String name,
int type)
Returns all of the webject parameters with a specified name and type. |
String |
getPassword()
Returns the password currently associated with this webject. |
String |
getType()
Returns the type currently assigned to this webject. |
String |
getUserName()
Returns the username currently associated with this webject. |
Param |
getValue(String name)
Returns the VALUE parameter with the specified name. |
Enumeration |
getValues()
Returns all of the VALUE parameters contained in this webject. |
Enumeration |
getWebjects()
Returns any webjects that are children of this webject. |
protected static IeNode |
newStructure()
Returns a new webject structure. |
private static int |
nextSeqNo()
|
String |
paramValue(String name)
Returns the value of a webject parameter by name. |
String |
paramValue(String name,
String defaultValue)
Returns the value of a webject parameter by name. |
Enumeration |
paramValues(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(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(String name)
Sets the class name assigned to this webject. |
void |
setName(String name)
Sets the name of this webject. |
protected void |
setNode(IeNode node)
Sets the internal IeNode object of this webject. |
void |
setParam(Param param)
Sets a new parameter for this webject. |
void |
setPassword(String pwd)
Sets the password associated with this webject. |
void |
setType(String type)
Sets the type assigned to this webject. |
void |
setUserName(String name)
Sets the username associated with this webject. |
Param |
setValue(String key,
String value)
Sets a VALUE parameter in this webject. |
String |
toString()
Produces a String representation of this webject. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static int counter
public static final String MESSAGE
public static final String OUTPUT
public static final String GROUP_IN
public static final String GROUP_OUT
public static final String CLASS
public static final String TYPE
public static final String UNKNOWN
public static final String OBJECT
public static final String EXTERNAL
public static final String DISPLAY
public static final String GROUP
public static final String TASK
public static final byte[] text
private IeNode myNode
Constructor Detail |
public Webject()
public Webject(String name)
name
- The name of the webject.public Webject(IeNode node)
Method Detail |
public String getName()
public void setName(String name)
name
- The webject's new name.public void setPassword(String pwd)
pwd
- The webject's new password.public String getPassword()
public void setUserName(String name)
name
- The webject's new username.public String getUserName()
public String getType()
public void setType(String type)
type
- The webject's new type.public String getClassName()
public void setClassName(String name)
name
- The webject's new class name.public String getGroupInName()
public Enumeration getGroupInNames()
public String getGroupOutName()
public 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(String name)
name
- The name of the parameter(s) to be removed.public String paramValue(String name)
name
- The name of the desired parameter.
public String paramValue(String name, String defaultValue)
name
- The name of the desired parameter.defaultValue
- The default value to return if the parameter is not found.
public Enumeration paramValues(String name)
name
- The name of the desired parameter.
public Param getParam(String name)
name
- The name of the desired parameter.
protected Param getParam(String name, int type)
name
- The name of the desired parameter.type
- The type of the desired parameter.
public Enumeration getParams(String name)
name
- The name of the desired parameters. A null name causes all
parameters, regardless of name, to be returned.
protected Enumeration getParams(String name, int type)
name
- The name of the desired parameters. A null name causes all
parameters, regardless of name, to be returned if they have
the specified type.type
- The type of the desired parameters. Param.UNKNOWN causes all
parameters, regardless of type, to be returned if they have
the specified name.
public Enumeration getParamNames()
public String getMetaValue(String name)
name
- The name of the desired meta value.
public void addMetaValue(String name, 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(String name)
name
- The name associated with the KEY parameter.
public Enumeration getKeys()
public Param addKey(String key, String value)
key
- The name of the new parameter.value
- The value of the new parameter.
public Param addUniqueKey(String key, String value)
key
- The name of the new parameter.value
- The value of the new parameter.
public Param getValue(String name)
name
- The name of the desired VALUE parameter.
public Enumeration getValues()
public Param addValue(String key, String value)
key
- The name of the new parameter.value
- The value of the new parameter.
public Param addUniqueValue(String key, String value)
key
- The name of the new parameter.value
- The value of the new parameter.
public Param setValue(String key, String value)
key
- The name of the new parameter.value
- The value of the new parameter.
public Param addValue(String keyval)
keyval
- A key=value string representing a parameter.
public Enumeration getMessages()
public void addMessage(String message)
message
- The warning or error message to be added.public Enumeration getOutput()
public void addOutput(String message)
message
- The output message to be added.public Object clone()
public Webject deepClone()
private static int nextSeqNo()
protected static IeNode newStructure()
public IeNode getNode()
protected void setNode(IeNode node)
node
- The new set of parameters and meta that define this webject.public 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 String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |