Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1.5.0)

E10663-05


oracle.rules.rl
Class RLClass

java.lang.Object
  extended by oracle.rules.rl.RLClass

All Implemented Interfaces:
java.io.Serializable

public class RLClass
extends java.lang.Object
implements java.io.Serializable

Part of reflection API for RL classes.

See Also:
Class, Serialized Form

Method Summary
static RLClass forName(java.lang.String className, RuleSession session)
          Get the RLClass given its fully qualified name and rule session in which it is defined.
 RLClass getComponentType()
          If this RLClass is an array, get the type of the array component
 RLProperty[] getDeclaredProperties()
          Get all RLPropertys declared by this RLClass
 RLProperty getDeclaredProperty(java.lang.String name)
          Get the RLProperty this RLClass declares by name
 java.lang.String getName()
          Get fully qualified name of this RLClass
 RLProperty[] getProperties()
          Get all RLPropertys implemented by this RLClass or a superclass
 RLProperty getProperty(java.lang.String name)
          Get property implemented by this RLClass or a superclass by name
 RuleSession getRuleSession()
          Get the RuleSession that defines this RLClass
 RLClass getSuperclass()
          Get superclass
 boolean isArray()
          Test whether this RLClass is an array
 boolean isAssignableFrom(RLClass cls)
          Test whether given RLClass can be assigned to this RLClass
 boolean isInstance(RLObject obj)
          Test whether given RLObject is an instance of this RLClass
 RLObject newInstance()
          Deprecated. As of 11.1.1.0.0, replaced by RLClass.newInstance(RuleSession)
 RLObject newInstance(RuleSession rs)
          create and return a new instance (RLObject) of this RLClass, initialized per the RL class defintion.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

forName

public static RLClass forName(java.lang.String className,
                              RuleSession session)
                       throws UndefinedException
Get the RLClass given its fully qualified name and rule session in which it is defined.
Parameters:
className - fully qualified name String
session - RuleSession
Returns:
RLClass
Throws:
UndefinedException

getComponentType

public RLClass getComponentType()
If this RLClass is an array, get the type of the array component
Returns:
RLClass

isArray

public boolean isArray()
Test whether this RLClass is an array
Returns:
boolean whether this RLClass is an array

getName

public java.lang.String getName()
Get fully qualified name of this RLClass
Returns:
fully qualified name String

getRuleSession

public RuleSession getRuleSession()
Get the RuleSession that defines this RLClass
Returns:
RuleSession

getDeclaredProperty

public RLProperty getDeclaredProperty(java.lang.String name)
Get the RLProperty this RLClass declares by name
Parameters:
name - property name String
Returns:
RLProperty

getDeclaredProperties

public RLProperty[] getDeclaredProperties()
Get all RLPropertys declared by this RLClass
Returns:
RLProperty[]

getProperty

public RLProperty getProperty(java.lang.String name)
Get property implemented by this RLClass or a superclass by name
Parameters:
name - property name String
Returns:
RLProperty

getProperties

public RLProperty[] getProperties()
Get all RLPropertys implemented by this RLClass or a superclass
Returns:
RLProperty[]

getSuperclass

public RLClass getSuperclass()
Get superclass
Returns:
RLClass

isAssignableFrom

public boolean isAssignableFrom(RLClass cls)
Test whether given RLClass can be assigned to this RLClass
Parameters:
cls - given RLClass
Returns:
boolean

isInstance

public boolean isInstance(RLObject obj)
Test whether given RLObject is an instance of this RLClass
Parameters:
obj - given RLObject
Returns:
boolean

newInstance

@Deprecated
public RLObject newInstance()
                     throws RLException
Deprecated. As of 11.1.1.0.0, replaced by RLClass.newInstance(RuleSession)
create and return a new instance (RLObject) of this RLClass, initialized per the RL class defintion.
Returns:
RLObject new default-initialized instance of this RLClass
Throws:
RLException

newInstance

public RLObject newInstance(RuleSession rs)
                     throws RLException
create and return a new instance (RLObject) of this RLClass, initialized per the RL class defintion.
Returns:
RLObject new default-initialized instance of this RLClass
Throws:
RLException

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1.5.0)

E10663-05


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.