Rule Execution Server API

ilog.rules.bom.dynamic
Class IlrDynamicAttribute

java.lang.Object
  extended by ilog.rules.bom.dynamic.IlrDynamicModelElement
      extended by ilog.rules.bom.dynamic.IlrDynamicMember
          extended by ilog.rules.bom.dynamic.IlrDynamicAttribute
All Implemented Interfaces:
IlrAttribute, IlrMember, IlrModelElement, IlrProperties, IlrTransientProperties, IlrMutableAttribute, IlrMutableMember, IlrMutableModelElement, Serializable

public class IlrDynamicAttribute
extends IlrDynamicMember
implements Serializable, IlrMutableAttribute

An implementation of the IlrAttribute 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
 IlrType getAttributeType()
          Returns the type of the attribute.
 Object getInitialValue()
          Returns the initial value of the attribute.
 Field getJavaField()
          Deprecated. Use getNativeField() instead.
 IlrType getMemberType()
          Returns the type of the member.
 Field getNativeField()
          Returns the native field represented by this IlrAttribute, or null.
 boolean isAbstract()
          Returns true if the attribute is abstract.
 boolean isReadonly()
          Returns true if the attribute is read-only.
 boolean isTransient()
          Returns true if the attribute is transient.
 boolean isWriteonly()
          Returns true if the attribute is write-only.
 void setAbstract(boolean set)
          Sets if the attribute is abstract
 void setFinal(boolean flag)
          Sets the 'final' property of this member.
 void setInitialValue(IlrAbstractValue initialValue)
          Sets the attribute initial value.
 void setReadonly(boolean set)
          Sets if the attribute is read only
 void setTransient(boolean flag)
          Sets the 'transient' property of this attribute.
 void setVolatile(boolean flag)
          Sets the 'volatile' property of this attribute.
 void setWriteonly(boolean set)
          Sets if the attribute is write only
 
Methods inherited from class ilog.rules.bom.dynamic.IlrDynamicMember
getDeclaringClass, getDomain, getEnclosingNamespace, isFinal, isPrivate, isProtected, isPublic, isStatic, setDomain, setMemberType, setPackageVisibility, setPrivate, setProtected, setPublic, setStatic
 
Methods inherited from class ilog.rules.bom.dynamic.IlrDynamicModelElement
fireUpdate, fireUpdate, fixType, getFullyQualifiedName, getMutableObjectModel, getName, getObjectModel, getPropertyValue, getPropertyValue, hasListeners, isPropertyPersistent, propertyNames, removeProperty, setPersistentProperty, setPersistentProperty, setPropertyValue
 
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.IlrAttribute
visit
 
Methods inherited from interface ilog.rules.bom.mutable.IlrMutableMember
setDomain, setMemberType, setPackageVisibility, setPrivate, setProtected, setPublic, setStatic
 
Methods inherited from interface ilog.rules.bom.IlrMember
getDeclaringClass, getDomain, isFinal, isPrivate, isProtected, isPublic, isStatic
 
Methods inherited from interface ilog.rules.bom.mutable.IlrMutableModelElement
getMutableObjectModel
 
Methods inherited from interface ilog.rules.bom.IlrModelElement
getEnclosingNamespace, getFullyQualifiedName, getName, getObjectModel
 
Methods inherited from interface ilog.rules.bom.IlrProperties
isPropertyPersistent, setPersistentProperty, setPersistentProperty
 
Methods inherited from interface ilog.rules.bom.IlrTransientProperties
getPropertyValue, getPropertyValue, propertyNames, removeProperty, setPropertyValue
 

Method Detail

isReadonly

public boolean isReadonly()
Returns true if the attribute is read-only.

Specified by:
isReadonly in interface IlrAttribute
Since:
JRules 6.0
Returns:
true if the attribute is read-only.

isWriteonly

public boolean isWriteonly()
Returns true if the attribute is write-only.

Specified by:
isWriteonly in interface IlrAttribute
Since:
JRules 6.0
Returns:
true if the attribute is write-only.

isAbstract

public boolean isAbstract()
Returns true if the attribute is abstract. An attribute may be abstract in a business model.

Specified by:
isAbstract in interface IlrAttribute
Since:
JRules 6.5
Returns:
true if the attribute is abstract.

setReadonly

public void setReadonly(boolean set)
Sets if the attribute is read only

Specified by:
setReadonly in interface IlrMutableAttribute
Since:
JRules 6.0
Parameters:
set - true if the attribute is read only.

setWriteonly

public void setWriteonly(boolean set)
Sets if the attribute is write only

Specified by:
setWriteonly in interface IlrMutableAttribute
Since:
JRules 6.0
Parameters:
set - true if the attribute is write only.

setAbstract

public void setAbstract(boolean set)
Sets if the attribute is abstract

Specified by:
setAbstract in interface IlrMutableAttribute
Since:
JRules 6.0
Parameters:
set - true if the attribute is abstract.

setFinal

public void setFinal(boolean flag)
Sets the 'final' property of this member. Initially, this property is false.

Specified by:
setFinal in interface IlrMutableMember
Overrides:
setFinal in class IlrDynamicMember
Parameters:
flag - the new value of the 'final' property.

getJavaField

public Field getJavaField()
Deprecated. Use getNativeField() instead.

Returns the Java field currently being reflected or null.

Specified by:
getJavaField in interface IlrAttribute

getNativeField

public Field getNativeField()
Returns the native field represented by this IlrAttribute, or null.

Specified by:
getNativeField in interface IlrAttribute
Returns:
The native field represented by this IlrAttribute, or null.

getAttributeType

public IlrType getAttributeType()
Returns the type of the attribute.

Specified by:
getAttributeType in interface IlrAttribute

getMemberType

public IlrType getMemberType()
Returns the type of the member. The returned type depends on the actual kind of member, yet you can expect that it will be the type of an attribute or the returned type for a method.

Specified by:
getMemberType in interface IlrMember
Overrides:
getMemberType in class IlrDynamicMember
Returns:
The type of the member.

isTransient

public boolean isTransient()
Returns true if the attribute is transient.

Specified by:
isTransient in interface IlrAttribute

setTransient

public void setTransient(boolean flag)
Sets the 'transient' property of this attribute. Initially this property is false.

Specified by:
setTransient in interface IlrMutableAttribute
Parameters:
flag - The new value of the 'transient' property.

setVolatile

public void setVolatile(boolean flag)
Sets the 'volatile' property of this attribute. Initially this property is false.

Parameters:
flag - The new value of the 'volatile' property.

getInitialValue

public Object getInitialValue()
Returns the initial value of the attribute.

Specified by:
getInitialValue in interface IlrAttribute
Since:
JRules 5.0

setInitialValue

public void setInitialValue(IlrAbstractValue initialValue)
Sets the attribute initial value.

Specified by:
setInitialValue in interface IlrMutableAttribute
Since:
JRules 5.0
Parameters:
initialValue -

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013