|
Oracle Fusion Middleware Java API Reference for Oracle Business Rules 11g Release 1 (11.1.1.5.0) E10663-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.rules.sdk2.datamodel.Browser
oracle.rules.sdk2.datamodel.ClassBrowser
public class ClassBrowser
Provides browsing for collections of Java class files. Any class accessed by the ClassBrowser may be imported into the datamodel of a RuleDictionary. Once Java classes have been imported, the class may be used as a FactType for an Oracle Business Rule.
Classes may be in Jar files or inside a directory containing .class files. Any class file not in a jar must be in a containing directory that is not part of the package hierarchy. For example, if the the class X is part of a package named javapkg.u.v, the ClassBrowser would expect the class file to be located in a directory structure like: containting-dir/javapkg/u/v/X.class .
The browsed classes need not be in the current RuleDictionary's DataModel.
Classes and jars are browsable after they have been made visible to ClassBrowser's classpath by use of the addClassPath method.
Each java class or package is represented by an instance of a JClassNode or JavaPackageNode.
The JavaNode and JavaPackageNode instances are organized into a collection that is returned by the NestedNodeTable property. NodeTable's contain the Nodes representing the immedidate children. NodeTable hierarchies are created by adding to the ClassPath list. The addClassPath, removeClassPath, clearClassPath methods add, delete, and clear entries of the class path list. The class hierarchy is represented by nested NodeTable's. Each successive hierachy level is represented by a NodeTable. JavaPackageNode's have a NodeTable representing its children. The children of a JPackage are other JPackage's and JClassNode's. A JavaNode has no children and therefore does not have a node table.
Loading of a particular class into the datamodel is the responsibility of JClassNode and JPackageNode classes. Invoking the JClass load()
or the JPackage load()
methods cause the class or package to be loaded into the current DataModel
.
Nested Class Summary | |
---|---|
static class |
ClassBrowser.FailedClasspathAdd |
Constructor Summary | |
---|---|
ClassBrowser(RuleDictionary rd) |
|
ClassBrowser(RuleDictionary rd, java.lang.String cpr) Deprecated. |
|
ClassBrowser(RuleDictionary rd, java.net.URI classpathPathRoot) |
Method Summary | |
---|---|
void |
addClassPath(java.net.URI uri) Add the specified path to the set of paths that are searched for Java Classes to be browsed. |
void |
addFailedAdd(java.lang.String pathToAdd, SDKException ex) |
void |
clearClassPath() Remove all user created entries from the class path list used to create the list of packages and classes. |
java.util.List<java.net.URI> |
getClassPath() Return the list of class paths created by addClassPath. |
java.lang.String |
getClasspathPathRoot() |
java.util.List<ClassBrowser.FailedClasspathAdd> |
getFailedClasspathAdds() |
void |
removeClassPath(java.net.URI uriToRemove) remove the specified class path from the the classpath list. |
void |
setClasspathPathRoot(java.lang.String cpr) Deprecated. |
void |
setClasspathPathRoot(java.net.URI cpr) Set the directory in which to put compiled JAXB class files in |
Methods inherited from class oracle.rules.sdk2.datamodel.Browser |
---|
getDictionary, getNodeTable |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassBrowser(RuleDictionary rd) throws SDKException
SDKException
public ClassBrowser(RuleDictionary rd, java.net.URI classpathPathRoot) throws SDKException
SDKException
@Deprecated
public ClassBrowser(RuleDictionary rd,
java.lang.String cpr)
throws SDKException
SDKException
Method Detail |
---|
public void setClasspathPathRoot(java.net.URI cpr)
cpr
- the directory
@Deprecated
public void setClasspathPathRoot(java.lang.String cpr)
public java.lang.String getClasspathPathRoot()
public java.util.List<ClassBrowser.FailedClasspathAdd> getFailedClasspathAdds()
public void addFailedAdd(java.lang.String pathToAdd, SDKException ex)
public void addClassPath(java.net.URI uri) throws SDKException
uri
- URI containing path to class or jar filesSDKException
- if the specified path does not contain valid Java Classes.public void clearClassPath() throws SDKException
SDKException
public java.util.List<java.net.URI> getClassPath()
public void removeClassPath(java.net.URI uriToRemove) throws SDKException
uriToRemove
- a String containing class path to be removedSDKException
- when path is not in the instance list
|
Oracle Fusion Middleware Java API Reference for Oracle Business Rules 11g Release 1 (11.1.1.5.0) E10663-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |