|
Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components 11g Release 1 (11.1.1) E12063-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.dss.rules.discriminator.ConditionDiscriminator
public class ConditionDiscriminator
Field Summary | |
---|---|
protected java.lang.Object |
m_dataCondition |
protected java.lang.String |
m_dataMap |
static java.lang.String |
NAME_DC_DISC |
Constructor Summary | |
---|---|
ConditionDiscriminator() Constructor that does not specify a data condition If you use this constructor, call the setDataCondition method to specify a DataCondition either SimpleCondition or CompoundCondition for this Discriminator . |
|
ConditionDiscriminator(java.lang.Object dc, java.lang.String dataMap) Constructor that specifies a data condition. |
Method Summary | |
---|---|
boolean |
applies(RuleContext context) Specifies whether this Discriminator applies. |
java.lang.Object |
clone() Clones this Discriminator . |
java.lang.Object |
getDataCondition() get the data condition |
oracle.dss.util.xml.ObjectNode |
getXML(boolean allProperties, ComponentTypeConverter converter, boolean emptyElement) Retrieves XML that represents properties and their values in the form of and ObjectNode . |
void |
setDataCondition(java.lang.Object dc, java.lang.String dataMap) set the specified DataCondition . |
boolean |
setXML(oracle.dss.util.xml.ObjectNode node, ComponentTypeConverter converter, java.lang.String version, int reset) Specifies XML that represents properties and values. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object m_dataCondition
protected java.lang.String m_dataMap
public static final java.lang.String NAME_DC_DISC
Constructor Detail |
---|
public ConditionDiscriminator()
setDataCondition
method to specify a DataCondition either SimpleCondition
or CompoundCondition
for this Discriminator
.public ConditionDiscriminator(java.lang.Object dc, java.lang.String dataMap)
dc
- DataCondition either SimpleCondition
or CompoundCondition
that should be satisfied in order for this ConditionDiscriminator
to apply.dataMap
- DataMap type associated with the given condition. This DataMap can be retrieved using the setExpressions in DataDirector3.SimpleCondition
, CompoundCondition
, oracle.dss.util.DataDirector3#getCompatibleDataItemMetadata
, oracle.dss.util.DataDirector3#setExpressions
Method Detail |
---|
public void setDataCondition(java.lang.Object dc, java.lang.String dataMap)
DataCondition
.dc
- DataCondition either SimpleCondition
or CompoundCondition
that should be satisfied in order for this ConditionDiscriminator
to apply.dataMap
- DataMap type associated with the given condition. This DataMap can be retrieved using the setExpressions in DataDirector3.SimpleCondition
, CompoundCondition
, oracle.dss.util.DataDirector3#getCompatibleDataItemMetadata
, oracle.dss.util.DataDirector3#setExpressions
public java.lang.Object getDataCondition()
SimpleCondition
or CompoundCondition
that should be satisfied in order for this ConditionDiscriminator
to apply.SimpleCondition
, CompoundCondition
public boolean applies(RuleContext context)
Discriminator
applies. Compares the information in the specified RuleContext
with its internal information. If they match, this Discriminator
applies.applies
in interface Discriminator
context
- The context of the item to be painted.true
if the information from the context meets the condition specified in this Discriminator
, false
if not.public java.lang.Object clone()
Discriminator
.clone
in interface Discriminator
clone
in class java.lang.Object
Discriminator
.public oracle.dss.util.xml.ObjectNode getXML(boolean allProperties, ComponentTypeConverter converter, boolean emptyElement)
ObjectNode
.getXML
in interface DiscriminatorXML
allProperties
- true
to store all property values in XML, false
to store only values that are different from default values.converter
- A converter that converts component strings to integers and integers to strings.emptyElement
- true
if an empty element needs to be returned when none of the property values have changed from default. false
if null should should be returned when none of the property values have changed from default. This argument is considered only if allProperties
is false
.public boolean setXML(oracle.dss.util.xml.ObjectNode node, ComponentTypeConverter converter, java.lang.String version, int reset)
ConditionDiscriminator
.setXML
in interface DiscriminatorXML
node
- ObjectNode
that has the properties and their values.converter
- A converter that converts component strings to integers and vice versa.version
- The XML version.reset
- A constant that indicates how much to reset when XML is applied. Valid values are listed in the See Also section.true
if XML is properly applied, false
if the XML cannot be applied.Rule.RESET_NONE
, Rule.RESET_XML_PROPERTIES
, Rule.RESET_EVERYTHING
|
Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components 11g Release 1 (11.1.1) E12063-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |