com.ibm.mashups.enabler
Interface ResourceLocator

All Superinterfaces:
Locator

public ResourceLocator
extends Locator

Interface for finding resources within a model.


Method Summary
 String findResourceUrl(Object node, String name)
          Deprecated.  Use findResourceURL instead.
 String findResourceURL(Object node, String name)
           Returns the URL of the resource to be located, or null if the resource cannot be found.
 
Methods inherited from interface com.ibm.mashups.enabler.Locator
find
 

Method Detail

findResourceUrl

String findResourceUrl(Object node,
                       String name)
Deprecated.  Use findResourceURL instead.

Returns the URL of the resource to be located, or null if the resource cannot be found.

Parameters:
node - A node of the model this locator is implemented on. Must not be null.
name - The name of the resource to be located within the given model. The name can also contain a directory path relative to the model. Must not be null.
Returns:
The URL that can be used to fetch the resource, or null if the resource cannot be found.

findResourceURL

String findResourceURL(Object node,
                       String name)
Returns the URL of the resource to be located, or null if the resource cannot be found.

Parameters:
node - A node of the model this locator is implemented on. Must not be null.
name - The name of the resource to be located within the given model. The name can also contain a directory path relative to the model. Must not be null.
Returns:
The URL that can be used to fetch the resource, or null if the resource cannot be found.


Copyright IBM Corp. 2010 All Rights Reserved.