Rule Execution Server API

ilog.rules.bom
Interface IlrAttribute

All Superinterfaces:
IlrMember, IlrModelElement, IlrProperties, IlrTransientProperties
All Known Subinterfaces:
IlrMutableAttribute
All Known Implementing Classes:
IlrDynamicAttribute

public interface IlrAttribute
extends IlrMember

This interface is used to represent attributes in an object model.


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.
 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.
 boolean visit(IlrObjectModel.Visitor visitor)
          Deprecated. Use IlrVisitor instead.
 
Methods inherited from interface ilog.rules.bom.IlrMember
getDeclaringClass, getDomain, getMemberType, isFinal, isPrivate, isProtected, isPublic, isStatic
 
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

getAttributeType

IlrType getAttributeType()
Returns the type of the attribute.


isTransient

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


isReadonly

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

Since:
JRules 6.0

isWriteonly

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

Since:
JRules 6.0

isAbstract

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

Since:
JRules 6.5

visit

boolean visit(IlrObjectModel.Visitor visitor)
Deprecated. Use IlrVisitor instead.

If the type of the attribute is an IlrClass, this method applies the visitor's visitClass method to this class and it returns the result of this call. Otherwise if the attribute's type is an IlrEnum this method applies the visitor's visitEnum method to this enum and it returns the result of this call. Otherwise this method returns true.


getJavaField

Field getJavaField()
Deprecated. Use getNativeField instead.

Returns the Java field currently being reflected or null.


getNativeField

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


getInitialValue

Object getInitialValue()
Returns the initial value of the attribute. The initial value may be a regular Java object, or an instance of IlrAbstractValue.


Rule Execution Server API

© Copyright IBM Corp. 1987, 2012