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

E10663-11

oracle.rules.sdk2.datamodel
Class FactType

java.lang.Object
  extended by oracle.rules.sdk2.dictionary.DictionaryObject
      extended by oracle.rules.sdk2.dictionary.DictionaryComponent
          extended by oracle.rules.sdk2.datamodel.ModelComponent
              extended by oracle.rules.sdk2.datamodel.FactType
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>
Direct Known Subclasses:
AdfBcFactType, JavaFactType, PrimitiveFactType, RLFactType

public abstract class FactType
extends ModelComponent

Represents either a primitive type, a java type, a JAXB type, an RL type or an ADF-BC type

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class oracle.rules.sdk2.dictionary.DictionaryComponent
DictionaryComponent.Diff, DictionaryComponent.DiffType
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
static java.lang.String ADF_BC
           
static java.lang.String ARRAY
           
static java.lang.String JAVA
          Forms
static java.lang.String JAXB
           
static java.lang.String PRIMITIVE
           
static java.lang.String RL
           
 
Fields inherited from class oracle.rules.sdk2.dictionary.DictionaryComponent
PROP_ACCESS, PROP_ACTION_SELECTED, PROP_ACTION_TABLE, PROP_ACTIVE, PROP_ADVANCED_MODE, PROP_AGGREGATE, PROP_AGGREGATE_TABLE, PROP_ALIAS, PROP_ALLOW_GAPS, PROP_ALWAYS_SELECTED, PROP_ARRAY, PROP_ARRAY_COMPONENT_TYPE, PROP_ARRAY_COMPONENT_TYPE_ID, PROP_ARRAY_FACT_TYPE_TABLE, PROP_AUTO_CONFLICT_RESOLUTION, PROP_AUTO_PATTERN_PROPERTY, PROP_BODY, PROP_BUCKET_ID_TABLE, PROP_BUCKET_SET, PROP_BUCKET_SET_ID, PROP_BUCKET_SET_TABLE, PROP_BUCKET_TABLE, PROP_CALENDAR_FORM, PROP_CHECK_RULE_FLOW, PROP_CHILD_DIMENSION_NODES, PROP_CONFLICT, PROP_CONFLICT_POLICY, PROP_CONNECTIVE, PROP_CONSTANT, PROP_CONSTRUCTOR, PROP_CONSTRUCTOR_TABLE, PROP_CREATION_UPDATE_NUMBER, PROP_CURSOR_POSITION, PROP_CUSTOM_BINDING, PROP_CUSTOMIZABLE, PROP_CUSTOMIZABLE_TEMPLATE, PROP_DATA_MODEL, PROP_DATA_SOURCE, PROP_DECISION_FUNCTION, PROP_DECISION_FUNCTION_INPUT_TABLE, PROP_DECISION_FUNCTION_OUTPUT_TABLE, PROP_DECISION_FUNCTION_RULESET_TABLE, PROP_DECISION_FUNCTION_TABLE, PROP_DESCRIPTION, PROP_DICTIONARY_LINK_TABLE, PROP_DIMENSION_NODE_TABLE, PROP_DIMENSION_TABLE, PROP_DT_ACTION_NODE_TABLE, PROP_DT_ACTION_PARAMETER_NAME, PROP_DTACTION_TABLE, PROP_DTRULE_TABLE, PROP_EFFECTIVE_END_DATE, PROP_EFFECTIVE_START_DATE, PROP_ENUM, PROP_ENUM_BUCKET_SET, PROP_ENUM_BUCKET_SET_ID, PROP_ENUM_TYPE, PROP_EXCEPTION_IDS, PROP_EXCEPTIONS, PROP_EXCLUDED, PROP_EXPRESSION, PROP_EXPRESSION_TABLE, PROP_FACT_PATH, PROP_FACT_PATH_IDS, PROP_FACT_TYPE, PROP_FACT_TYPE_ID, PROP_FACT_TYPE_TABLE, PROP_FIELD_TABLE, PROP_FINAL, PROP_FORM, PROP_FORMAL_PARAMETER_TABLE, PROP_FUNCTION, PROP_FUNCTION_ID, PROP_FUNCTION_SIGNATURE, PROP_FUNCTION_TABLE, PROP_GENERATED_FROM, PROP_ID, PROP_INCLUDED, PROP_INTERFACE, PROP_INTERFACE_IDS, PROP_INTERFACES, PROP_IS_ABSTRACT, PROP_IS_CONSTANT, PROP_IS_ENUM, PROP_IS_FINAL, PROP_IS_JAXB2, PROP_IS_PRIMARY_KEY, PROP_IS_STATIC, PROP_IS_TOPLEVEL_VIEW_OBJECT, PROP_LEFT, PROP_LIFECYCLE, PROP_LIFECYCLE_DESCRIPTION, PROP_LIST, PROP_LIST_CONTENT_TYPE, PROP_LIST_CONTENT_TYPE_ID, PROP_LOCAL, PROP_LOGICAL, PROP_METHOD_TABLE, PROP_MODIFIERS, PROP_NAME, PROP_NAMESPACE, PROP_NESTED_TABLE, PROP_NO_CONFLICT, PROP_NODE_NAME, PROP_OPERATOR, PROP_OPERATOR_ID, PROP_ORDER_RULES_BY_BUCKET, PROP_OTHERWISE, PROP_OUTPUT_TYPES, PROP_OVERLOADED_PARAMETER_TABLE, PROP_OVERRIDDEN_BY, PROP_OVERRIDE, PROP_PACKAGE, PROP_PARAMETER_ALIAS, PROP_PARAMETER_ID, PROP_PARAMETER_LIST, PROP_PARAMETER_NAME, PROP_PARAMETER_REQUIRED, PROP_PARAMETER_TYPE_IDS, PROP_PARAMETER_TYPES, PROP_PARENT_DIMENSION_NODE, PROP_PATTERN_TABLE, PROP_PREFIX_LINKED_NAMES, PROP_PRIORITY, PROP_PRIVATE_BUCKET_SET, PROP_PROPERTIES, PROP_PROPERTY_TABLE, PROP_READABLE, PROP_REF_ID, PROP_REPORT_BYUSE_NAMES, PROP_REPORT_PATTERNS, PROP_RESOLVED_TARGET, PROP_RESOLVED_VALUE, PROP_RESOURCE_BUNDLE, PROP_RETURN_TYPE, PROP_RIGHT, PROP_RIGHT_SEPARATOR, PROP_RULE_FIRING_LIMIT, PROP_RULE_FIRING_LIMIT_ERROR, PROP_RULE_REPORT_TABLE, PROP_RULE_SET_TABLE, PROP_RULE_SHEET_TABLE, PROP_RULE_TABLE, PROP_RULESET, PROP_RUN_AFTER, PROP_RUN_BEFORE, PROP_SERVICE_CONFIGURATION, PROP_SERVICE_NAME, PROP_SERVICE_NAMESPACE, PROP_SHARED_BUCKET_SET, PROP_SHARED_BUCKET_SET_ID, PROP_SHOW_CONSTANTS, PROP_SHOW_FUNCTIONS, PROP_SHOW_VARIABLES, PROP_SIMPLE_TEST_TABLE, PROP_SOURCE, PROP_STATELESS, PROP_STATIC, PROP_SUPER_CLASS, PROP_SUPER_CLASS_ID, PROP_SUPPORT_XPATH, PROP_SUPPORTS_XPATH_ENABLED, PROP_SYSTEM, PROP_TARGET, PROP_TARGET_PACKAGE, PROP_TEST_FORM, PROP_TIMESTAMP, PROP_TOKEN_UNDER_CURSOR, PROP_TRANSLATED_ALIAS, PROP_TRANSLATED_DESCRIPTION, PROP_TRANSLATED_PARAMETER_LIST, PROP_TRANSLATED_VARIABLE, PROP_TREE, PROP_TREE_MODE, PROP_TYPE, PROP_TYPE_ID, PROP_TYPE_IDS, PROP_TYPES, PROP_UNSAVED_TRANSLATED_ALIAS, PROP_UNSAVED_TRANSLATED_DESCRIPTION, PROP_UPDATE_NUMBER, PROP_UPDATE_TIME, PROP_VALIDATION_UPDATE_NUMBER, PROP_VALUE, PROP_VALUES, PROP_VARIABLE, PROP_VARIABLE_TABLE, PROP_VERSION, PROP_VISIBILITY_FILTER, PROP_VISIBILITY_FILTER_ENABLED, PROP_VISIBLE, PROP_WEB_SERVICE, PROP_WRITABLE, PROP_XML_NAME
 
