Rule Execution Server API

ilog.rules.bom.dynamic
Class IlrDynamicModelElement

java.lang.Object
  extended by ilog.rules.bom.dynamic.IlrDynamicModelElement
All Implemented Interfaces:
IlrModelElement, IlrProperties, IlrTransientProperties, IlrMutableModelElement, Serializable
Direct Known Subclasses:
IlrDynamicMember, IlrDynamicPackage, IlrDynamicParameter, IlrDynamicStaticReference, IlrDynamicType

public abstract class IlrDynamicModelElement
extends Object
implements Serializable, IlrMutableModelElement

An implementation of the IlrModelElement interface.

Warning: Serialized objects of this class will not be compatible with future releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of IBM Decision Server.

See Also:
Serialized Form

Method Summary
protected  void fireUpdate(String property, boolean oldValue, boolean value)
           
protected  void fireUpdate(String property, Object oldValue, Object value)
           
protected  IlrType fixType(IlrType type)
           
 String getFullyQualifiedName()
          Returns the fully qualified name of this model element.
 IlrMutableObjectModel getMutableObjectModel()
          Returns the object model as a mutable object model.
 String getName()
          Returns the name of this model element.
 IlrObjectModel getObjectModel()
          Returns the object model which contains this model element.
 Object getPropertyValue(String propertyName)
          Returns the values of a property.
 Object getPropertyValue(String propertyName, Object defaultValue)
          Returns the value of a property.
protected  boolean hasListeners()
           
 boolean isPropertyPersistent(String propertyName)
          Returns a Boolean to indicate whether the propertyName is persisted.
 Iterator propertyNames()
          Returns the property names.
 void removeProperty(String propertyName)
          Removes the property propertyName.
 void setPersistentProperty(String propertyName, IlrProperties value)
          Sets the property propertyName to value.
 void setPersistentProperty(String propertyName, String value)
          Sets the property propertyName to value.
 void setPropertyValue(String propertyName, 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
 
Methods inherited from interface ilog.rules.bom.IlrModelElement
getEnclosingNamespace
 

Method Detail

getObjectModel

public IlrObjectModel getObjectModel()
Returns the object model which contains this model element.

Specified by:
getObjectModel in interface IlrModelElement
Returns:
an object model

getMutableObjectModel

public IlrMutableObjectModel getMutableObjectModel()
Returns the object model as a mutable object model.

Specified by:
getMutableObjectModel in interface IlrMutableModelElement
Since:
JRules 6.0
Returns:
The object model as a mutable object model.

getName

public String getName()
Returns the name of this model element. The name of an element is always its name relative to its enclosing namespace (by opposition to its fully qualified name which is relative to the object model).

Specified by:
getName in interface IlrModelElement
Returns:
a character string or null.

getFullyQualifiedName

public String getFullyQualifiedName()
Returns the fully qualified name of this model element. The fully qualified name of an element is an absolute name.

Specified by:
getFullyQualifiedName in interface IlrModelElement
Returns:
the element's fully qualified name.

propertyNames

public Iterator propertyNames()
Returns the property names.

Specified by:
propertyNames in interface IlrTransientProperties
Returns:
an iterator over the property names.

getPropertyValue

public Object getPropertyValue(String propertyName)
Returns the values 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 and null if there is no such property.

getPropertyValue

public Object getPropertyValue(String propertyName,
                               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 if 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(String propertyName,
                             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(String propertyName)
Removes the property propertyName.

Specified by:
removeProperty in interface IlrTransientProperties
Parameters:
propertyName - The property name.

setPersistentProperty

public void setPersistentProperty(String propertyName,
                                  String value)
Sets the property propertyName to value. and makes the property persistent.

Specified by:
setPersistentProperty in interface IlrProperties
Throws:
UnsupportedOperationException - if the object does not support persistent properties.
Parameters:
propertyName - The property name.
value - A value.

setPersistentProperty

public void setPersistentProperty(String propertyName,
                                  IlrProperties value)
Sets the property propertyName to value. and makes the property persistent.

Specified by:
setPersistentProperty in interface IlrProperties
Throws:
UnsupportedOperationException - if the object does not support persistent properties.
Parameters:
propertyName - The property name.
value - A property value.

isPropertyPersistent

public boolean isPropertyPersistent(String propertyName)
Description copied from interface: IlrProperties
Returns a Boolean to indicate whether the propertyName is persisted.

Specified by:
isPropertyPersistent in interface IlrProperties
Returns:
true if the the property with name propertyName is persistent.

fixType

protected IlrType fixType(IlrType type)

hasListeners

protected boolean hasListeners()

fireUpdate

protected void fireUpdate(String property,
                          Object oldValue,
                          Object value)

fireUpdate

protected void fireUpdate(String property,
                          boolean oldValue,
                          boolean value)

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013