org.apache.jetspeed.profiler.rules
Interface RuleCriterion

All Superinterfaces:
Serializable

public interface RuleCriterion
extends Serializable

A RuleCriterion specifies one criterion in a list of profiling rule criteria. This list is used to build normalized profiling locator and then locate a portal resource based on the request.

Version:
$Id: RuleCriterion.java 188415 2005-03-23 22:15:25Z ate $
Author:
David Sean Taylor

Field Summary
static int FALLBACK_CONTINUE
           
static int FALLBACK_LOOP
           
static int FALLBACK_STOP
           
 
Method Summary
 int getFallbackOrder()
          Sets the fallback order for this criterion.
 int getFallbackType()
          Gets the fallback type for this criterion.
 String getName()
          Gets the name of the parameter, attribute or property in the portal request.
 String getRuleId()
          Gets the unique rule identifier for the associated owner rule
 String getType()
          Gets the rule request type for this specific criterion.
 String getValue()
          Gets the value of the parameter, attribute or property in the portal request.
 void setFallbackOrder(int order)
          Gets the fallback order for this criterion.
 void setFallbackType(int order)
          Sets the fallback type for this criterion.
 void setName(String name)
          Sets the name of the parameter, attribute or property in the portal request.
 void setRuleId(String ruleId)
          Sets the unique rule identifier for the associated owner rule
 void setType(String type)
          Sets the rule request type for this specific criterion.
 void setValue(String value)
          Sets the value of the parameter, attribute or property in the portal request.
 

Field Detail

FALLBACK_CONTINUE

public static final int FALLBACK_CONTINUE
See Also:
Constant Field Values

FALLBACK_STOP

public static final int FALLBACK_STOP
See Also:
Constant Field Values

FALLBACK_LOOP

public static final int FALLBACK_LOOP
See Also:
Constant Field Values
Method Detail

getType

public String getType()
Gets the rule request type for this specific criterion. Rule types determine which type of request property, parameter or attribute to look at when building a profiling locator.

Returns:
The request type associated with this criterion.

setType

public void setType(String type)
Sets the rule request type for this specific criterion. Rule types determine which type of request property, parameter or attribute to look at when building a profiling locator.


getFallbackOrder

public int getFallbackOrder()
Sets the fallback order for this criterion. Lower numbers are returned first during iteration. Higher numbers should be put on the locator stack first.

Returns:
The fallback order for this criterion.

setFallbackOrder

public void setFallbackOrder(int order)
Gets the fallback order for this criterion. Lower numbers are returned first during iteration. Higher numbers should be put on the locator stack first.

Parameters:
order - The fallback order for this criterion.

getFallbackType

public int getFallbackType()
Gets the fallback type for this criterion. Fallback types are used when locating a profiled resource. The type tells the Profiling rule what to do next on failed criterion matching. Known values: FALLBACK_CONTINUE - evaluate this criterion and if it fails continue to the next criterion FALLBACK_STOP - evaluate this criterion and if it fails stop evaluation criteria for this rule FALLBACK_LOOP - evaluate this criterion and if it fails continue evaluating

Returns:
The fallback type for this criterion, should be a valid value as shown above.

setFallbackType

public void setFallbackType(int order)
Sets the fallback type for this criterion. Fallback types are used when locating a profiled resource. The type tells the Profiling rule what to do next on failed criterion matching. Known values: FALLBACK_CONTINUE - evaluate this criterion and if it fails continue to the next criterion FALLBACK_STOP - evaluate this criterion and if it fails stop evaluation criteria for this rule FALLBACK_LOOP - evaluate this criterion and if it fails continue evaluating


getName

public String getName()
Gets the name of the parameter, attribute or property in the portal request. This name is used to lookup the value of the request parameter, attribute, or property when building a profile locator.

Returns:
The name of the request parameter, attribute or property.

setName

public void setName(String name)
Sets the name of the parameter, attribute or property in the portal request. This name is used to lookup the value of the request parameter, attribute, or property when building a profile locator.


getValue

public String getValue()
Gets the value of the parameter, attribute or property in the portal request.

Returns:
The value of the request parameter, attribute or property.

setValue

public void setValue(String value)
Sets the value of the parameter, attribute or property in the portal request.


getRuleId

public String getRuleId()
Gets the unique rule identifier for the associated owner rule

Returns:
The rule's unique identifier

setRuleId

public void setRuleId(String ruleId)
Sets the unique rule identifier for the associated owner rule



Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.