|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.rule.init.AbstractAlgoValue
Supported API: false
Extendable: false
Field Summary | |
String |
algorithm
The name of the algorithm class than can be usd to compute this attribute's value. |
List |
args
The list of arguments that are passed to the algorithm in order to compute this attribute value. |
private static String |
CLASSNAME
|
private static String |
RESOURCE
|
Fields inherited from interface wt.rule.init.AlgoValue |
ALGORITHM, ARGS |
Constructor Summary | |
AbstractAlgoValue(String algorithm)
Create a new algorithm value using the specified parameters. |
Method Summary | |
void |
addArg(Attr arg)
Add the specified value to the list of arguments to be passed to this specification's algorithm. |
void |
addArg(String arg)
Add the specified value to the list of arguments to be passed to this specification's algorithm. |
void |
addArg(Value arg)
Add the specified value to the list of arguments to be passed to this specification's algorithm. |
protected void |
copyArgsTo(AlgoValue copy)
Copy the args of this AlgoValue to another AlgoValue
specification. |
boolean |
equals(Object obj)
Supported API: false |
protected static boolean |
equals(Object o1,
Object o2)
Return true if both objects are null or
o1.equals(o2) is true. |
String |
getAlgorithm()
Gets the value of the attribute: algorithm; The name of the algorithm class than can be usd to compute this attribute's value. |
Object |
getArg(int index)
Returns the arg at the specified position in the argument list. |
List |
getArgs()
Gets the value of the attribute: args; The list of arguments that are passed to the algorithm in order to compute this attribute value. |
Object |
removeArg(int index)
Removes the argument at the specified position in the argument list. |
Object |
setArg(int index,
Object arg)
Replaces the argument at the specified position in the argument list with the specified argument. |
String |
toString()
|
protected void |
writeArgs(Writer writer,
String indent)
Write the XML for this value's args to the specified Writer . |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wt.rule.init.InitRuleElem |
getObjType, writeXML |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public final String algorithm
public final List args
Constructor Detail |
public AbstractAlgoValue(String algorithm)
algorithm
- the algorithm that is used to compute the attribute's valueMethod Detail |
public void addArg(String arg)
addArg
in interface AlgoValue
arg
- an argument for this specification's algorithmpublic void addArg(Attr arg)
addArg
in interface AlgoValue
arg
- public void addArg(Value arg)
addArg
in interface AlgoValue
arg
- public Object getArg(int index) throws IndexOutOfBoundsException
getArg
in interface AlgoValue
index
- index of argument to return
IndexOutOfBoundsException
public Object setArg(int index, Object arg) throws IndexOutOfBoundsException, IllegalArgumentException
setArg
in interface AlgoValue
index
- index of argument to replacearg
- argument to be stored at the specified position
IndexOutOfBoundsException
IllegalArgumentException
public Object removeArg(int index) throws IndexOutOfBoundsException
removeArg
in interface AlgoValue
index
- the index of the argument to removed
IndexOutOfBoundsException
protected void copyArgsTo(AlgoValue copy)
AlgoValue
to another AlgoValue
specification.
copy
- the parent to copy topublic boolean equals(Object obj)
obj
-
public String getAlgorithm()
getAlgorithm
in interface AlgoValue
public List getArgs()
getArgs
in interface AlgoValue
public String toString()
protected static boolean equals(Object o1, Object o2)
null
or
o1.equals(o2)
is true.
protected void writeArgs(Writer writer, String indent) throws IOException
Writer
.
writer
-
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |