Skip navigation links

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

E10663-02


oracle.rules.sdk2.repository
Class DictionaryLocator

java.lang.Object
  extended by oracle.rules.sdk2.repository.DictionaryLocator


public abstract class DictionaryLocator
extends java.lang.Object

Dictionary discovery. Intended for use in SCA. This class is experimental and subject to change or removal.


Method Summary
 DictionaryFQN getDictionaryFQN(java.lang.String path)
          Extract the fully qualified name of the dictionary from the specified path.
abstract  java.lang.String[] getPaths()
          Get the path names of dictionaries stored in the repository.
 java.lang.String getPrefix(java.lang.String path)
          Extract the path that upto the /oracle/rules directory from the specified path.
static DictionaryLocator newInstance(RepositoryType type, RepositoryContext context)
          Create a DictionaryLocator instance for the repository type and configuration specified.

 

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

 

Method Detail

newInstance

public static DictionaryLocator newInstance(RepositoryType type,
                                            RepositoryContext context)
                                     throws RepositoryException
Create a DictionaryLocator instance for the repository type and configuration specified. Currently supports MDS repositories only.
Parameters:
type - the repository type.
context - the repository initialization parameters.
Returns:
the DictionaryLocator instance
Throws:
RepositoryException - if an error occurs during initialization

getPrefix

public java.lang.String getPrefix(java.lang.String path)
                           throws RepositoryException
Extract the path that upto the /oracle/rules directory from the specified path.
Parameters:
path - the path to the dictionary.
Returns:
the prefix to the /oracle/rules directory. Returns null if
Throws:
RepositoryException

getDictionaryFQN

public DictionaryFQN getDictionaryFQN(java.lang.String path)
                               throws RepositoryException
Extract the fully qualified name of the dictionary from the specified path. Relies on the /oracle/rules directory existing in the path.
Parameters:
path - the path to the dictionary.
Returns:
the prefix to the /oracle/rules directory. Returns null if
Throws:
RepositoryException

getPaths

public abstract java.lang.String[] getPaths()
                                     throws RepositoryException
Get the path names of dictionaries stored in the repository. This method is intended for use in an SCA environment. It is experimental and subject to change.
Returns:
An array of dictionary paths. If no dictionaries exist in the repository a 0 length array is returned.
Throws:
RepositoryException - if error when accessing the repository

Skip navigation links

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

E10663-02


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