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


oracle.dss.rules.discriminator
Class ComponentTypeDiscriminator

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

public class ComponentTypeDiscriminator
extends java.lang.Object
implements DiscriminatorXML

Discriminator for a rule that applies when a DataView item is a particular component. For example, you could use this Discriminator to specify that numbers should be abbreviated when they mark values along the Y2-axis of a graph.

This Discriminator the component type integer from the RuleContext that describes the DataView item, with the internal component type integer in this Discriminator.

See Also:
Serialized Form

Constructor Summary
ComponentTypeDiscriminator()
          Constructor that does not specify a component type.
ComponentTypeDiscriminator(int componentType)
          Constructor that specifies a component type.

 

Method Summary
 boolean applies(RuleContext context)
          Indicates whether the ComponentType from the specified RuleContext matches the ComponentType for this ComponentTypeDiscriminator.
 java.lang.Object clone()
          Clones this ComponentTypeDiscriminator.
 int getComponentType()
          Retrieves the component type of this ComponentTypeDiscriminator.
 void setComponentType(int componentType)
          Specifies the type of component for this ComponentTypeDiscriminator.

 

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

ComponentTypeDiscriminator

public ComponentTypeDiscriminator()
Constructor that does not specify a component type. If you use this constructor, call the setComponentType method to specify the component.

ComponentTypeDiscriminator

public ComponentTypeDiscriminator(int componentType)
Constructor that specifies a component type.
Parameters:
componentType - A constant that represents the type of component that a DataView item is, such as Y2AXIS. Constants are defined in the sublasses of the DataView class.
See Also:
Crosstab, Graph, GridView
Method Detail

clone

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

getComponentType

public int getComponentType()
Retrieves the component type of this ComponentTypeDiscriminator.
Returns:
A constant that represents the type of component a DataView item must be in order for this ComponentTypeDiscriminator to apply. Constants are defined in the sublasses of the DataView class.
See Also:
Crosstab, Graph, GridView

setComponentType

public void setComponentType(int componentType)
Specifies the type of component for this ComponentTypeDiscriminator.
Parameters:
componentType - A constant that represents the type of component that a DataView item must be in order for this ComponentTypeDiscriminator to apply. Constants are defined in the sublasses of the DataView class.
See Also:
Crosstab, Graph, GridView

applies

public boolean applies(RuleContext context)
Indicates whether the ComponentType from the specified RuleContext matches the ComponentType for this ComponentTypeDiscriminator.
Specified by:
applies in interface Discriminator
Parameters:
context - The context of the item being painted.
Returns:
true if the component type in context is the same as the component type of this ComponentTypeDiscriminator, 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.