Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


oracle.dss.rules.discriminator
Class PositionDiscriminator

java.lang.Object
  |
  +--oracle.dss.rules.discriminator.PositionDiscriminator
All Implemented Interfaces:
java.lang.Cloneable, Discriminator, DiscriminatorXML, java.io.Serializable

public class PositionDiscriminator
extends java.lang.Object
implements DiscriminatorXML

Discriminator for a rule that applies when a DataView item is in a particular location. For example, you could use this Discriminator to specify that a DiscriminatorRule should apply to the first row in a crosstab or table.

This Discriminator compares an internal ComponentInfo class to a ComponentInfo class that is in the RuleContext that describes the item to be painted.

See Also:
DiscriminatorRule, RuleContext, ComponentInfo, Serialized Form

Constructor Summary
PositionDiscriminator()
          Constructor that does not take a ComponentInfo.
PositionDiscriminator(ComponentInfo componentInfo)
          Constructor that specifies a ComponentInfo.

 

Method Summary
 boolean applies(RuleContext context)
          Specifies whether the position in the specified RuleContext matches that of the position for this PositionDiscriminator.
 java.lang.Object clone()
          Clones this PositionDiscriminator.
 ComponentInfo getComponentInfo()
          Retrieves the ComponentInfo object of this PositionDiscriminator.
 void setComponentInfo(ComponentInfo componentInfo)
          Specifies the ComponentInfo object for this PositionDiscriminator.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface oracle.dss.rules.discriminator.DiscriminatorXML
getXML, setXML

 

Constructor Detail

PositionDiscriminator

public PositionDiscriminator()
Constructor that does not take a ComponentInfo. If you use this constructor, call the setComponentInfo method to specify the position.

PositionDiscriminator

public PositionDiscriminator(ComponentInfo componentInfo)
Constructor that specifies a ComponentInfo.
Parameters:
componentInfo - The ComponentInfo object that specifies the position that a DataView item must occupy in order for this PositionDiscriminator to apply.
Method Detail

clone

public java.lang.Object clone()
Clones this PositionDiscriminator.
Specified by:
clone in interface Discriminator
Returns:
The clone of this PositionDiscriminator.

getComponentInfo

public ComponentInfo getComponentInfo()
Retrieves the ComponentInfo object of this PositionDiscriminator.
Returns:
The ComponentInfo object that specifies the position that a DataView item must occupy in order for this PositionDiscriminator to apply.

setComponentInfo

public void setComponentInfo(ComponentInfo componentInfo)
Specifies the ComponentInfo object for this PositionDiscriminator.
Parameters:
componentInfo - The ComponentInfo object that specifies the position that a DataView item must occupy in order for this PositionDiscriminator to apply.

applies

public boolean applies(RuleContext context)
Specifies whether the position in the specified RuleContext matches that of the position for this PositionDiscriminator. This method compares ComponentInfo objects.
Specified by:
applies in interface Discriminator
Parameters:
context - The context of the item to be painted.
Returns:
true if the ComponentInfo of the specified RuleContext is equivalent to the ComponentInfo for this PositionDiscriminator, false if not.

Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


Copyright © 2003, Oracle. All Rights Reserved.