Method Summary
 java.lang.Object get(java.lang.Object key)
          Generic property getter.
 java.lang.String getArrayComponentType()
          If the facttype represents an array, what is the component type of the array.
 DOID getArrayComponentTypeID()
           
 java.util.List<Property> getBeanProperties()
           
 java.util.List<Property> getBeanProperties(boolean readable, boolean writable)
           
 ConstructorTable getConstructorTable()
          Get constructors of the java fact type.
 TableProperty<Constructor> getConstructorTableProperty()
          Get ConstructorTable Property
 java.util.Set<DOID> getContainedTypeIDs()
           
 java.util.Collection<FactType> getContainedTypes()
           
 java.util.List<Property> getDeclaredBeanProperties()
           
 java.util.List<Property> getDeclaredBeanProperties(boolean readable, boolean writable)
           
 java.util.List<Field> getEnumFields()
          Get all the enum fields inside the java fact type
 FieldTable getFieldTable()
          Get fields of a java class
 TableProperty<Field> getFieldTableProperty()
          Get FieldTable Property
 java.lang.String getForm()
          Get the form of the fact type.
 java.lang.String[] getFormOptions()
          Get the list of possible form values
 TranslatedProperty getFormProperty()
          Get Form Property Do not use setValue()
 DOID[] getInterfaceIDs()
           
 java.util.List<java.lang.String> getInterfaces()
          Get interfaces the class implements.
 MethodTable getMethodTable()
          Get methods of the java fact type
 TableProperty<Method> getMethodTableProperty()
          Get MethodTable Property
 java.lang.String getPackages()
           
 PropertyTable getPropertyTable()
          Get all the bean properties of the Java fact type
 TableProperty<Property> getPropertyTableProperty()
          Get PropertyTable Property
 java.util.List<Property> getReadableBeanProperties()
           
 java.lang.String getSource()
          Get where the fact type is imported from.
 SettableProperty<java.lang.String> getSourceProperty()
          Get Source Property
 java.util.List<Field> getStaticFields()
          Get all the static fields inside the java fact type
 java.lang.String getSuperClass()
          Get alias of the super class of the current class.
 DOID getSuperClassID()
          Get ID of the super class of the current class.
 java.lang.String[] getSuperClassOptions()
          Get super class options.
 ChoosableProperty getSuperClassProperty()
          Get SuperClass Property
 int getSuperClassSelected()
          Get the index of the selected value for the super class options.
 java.util.List<Property> getWritableBeanProperties()
           
 java.lang.String getXMLName()
           
 boolean isAdfBc()
           
 boolean isAliasDistinct()
          are the names in the containing DictionaryComponentTable distinct?
 boolean isArray()
          Whether it is an array.
 boolean isEnum()
           
 boolean isJavaClass()
           
 boolean isJaxb()
           
 boolean isPrimitive()
           
 boolean isRLClass()
           
 boolean isVisibleFact()
           
 boolean isVisibleType()
           
 void setSource(java.lang.String source)
           
 void setSuperClass(java.lang.String superClassAlias)
          Set super class of the RL FactType
 void setSuperClassID(DOID superClassID)
          Set super class of the RL FactType
 void setVisibleFact(boolean b)
           
 void setVisibleType(boolean b)
           
 void validate(java.util.List<SDKException> errors, java.util.List<SDKWarning> warnings)
          Validate and append errors and warnings.
 
