Class PropertyValue

All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>, FactContext, UnnamedComponent

public class PropertyValue extends UnnamedModelComponent<PropertyValue> implements FactContext
See Also:
  • Method Details

    • getPropertyNames

      public String[] getPropertyNames()
      Specified by:
      getPropertyNames in interface UnnamedComponent
      Overrides:
      getPropertyNames in class UnnamedModelComponent<PropertyValue>
      Returns:
      Array of property names available.
    • getStoredPropertyNames

      public String[] getStoredPropertyNames()
      Overrides:
      getStoredPropertyNames in class UnnamedModelComponent<PropertyValue>
      Returns:
      Array of property names which are persisted in the order in which they appear in the schema.
    • getFactTableProperty

      public TableProperty<Fact> getFactTableProperty()
      Get FactTable Property.
      Returns:
      Fact TableProperty
    • getFactTable

      public FactTable getFactTable()
      Get FactTable.
      Returns:
      FactTable
    • getPropertyProperty

      public AliasRefProperty getPropertyProperty()
      Get Property Property.
      Returns:
      AliasRefProperty
    • getPropertyAlias

      public String getPropertyAlias()
      Get Property Alias.
      Returns:
      alias of Property
    • setPropertyByAlias

      public void setPropertyByAlias(String propertyAlias)
      Set the Property Alias.
      Parameters:
      propertyAlias - alias of the property to be set
    • getProperty

      public Property getProperty()
      Get the Property.
      Returns:
      Property
    • setProperty

      public void setProperty(Property prop)
      Set the Property.
      Parameters:
      Property - to be set
    • getSyncMarkProperty

      public SyncMarkProperty<String> getSyncMarkProperty()
      Get SyncMark Property.
      Returns:
      SyncMarkProperty
    • getPropertyOptions

      public String[] getPropertyOptions()
      Get property options.
      Returns:
      the list of Property alias .
    • get

      public Object get(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 Map<String,Object>
      Overrides:
      get in class UnnamedModelComponent<PropertyValue>
      Parameters:
      key - a String containing the property name to be fetched.
      Returns:
      the value corresponding to the key: a String, String[], DictionaryComponent, DictionaryComponentTable, etc.
    • put

      public Object put(String key, Object value)
      Description copied from class: DictionaryComponent
      Generic property setter. Throws runtime exceptions for incorrect arguments. Please see the specific bean class for a list of properties, their types, and permissible values.

      A put() with either null key or null value throws a NullPointerException.

      A put() with a key that is not a String throws a ClassCastException

      A put() of a value that is not of the correct type for the key throws a ClassCastException.

      Bean properties which have no set() method are read only, and cannot be modified using the put(). Attempting to do so throws a runtime IllegalArgumentException. PROP_ID, and PROP_*_SELECTED are always read only.

      Specified by:
      put in interface Map<String,Object>
      Overrides:
      put in class UnnamedModelComponent<PropertyValue>
      Parameters:
      key - the key of the property to set
      value - the value of the named property to set
      Returns:
      the previous value of the property
    • validate

      public void validate(List<SDKException> errors, List<SDKWarning> warnings, int modelChangeLowerBound, int ruleChangeLowerBound)
      Description copied from class: DictionaryObject
      Validate the RuleDictionary object. Append error and warning exceptions. Errors will cause RuleDictionary.update(java.util.List<oracle.rules.sdk2.exception.SDKWarning>) to throw an exception. A dictionary with warnings but no errors can be persisted.
      Overrides:
      validate in class DictionaryObject
      Parameters:
      errors - a List of error exceptions to append to.
      warnings - a List of warning exceptions to append to.
      modelChangeLowerBound - smallest ModelComponent.CreationUpdateNumber modified in thix tx.
      ruleChangeLowerBound - smallest RuleComponent.CreationUpdateNumber modified in thix tx. Rulesets and rules with UpdateNumber >= modelChangeLowerBound will be revalidated. a value of 0 will force revalidation of all rulesets. A value of Integer.MAX_VALUE will skip validation of all rulesets.
    • validate

      public void validate(List<SDKException> errors, List<SDKWarning> warnings)
      Description copied from class: DictionaryComponent
      Validate and append errors and warnings.
      Overrides:
      validate in class DictionaryComponent<PropertyValue>
      Parameters:
      errors - a List of error exceptions to append to.
      warnings - a List of warning exceptions to append to.
      See Also:
    • isCollectionOrArray

      public boolean isCollectionOrArray()
      Whether the type is Java Collection type or Array.
      Returns:
      Return true if type is either Collection or Array.
    • getFactType

      public FactType getFactType()
      Return FactType associated with Property
      Returns:
      FactType
    • getTypeIDs

      public List<DOID> getTypeIDs()
      Description copied from interface: FactContext
      Get the Type choices for the Fact
      Specified by:
      getTypeIDs in interface FactContext
      Returns:
      List of Type IDs
    • getFactAliasPrefix

      public String getFactAliasPrefix()
      Specified by:
      getFactAliasPrefix in interface FactContext
      Returns:
      Prefix for the default Fact Alias (if any), "" otherwise
    • isTranslatable

      public boolean isTranslatable()
      Specified by:
      isTranslatable in interface FactContext
      Returns:
      true if Fact Alias is user translatable, "" otherwise
    • getBucketSet

      public BucketSet getBucketSet()
      Specified by:
      getBucketSet in interface FactContext
      Returns:
      BucketSet constraining the Fact values. null otherwise
    • getDefaultExpression

      public Expression getDefaultExpression()
      Specified by:
      getDefaultExpression in interface FactContext
      Returns:
      Default Expression (if any) associated with the Fact, null otherwise
    • isModifiable

      public boolean isModifiable()
      Overrides:
      isModifiable in class DictionaryComponent<PropertyValue>