Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.ide.dependency
Interface IdDeclarationProvider

All Superinterfaces:
DeclarationProvider
All Known Implementing Classes:
JavaDeclarationProvider, URLDeclarationProvider

public interface IdDeclarationProvider
extends DeclarationProvider

Provides declarations identified by a unique ID.


Method Summary
 boolean canGetDeclaration(Context context, java.lang.String id)
          Determine whether this provider can supply the declaration for an ID.
 IdDeclaration getDeclaration(Context context, java.lang.String id)
          Get the declaration corresponding to an ID.
 
Methods inherited from interface oracle.ide.dependency.DeclarationProvider
canGetDeclaration, canGetDeclarations, getDeclaration, getDeclarations, getTopLevelDeclarations
 

Method Detail

canGetDeclaration

boolean canGetDeclaration(Context context,
                          java.lang.String id)
Determine whether this provider can supply the declaration for an ID. Implementations should return true if they are responsible for this ID, regardless of whether the declaration actually exists.

Parameters:
context - the context
id - the declaration ID
Returns:
true if the provider can find the declaration

getDeclaration

IdDeclaration getDeclaration(Context context,
                             java.lang.String id)
                             throws java.lang.InterruptedException
Get the declaration corresponding to an ID.

Parameters:
context - the context
id - the declaration ID
Returns:
the declaration, or null if the declaration is not found
Throws:
java.lang.InterruptedException - if the operation is interrupted

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

Copyright © 1997, 2010, Oracle. All rights reserved.