Methods inherited from class oracle.rules.sdk2.datamodel.ModelComponent
getParent, getParentTable, getVisibleProperty, isVisible, setVisible
 
Methods inherited from class oracle.rules.sdk2.dictionary.DictionaryComponent
clear, containsKey, containsValue, entrySet, getAlias, getAlias, getAlias, getAlias, getAliasProperty, getAllReferences, getCustom, getDependents, getDescription, getDescription, getDescriptionProperty, getDiff, getDiffProperties, getDiffs, getFullyQualifiedAlias, getFullyQualifiedName, getIndex, getIndex, getName, getNameProperty, getNext, getObjectPath, getOptions, getPrevious, getProperties, getProperty, getReferences, getSelected, getTranslatedAlias, getTranslatedAlias, getTranslatedDescription, hasDiff, init, init, isEmpty, isFullyQualifiedName, isNameDistinct, isSystemProperty, isUnsavedTranslatedAlias, isUnsavedTranslatedDescription, keySet, put, putAll, remove, setAlias, setAlias, setCustom, setDescription, setDescription, setName, setTranslatedAlias, setTranslatedDescription, size, validate, values
 
Methods inherited from class oracle.rules.sdk2.dictionary.DictionaryObject
equals, exists, getAEReferences, getCombinedDataModel, getContainedIDs, getContainedIDs, getDataModel, getDictionary, getID, getIndent, getLevel, getObjectType, getParentByClass, getParentComponent, getParentComponentTable, getParentObject, getRuleSet, getState, getWarnings, hashCode, isModified, validate
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

