Rule Execution Server API

ilog.rules.bom
Interface IlrType

All Superinterfaces:
IlrModelElement, IlrProperties, IlrTransientProperties
All Known Subinterfaces:
IlrClass, IlrEnum, IlrMutableClass, IlrMutableType, IlrMutableTypeVariable, IlrPrimitiveType, IlrTypeVariable, IlrWildcardType
All Known Implementing Classes:
IlrDynamicClass, IlrDynamicEnum, IlrDynamicType, IlrDynamicTypeVariable, IlrDynamicWildcardType

public interface IlrType
extends IlrModelElement

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


Method Summary
 void detach()
          Detaches this type from its associated Java class.
 IlrClass getArrayClass()
          Returns the type "array of this type".
 IlrType getArrayType()
          Returns the type "array of this type".
 IlrType getComponentType()
          Returns the component type if this type is an array type, null otherwise.
 IlrDomain getDomain()
          Returns the domain of the type.
 String getFullyQualifiedRawName()
          Returns the fully qualified raw name of this type.
 Class getJavaClass()
          Deprecated. Use getNativeClass instead.
 Class getNativeClass()
          Returns the native class represented by this IlrType, or null.
 String getRawName()
          Returns the raw name of this type.
 boolean isArray()
          Returns true if this type is an array class.
 boolean isClass()
          Returns true if the type is a class.
 boolean isEnum()
          Returns true if the type is an enum.
 boolean isMissingReference()
          Returns true if this type is a missing reference.
 boolean isPrimitiveType()
          Returns true if the type is a primitive type.
 boolean isTypeVariable()
          Returns true if the type is a type variable.
 boolean isWildcardType()
          Returns true if the type is a wild card type.
 
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

getRawName

String getRawName()
Returns the raw name of this type. For a generic type, the raw name is the name without the generic parameters. For a non-generic type, it returns the name of the type, as returned by IlrModelElement.getName().


getFullyQualifiedRawName

String getFullyQualifiedRawName()
Returns the fully qualified raw name of this type. For a generic type, the fully qualified raw name is the fully qualified name without the generic parameters. For a non-generic type, it returns the name of the type, as returned by IlrModelElement.getFullyQualifiedName().

Since:
JRules 7

isPrimitiveType

boolean isPrimitiveType()
Returns true if the type is a primitive type.

Returns:
true if the type is an instance of IlrPrimitiveType.

isEnum

boolean isEnum()
Returns true if the type is an enum.

Returns:
true if the type is an instance of IlrEnum.

isClass

boolean isClass()
Returns true if the type is a class.

Returns:
true if the type is a class (see IlrClass).

isMissingReference

boolean isMissingReference()
Returns true if this type is a missing reference. A missing reference stands for a missing type in a business object model.

Since:
JRules 6.0

isTypeVariable

boolean isTypeVariable()
Returns true if the type is a type variable.

Since:
JRules 6.0
Returns:
true if the type is a type variable (see IlrTypeVariable).

isWildcardType

boolean isWildcardType()
Returns true if the type is a wild card type.

Since:
JRules 6.0
Returns:
true if the type is a wild card type (see IlrWildcardType).

getDomain

IlrDomain getDomain()
Returns the domain of the type.

Since:
JRules 5.0
Returns:
The type domain or null if the type does not have a domain.

Note: The returned domain may be the super type domain if it is applicable, thus be careful if you want to change it.


getArrayType

IlrType getArrayType()
Returns the type "array of this type".

Returns:
The type "array of this type".

getArrayClass

IlrClass getArrayClass()
Returns the type "array of this type".

Returns:
The type "array of this type".

isArray

boolean isArray()
Returns true if this type is an array class.


getComponentType

IlrType getComponentType()
Returns the component type if this type is an array type, null otherwise.


getJavaClass

Class getJavaClass()
Deprecated. Use getNativeClass instead.

Returns the Java class currently being reflected or null.


getNativeClass

Class getNativeClass()
Returns the native class represented by this IlrType, or null.


detach

void detach()
Detaches this type from its associated Java class.

Throws:
UnsupportedOperationException - If the type cannot be detached.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2012