Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1.6.3)

E10663-10


oracle.rules.sdk2.dictionary
Interface Choice


public interface Choice

A Choice provides a hierarchy of choices for a ChoosableProperty.


Nested Class Summary
static class Choice.Kind
          enumerate the kinds of choice

 

Method Summary
 java.lang.String getAltValue()
          Get alternate value, e.g.
 java.util.List<Choice> getChildren()
          Get children as list.
 DictionaryComponent getDefinition()
          Get the dictionary component that defines this choice.
 java.lang.String getDescription()
          Get a description of the choice
 DOID getID()
          get the Dictionary Object ID (DOID) associated with this Choice
 Choice.Kind getKind()
          Get the kind of this choice.
 java.lang.String getListContentType()
          If the type of choice is List, get the data type of the content of the List
 DOID getListContentTypeID()
          If the type of choice is List, get the Dictionary Object ID (DOID) of the type of the content of the List
 java.lang.String getLiteralValue()
          Get the literal value associated with this choice, or null if none.
 java.lang.String getName()
          Get the name of the choice, typically the last component of the value, relative to the parent
 Choice getParent()
          Get parent choice
 java.lang.String getTranslatedName(RuleDictionary dic)
          Get the translated name of the choice, typically the last component of the translated value, relative to the parent
 java.lang.String getTranslatedValue(RuleDictionary dic)
          Get the translated value of the choice, suitable for input to TranslatedProperty.setTranslatedValue()
 java.lang.String getType()
          Get the data type of the choice
 DOID getTypeID()
          get the Dictionary Object ID (DOID) of the type of this Choice
 java.lang.String getValue()
          Get the value of the choice, suitable for input to SettableProperty.setValue(T)
 boolean isAssignable()
          can the choice be used as the target of an assignment?
 boolean isAssignablePrefix()
          can some ancestor of the choice be used as the target of an assignment?
 boolean isGlobal()
          is this choice completely defined by the data model?
 boolean isQualified()
          Is the value of this choice qualified by the value of this choice's parent?
 boolean isSelectable()
          is the Choice selectable?
 boolean isStatic()
          is the choice a Java static member?
 boolean isTestable()
          Can the choice be used in a rule test?

 

Method Detail

getKind

Choice.Kind getKind()
Get the kind of this choice.
Returns:
Choice.Kind

getName

java.lang.String getName()
Get the name of the choice, typically the last component of the value, relative to the parent
Returns:
name

getTranslatedName

java.lang.String getTranslatedName(RuleDictionary dic)
Get the translated name of the choice, typically the last component of the translated value, relative to the parent
Returns:
translated name

getValue

java.lang.String getValue()
Get the value of the choice, suitable for input to SettableProperty.setValue(T)
Returns:
value

getTranslatedValue

java.lang.String getTranslatedValue(RuleDictionary dic)
Get the translated value of the choice, suitable for input to TranslatedProperty.setTranslatedValue()
Returns:
translated value

getLiteralValue

java.lang.String getLiteralValue()
Get the literal value associated with this choice, or null if none.

getAltValue

java.lang.String getAltValue()
Get alternate value, e.g. RL name
Returns:
String

getDescription

java.lang.String getDescription()
Get a description of the choice
Returns:
String

getType

java.lang.String getType()
Get the data type of the choice
Returns:
alias of data type, or "" if no type

getListContentType

java.lang.String getListContentType()
If the type of choice is List, get the data type of the content of the List
Returns:
alias of data type, or "" if no type

isSelectable

boolean isSelectable()
is the Choice selectable? If not, then you must choose a child Choice.
Returns:
flag

isGlobal

boolean isGlobal()
is this choice completely defined by the data model? i.e. a Java static, a global variable, or a function?

isStatic

boolean isStatic()
is the choice a Java static member?

getChildren

java.util.List<Choice> getChildren()
Get children as list. Children are in some sense contained by this Choice. E.g. a fact type may contain properties.
Returns:
list

getParent

Choice getParent()
Get parent choice
Returns:
parent in choice tree

getDefinition

DictionaryComponent getDefinition()
Get the dictionary component that defines this choice. E.g. if the choice's value is "emp.salary", return the salary property of the emp fact type. This method can be used to implement a "goto definition" capability in the UI.
Returns:
DictionaryComponent

getID

DOID getID()
get the Dictionary Object ID (DOID) associated with this Choice
Returns:
DOID or DOID.nil if no DOID exists for this choice.

getTypeID

DOID getTypeID()
get the Dictionary Object ID (DOID) of the type of this Choice
Returns:
DOID or DOID.nil if no type exists for this choice.

getListContentTypeID

DOID getListContentTypeID()
If the type of choice is List, get the Dictionary Object ID (DOID) of the type of the content of the List
Returns:
DOID or DOID.nil if the type of this choice is not List, or the content type of the list is unknown.

isQualified

boolean isQualified()
Is the value of this choice qualified by the value of this choice's parent?
Returns:

isAssignable

boolean isAssignable()
can the choice be used as the target of an assignment?

isAssignablePrefix

boolean isAssignablePrefix()
can some ancestor of the choice be used as the target of an assignment?

isTestable

boolean isTestable()
Can the choice be used in a rule test?

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1.6.3)

E10663-10


Copyright © 2012, Oracle and/or its affiliates. All rights reserved.