JAVA

public static final java.lang.String JAVA
Forms

See Also:
Constant Field Values

JAXB

public static final java.lang.String JAXB
See Also:
Constant Field Values

ADF_BC

public static final java.lang.String ADF_BC
See Also:
Constant Field Values

RL

public static final java.lang.String RL
See Also:
Constant Field Values

PRIMITIVE

public static final java.lang.String PRIMITIVE
See Also:
Constant Field Values

ARRAY

public static final java.lang.String ARRAY
See Also:
Constant Field Values
Method Detail

getPropertyTableProperty

public TableProperty<Property> getPropertyTableProperty()
Get PropertyTable Property

Returns:
Property TableProperty

getPropertyTable

public PropertyTable getPropertyTable()
Get all the bean properties of the Java fact type

Returns:
the properties of the Java fact type

getConstructorTableProperty

public TableProperty<Constructor> getConstructorTableProperty()
Get ConstructorTable Property

Returns:
Constructor TableProperty

getConstructorTable

public ConstructorTable getConstructorTable()
Get constructors of the java fact type.

Returns:
the constructors of the java fact type

getFieldTableProperty

public TableProperty<Field> getFieldTableProperty()
Get FieldTable Property

Returns:
Field TableProperty

getFieldTable

public FieldTable getFieldTable()
Get fields of a java class

Returns:
the fields of the java class

getMethodTableProperty

public TableProperty<Method> getMethodTableProperty()
Get MethodTable Property

Returns:
Method TableProperty

getMethodTable

public MethodTable getMethodTable()
Get methods of the java fact type

Returns:
the methods of the java fact type

getSuperClassProperty

public ChoosableProperty getSuperClassProperty()
Get SuperClass Property

Returns:
ChoosableProperty

getSuperClass

public java.lang.String getSuperClass()
Get alias of the super class of the current class.

Returns:
alias of the super class of the current java class

getSuperClassID

public DOID getSuperClassID()
Get ID of the super class of the current class.

Returns:
ID of the super class of the current java class

setSuperClass

public void setSuperClass(java.lang.String superClassAlias)
Set super class of the RL FactType

Parameters:
superClassAlias - alias of the super class

setSuperClassID

public void setSuperClassID(DOID superClassID)
Set super class of the RL FactType

Parameters:
superClassID - ID of the super class

getSuperClassOptions

public java.lang.String[] getSuperClassOptions()
Get super class options.

Returns:
aliases of the fact types which are visible, public non-final RL, Java and Jaxb Fact types

getSuperClassSelected

public int getSuperClassSelected()
Get the index of the selected value for the super class options.

Returns:
the index of the selected value for the super class choice list

getSourceProperty

public SettableProperty<java.lang.String> getSourceProperty()
Get Source Property

