ilog.rules.bom.dynamic

Class IlrDynamicValue

  • java.lang.Object
    • ilog.rules.bom.dynamic.IlrDynamicValue
    • Constructor Summary

      Constructors 
      Constructor and Description
      IlrDynamicValue() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.Object getPropertyValue(java.lang.String propertyName)
      Returns the value of a property.
      java.lang.Object getPropertyValue(java.lang.String propertyName, java.lang.Object defaultValue)
      Returns the value of a property.
      boolean isPropertyPersistent(java.lang.String propertyName)
      Returns true if the given property is persistent.
      java.util.Iterator propertyNames()
      Returns an iterator over property names.
      void removeProperty(java.lang.String propertyName)
      Removes the property propertyName.
      void setPersistentProperty(java.lang.String propertyName, IlrProperties value)
      Sets the property propertyName to value.
      void setPersistentProperty(java.lang.String propertyName, java.lang.String value)
      Sets the property propertyName to value.
      void setPropertyValue(java.lang.String propertyName, java.lang.Object value)
      Sets the property propertyName to value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IlrDynamicValue

        public IlrDynamicValue()
    • Method Detail

      • propertyNames

        public java.util.Iterator propertyNames()
        Returns an iterator over property names.
        Specified by:
        propertyNames in interface IlrTransientProperties
        Returns:
        An iterator.
      • getPropertyValue

        public java.lang.Object getPropertyValue(java.lang.String propertyName)
        Returns the value of a property.
        Specified by:
        getPropertyValue in interface IlrTransientProperties
        Parameters:
        propertyName - The name of the property.
        Returns:
        The value of the property with name propertyName, or null if there is no such property.
      • getPropertyValue

        public java.lang.Object getPropertyValue(java.lang.String propertyName,
                                        java.lang.Object defaultValue)
        Returns the value of a property.
        Specified by:
        getPropertyValue in interface IlrTransientProperties
        Since:
        JRules 6.0
        Parameters:
        propertyName - The name of the property.
        defaultValue - The default value to return is the property is not set.
        Returns:
        The value of the property with name propertyName, or defaultValue if there is no such property.
      • setPropertyValue

        public void setPropertyValue(java.lang.String propertyName,
                            java.lang.Object value)
        Sets the property propertyName to value. The property is also made non-persistent (that is, transient).
        Specified by:
        setPropertyValue in interface IlrTransientProperties
        Parameters:
        propertyName - The property name.
        value - A value.
      • removeProperty

        public void removeProperty(java.lang.String propertyName)
        Removes the property propertyName.
        Specified by:
        removeProperty in interface IlrTransientProperties
        Parameters:
        propertyName - The property name.
      • setPersistentProperty

        public void setPersistentProperty(java.lang.String propertyName,
                                 java.lang.String value)
        Sets the property propertyName to value. and makes the property persistent.
        Specified by:
        setPersistentProperty in interface IlrProperties
        Throws:
        java.lang.UnsupportedOperationException - If the object does not support persistent properties.
        Parameters:
        propertyName - The property name.
        value - A value.
      • setPersistentProperty

        public void setPersistentProperty(java.lang.String propertyName,
                                 IlrProperties value)
        Sets the property propertyName to value. and makes the property persistent.
        Specified by:
        setPersistentProperty in interface IlrProperties
        Throws:
        java.lang.UnsupportedOperationException - If the object does not support persistent properties.
        Parameters:
        propertyName - the property name
        value - a property value.
      • isPropertyPersistent

        public boolean isPropertyPersistent(java.lang.String propertyName)
        Returns true if the given property is persistent.
        Specified by:
        isPropertyPersistent in interface IlrProperties
        Parameters:
        propertyName - The name of the property.
        Returns:
        true if the the property with name propertyName is persistent.

© Copyright IBM Corp. 1987, 2017