org.apache.jetspeed.profiler.rules.impl
Class RuleCriterionImpl

java.lang.Object
  extended by org.apache.jetspeed.profiler.rules.impl.RuleCriterionImpl
All Implemented Interfaces:
java.io.Serializable, RuleCriterion

public class RuleCriterionImpl
extends java.lang.Object
implements RuleCriterion

RuleCriterionImpl

Version:
$Id: RuleCriterionImpl.java 516448 2007-03-09 16:25:47Z ate $
Author:
David Sean Taylor
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.jetspeed.profiler.rules.RuleCriterion
FALLBACK_CONTINUE, FALLBACK_LOOP, FALLBACK_STOP
 
Constructor Summary
RuleCriterionImpl()
           
RuleCriterionImpl(RuleCriterion master)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          two objects of type RuleCriterion should be considered equal if their name and type are the same
 int getFallbackOrder()
          Sets the fallback order for this criterion.
 int getFallbackType()
          Gets the fallback type for this criterion.
 java.lang.String getName()
          Gets the name of the parameter, attribute or property in the portal request.
 java.lang.String getRuleId()
          Gets the unique rule identifier for the associated owner rule
 java.lang.String getType()
          Gets the rule request type for this specific criterion.
 java.lang.String getValue()
          Gets the value of the parameter, attribute or property in the portal request.
 void setFallbackOrder(int i)
          Gets the fallback order for this criterion.
 void setFallbackType(int i)
          Sets the fallback type for this criterion.
 void setName(java.lang.String name)
          Sets the name of the parameter, attribute or property in the portal request.
 void setRuleId(java.lang.String ruleId)
          Sets the unique rule identifier for the associated owner rule
 void setType(java.lang.String type)
          Sets the rule request type for this specific criterion.
 void setValue(java.lang.String value)
          Sets the value of the parameter, attribute or property in the portal request.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleCriterionImpl

public RuleCriterionImpl()

RuleCriterionImpl

public RuleCriterionImpl(RuleCriterion master)
Method Detail

equals

public boolean equals(java.lang.Object o)
two objects of type RuleCriterion should be considered equal if their name and type are the same

Overrides:
equals in class java.lang.Object

getType

public java.lang.String getType()
Description copied from interface: RuleCriterion
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.

Specified by:
getType in interface RuleCriterion
Returns:
The request type associated with this criterion.

setType

public void setType(java.lang.String type)
Description copied from interface: RuleCriterion
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.

Specified by:
setType in interface RuleCriterion

getName

public java.lang.String getName()
Description copied from interface: RuleCriterion
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.

Specified by:
getName in interface RuleCriterion
Returns:
The name of the request parameter, attribute or property.

setName

public void setName(java.lang.String name)
Description copied from interface: RuleCriterion
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.

Specified by:
setName in interface RuleCriterion

getRuleId

public java.lang.String getRuleId()
Description copied from interface: RuleCriterion
Gets the unique rule identifier for the associated owner rule

Specified by:
getRuleId in interface RuleCriterion
Returns:
The rule's unique identifier

setRuleId

public void setRuleId(java.lang.String ruleId)
Description copied from interface: RuleCriterion
Sets the unique rule identifier for the associated owner rule

Specified by:
setRuleId in interface RuleCriterion

getFallbackOrder

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

Specified by:
getFallbackOrder in interface RuleCriterion
Returns:
The fallback order for this criterion.

getValue

public java.lang.String getValue()
Description copied from interface: RuleCriterion
Gets the value of the parameter, attribute or property in the portal request.

Specified by:
getValue in interface RuleCriterion
Returns:
The value of the request parameter, attribute or property.

setFallbackOrder

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

Specified by:
setFallbackOrder in interface RuleCriterion
Parameters:
i - The fallback order for this criterion.

setValue

public void setValue(java.lang.String value)
Description copied from interface: RuleCriterion
Sets the value of the parameter, attribute or property in the portal request.

Specified by:
setValue in interface RuleCriterion

getFallbackType

public int getFallbackType()
Description copied from interface: RuleCriterion
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

Specified by:
getFallbackType in interface RuleCriterion
Returns:
The fallback type for this criterion, should be a valid value as shown above.

setFallbackType

public void setFallbackType(int i)
Description copied from interface: RuleCriterion
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

Specified by:
setFallbackType in interface RuleCriterion


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