Package oracle.rules.sdk2.dictionary
Class AbstractChoiceImpl
java.lang.Object
oracle.rules.sdk2.dictionary.AbstractChoiceImpl
- All Implemented Interfaces:
Serializable,Choice
- Direct Known Subclasses:
AbstractVerbalChoice,ChoiceImpl
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface oracle.rules.sdk2.dictionary.Choice
Choice.Kind -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet alternate value of choice (not necessarily a valid value).Get children as immutable list.Get the dictionary component that defines this choice.Get a description of the choicegetDescription(boolean translate) Get a description of the choicegetID()get the Dictionary Object ID (DOID) associated with this ChoicegetKind()Get the kind of this choice.If the type of choice is List, get the data type of the content of the ListgetListContentType(boolean translate) If the type of choice is List, get the data type of the content of the ListIf the type of choice is List, get the Dictionary Object ID (DOID) of the type of the content of the ListGet the literal name associated with this choice, or null if none.getName()Get the name of the choicegetName(boolean translate) Get the name of the choice, typically the last component of the value, relative to the parentGet parent choiceGet the translated name of the choice, or null of noneDeprecated.use #getName(true)Get the translated value of the choice, or null if none.Deprecated.use #getValue(true)getType()Get the data type of the choicegetType(boolean translate) Get the data type of the choiceget the Dictionary Object ID (DOID) of the type of this ChoicegetValue()Get the value of the choice, suitable for input toSettableProperty.setValue(T)getValue(boolean translate) Get the value of the choiceGet the 'Verbal' value of the Choice.getVerbalValue(boolean translate) Get the (optionally translated) 'Verbal' value of the choicebooleancan the choice be used as the target of an assignment?booleancan some ancestor of the choice be used as the target of an assignment?booleanShould the choice be expanded to display first order children?booleanisGlobal()is this choice or an ancestor static, a global variable, or a nullary function?booleanIs the name of this choice qualified by the name of this choice's parent?booleanis the Choice selectable?booleanisStatic()is the choice a Java static member?booleanCan the choice be used in a rule test?voidvoidvoidsetSelectable(boolean b) toString()
-
Method Details
-
isQualified
public boolean isQualified()Is the name of this choice qualified by the name of this choice's parent?- Specified by:
isQualifiedin interfaceChoice- Returns:
-
getKind
Get the kind of this choice.- Specified by:
getKindin interfaceChoice- Returns:
Choice.Kind
-
getName
Get the name of the choice -
getName
Description copied from interface:ChoiceGet the name of the choice, typically the last component of the value, relative to the parent -
getValue
Get the value of the choice, suitable for input toSettableProperty.setValue(T) -
getValue
Description copied from interface:ChoiceGet the value of the choice -
getVerbalValue
Get the 'Verbal' value of the Choice.- Specified by:
getVerbalValuein interfaceChoice- Returns:
- 'Verbal' value of this Choice if any, "" Otherwise
-
getVerbalValue
Get the (optionally translated) 'Verbal' value of the choice- Specified by:
getVerbalValuein interfaceChoice- Parameters:
translate- flag to optionally translate the value- Returns:
- 'Verbal' value of this Choice if any, "" Otherwise
-
getTranslatedValue
Deprecated.use #getValue(true)Get the translated value of the choice, suitable for input to TranslatedProperty.setTranslatedValue()- Specified by:
getTranslatedValuein interfaceChoice- Returns:
- translated value
-
getTranslatedName
Deprecated.use #getName(true)Get the translated name of the choice- Specified by:
getTranslatedNamein interfaceChoice- Returns:
- translated name
-
getTranslatedName
Get the translated name of the choice, or null of none- Returns:
- translated name, or ""
-
getTranslatedValue
Description copied from interface:ChoiceGet the translated value of the choice, or null if none.- Specified by:
getTranslatedValuein interfaceChoice- Returns:
- translated value, or null
-
getLiteralValue
Get the literal name associated with this choice, or null if none.- Specified by:
getLiteralValuein interfaceChoice
-
getChildren
Get children as immutable list.- Specified by:
getChildrenin interfaceChoice- Returns:
- immutable list
-
getParent
Description copied from interface:ChoiceGet parent choice -
isGlobal
public boolean isGlobal()is this choice or an ancestor static, a global variable, or a nullary function? -
isStatic
public boolean isStatic()is the choice a Java static member? -
isAssignable
public boolean isAssignable()can the choice be used as the target of an assignment?- Specified by:
isAssignablein interfaceChoice
-
isAssignablePrefix
public boolean isAssignablePrefix()can some ancestor of the choice be used as the target of an assignment?- Specified by:
isAssignablePrefixin interfaceChoice
-
isTestable
public boolean isTestable()Can the choice be used in a rule test?- Specified by:
isTestablein interfaceChoice
-
isExpanded
public boolean isExpanded()Should the choice be expanded to display first order children?- Specified by:
isExpandedin interfaceChoice
-
getDefinition
Description copied from interface:ChoiceGet 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.- Specified by:
getDefinitionin interfaceChoice- Returns:
- DictionaryComponent
-
getTypeID
Description copied from interface:Choiceget the Dictionary Object ID (DOID) of the type of this Choice -
getType
Get the data type of the choice -
getType
Description copied from interface:ChoiceGet the data type of the choice -
getListContentTypeID
Description copied from interface:ChoiceIf the type of choice is List, get the Dictionary Object ID (DOID) of the type of the content of the List- Specified by:
getListContentTypeIDin interfaceChoice- Returns:
- DOID or DOID.nil if the type of this choice is not List, or the content type of the list is unknown.
-
getListContentType
Description copied from interface:ChoiceIf the type of choice is List, get the data type of the content of the List- Specified by:
getListContentTypein interfaceChoice- Returns:
- alias of data type, or "" if no type
-
getListContentType
Description copied from interface:ChoiceIf the type of choice is List, get the data type of the content of the List- Specified by:
getListContentTypein interfaceChoice- Parameters:
translate- flag to translate the data type- Returns:
- alias of data type, or "" if no type
-
getID
get the Dictionary Object ID (DOID) associated with this Choice -
isSelectable
public boolean isSelectable()is the Choice selectable? If not, then you must choose a child Choice.- Specified by:
isSelectablein interfaceChoice- Returns:
- flag
-
getAltValue
Get alternate value of choice (not necessarily a valid value). E.g. the RL name of a class.- Specified by:
getAltValuein interfaceChoice- Returns:
- String
-
getDescription
Description copied from interface:ChoiceGet a description of the choice- Specified by:
getDescriptionin interfaceChoice- Returns:
- String
-
getDescription
Description copied from interface:ChoiceGet a description of the choice- Specified by:
getDescriptionin interfaceChoice- Parameters:
translate- flag to translate the description- Returns:
- String
-
setSelectable
public void setSelectable(boolean b) -
setName
-
setDefinition
-
toString
-
equals
-
getDictionary
-