Returns:
String SettableProperty

getSource

public java.lang.String getSource()
Get where the fact type is imported from. If a java class is from standard lib, empty string is returned.

Returns:
Source of the Java class

setSource

public void setSource(java.lang.String source)

getFormProperty

public TranslatedProperty getFormProperty()
Get Form Property Do not use setValue()

Returns:
TranslatedProperty

getForm

public java.lang.String getForm()
Get the form of the fact type.

Returns:
one of JAVA, JAXB, ADF_BC, RL and PRIMITIVE

getFormOptions

public java.lang.String[] getFormOptions()
Get the list of possible form values

Returns:
An array containing JAVA, JAXB, RL and PRIMITIVE

isArray

public boolean isArray()
Whether it is an array. For primitive and RL fact types, return false always.

Returns:
if the facttype is an array type.

getArrayComponentType

public java.lang.String getArrayComponentType()
If the facttype represents an array, what is the component type of the array. Assume that the component type is uniform.

Returns:
alias of array component type

getArrayComponentTypeID

public DOID getArrayComponentTypeID()

isEnum

public boolean isEnum()

getInterfaces

public java.util.List<java.lang.String> getInterfaces()
Get interfaces the class implements. For RL and primitive fact types return empty array.

Returns:
The list of interface alias the class implements

getInterfaceIDs

public DOID[] getInterfaceIDs()

getXMLName

public java.lang.String getXMLName()

isPrimitive

public boolean isPrimitive()

isRLClass

public boolean isRLClass()

isJavaClass

public boolean isJavaClass()

isJaxb

public boolean isJaxb()

isAdfBc

public boolean isAdfBc()

get

public java.lang.Object get(java.lang.Object key)
Description copied from class: DictionaryComponent
Generic property getter.

Please see the specific bean class for a list of properties.

Specified by:
get in interface java.util.Map<java.lang.String,java.lang.Object>
Overrides:
get in class DictionaryComponent
Parameters:
key - a String containing the property name to be fetched.
Returns:
the value corresponding to the key: a String, String[], DictionaryComponent, DictionaryComponentTable, etc.

isVisibleFact

public boolean isVisibleFact()

isVisibleType

public boolean isVisibleType()

setVisibleType

public void setVisibleType(boolean b)

setVisibleFact

public void setVisibleFact(boolean b)

getContainedTypes

public java.util.Collection<FactType> getContainedTypes()

getContainedTypeIDs

public java.util.Set<DOID> getContainedTypeIDs()

getPackages

public java.lang.String getPackages()

getDeclaredBeanProperties

public java.util.List<Property> getDeclaredBeanProperties()

getDeclaredBeanProperties

public java.util.List<Property> getDeclaredBeanProperties(boolean readable,
                                                          boolean writable)

getBeanProperties

public java.util.List<Property> getBeanProperties(boolean readable,
                                                  boolean writable)

getBeanProperties

public java.util.List<Property> getBeanProperties()

getReadableBeanProperties

public java.util.List<Property> getReadableBeanProperties()

getWritableBeanProperties

public java.util.List<Property> getWritableBeanProperties()

getStaticFields

public java.util.List<Field> getStaticFields()
Get all the static fields inside the java fact type

Returns:
all the static fields inside the java fact type as an array

getEnumFields

public java.util.List<Field> getEnumFields()
Get all the enum fields inside the java fact type

Returns:
all the enum fields inside the java fact type as an array

validate

public void validate(java.util.List<SDKException> errors,
                     java.util.List<SDKWarning> warnings)
Description copied from class: DictionaryComponent
Validate and append errors and warnings.

Overrides:
validate in class DictionaryComponent
Parameters:
errors - a List of error exceptions to append to.
warnings - a List of warning exceptions to append to.
See Also:
DictionaryObject.validate(List,List,int,int)

isAliasDistinct

public boolean isAliasDistinct()
Description copied from class: DictionaryComponent
are the names in the containing DictionaryComponentTable distinct?

Overrides:
isAliasDistinct in class DictionaryComponent
See Also:
DictionaryComponent.isNameDistinct()

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

E10663-11

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