|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.netuix.laf.genes.mutators.Classifier
public class Classifier
Classifier
performs selective evaluation of gene values based on client classifications. Arguments to this mutator are target genes to be evaluated based on client classification matches. For example:
<gene name="foo"> <value>defaultValue</value> <mutator name="classifier"> <arg name="ie">ie-gene</arg> <arg name="mozilla">moz-gene</arg> </mutator> </gene> <gene name="ie_gene"> <value>ieValue</value> </gene> <gene name="moz_gene"> <value>mozillaValue</value> </gene>
If the client is classified as "ie", this mutator will return the value of the gene named "ie-gene". If the client classification does not match any of the specified arguments, the value of the gene itself is returned.
ClientClassifier
, Serialized FormMethod Summary | |
---|---|
String |
mutate(String mutatorName, String currentValue, Gene gene, Map<String,String> args, MutationContext context) Performs selective evaulation of specified genes based on client classification. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String mutate(String mutatorName, String currentValue, Gene gene, Map<String,String> args, MutationContext context) throws MutationException
argument | required? | value | notes |
---|---|---|---|
any client classificaiton name | no | name of target gene to evaluate | multiple client classifications can be specified as separate arguments |
mutate
in interface Mutator
mutatorName
- IgnoredcurrentValue
- default value to use if no argument matches the current classificationargs
- See abovegene
- The gene being mutatedcontext
- The context for mutationMutationException
- If there is a problem with the mutation process
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.