com.ibm.etools.emf.resource
Interface ResourceFactory


public interface ResourceFactory

Make resource objects with the given URI or extent.


Field Summary
static java.lang.String copyright
           
 
Method Summary
 Extent createExtent()
          Create an extent
 java.lang.Object getDefaultLoadOptions()
          Returns an object containing the given default load options; if there are none, it returns null.
 Resource load(ResourceSet resources, java.lang.String uri)
          Loads the Resource with the given URI using the default load options inside the given ResourceSet.
 Resource load(ResourceSet resource, java.lang.String uri, java.io.InputStream is)
          Loads the Resource from the given InputStream and the given URI with the default load options inside the given ResourceSet.
 Resource load(ResourceSet resources, java.lang.String uri, java.io.InputStream is, java.lang.Object options)
          Loads the Resource from the given InputStream, the given URI, and the given load options inside the given ResourceSet.
 Resource load(ResourceSet resources, java.lang.String uri, java.lang.Object options)
          Loads the Resource with the given URI using the given load options inside the given ResourceSet.
 Resource load(java.lang.String uri)
          Loads the Resource with the given URI using the default load options.
 Resource load(java.lang.String uri, java.io.InputStream is)
          Loads the Resource from the given InputStream and the given URI with the default load options.
 Resource load(java.lang.String uri, java.io.InputStream is, java.lang.Object options)
          Loads the Resource from the given InputStream, the given URI, and the given load options.
 Resource load(java.lang.String uri, java.lang.Object options)
          Loads the Resource with the given URI using the given load options.
 Resource makeResource(java.lang.String uri)
          Makes a resource with the given uri.
 Resource makeResource(java.lang.String uri, Extent extent)
          Makes a resource with the given uri and extent.
 

Field Detail

copyright

public static final java.lang.String copyright
Method Detail

makeResource

public Resource makeResource(java.lang.String uri)
Makes a resource with the given uri. The uri is converted to a URL; if the URL cannot be made, a WrappedException is thrown and a MalformedURLException is inside it.

makeResource

public Resource makeResource(java.lang.String uri,
                             Extent extent)
Makes a resource with the given uri and extent. The uri is converted to a URL; if the URL cannot be made, a WrappedException is thrown and a MalformedURLException is inside it.

load

public Resource load(java.lang.String uri)
              throws java.lang.Exception
Loads the Resource with the given URI using the default load options.

load

public Resource load(java.lang.String uri,
                     java.lang.Object options)
              throws java.lang.Exception
Loads the Resource with the given URI using the given load options.

load

public Resource load(java.lang.String uri,
                     java.io.InputStream is)
              throws java.lang.Exception
Loads the Resource from the given InputStream and the given URI with the default load options.

load

public Resource load(java.lang.String uri,
                     java.io.InputStream is,
                     java.lang.Object options)
              throws java.lang.Exception
Loads the Resource from the given InputStream, the given URI, and the given load options.

load

public Resource load(ResourceSet resources,
                     java.lang.String uri)
              throws java.lang.Exception
Loads the Resource with the given URI using the default load options inside the given ResourceSet.

load

public Resource load(ResourceSet resources,
                     java.lang.String uri,
                     java.lang.Object options)
              throws java.lang.Exception
Loads the Resource with the given URI using the given load options inside the given ResourceSet.

load

public Resource load(ResourceSet resource,
                     java.lang.String uri,
                     java.io.InputStream is)
              throws java.lang.Exception
Loads the Resource from the given InputStream and the given URI with the default load options inside the given ResourceSet.

load

public Resource load(ResourceSet resources,
                     java.lang.String uri,
                     java.io.InputStream is,
                     java.lang.Object options)
              throws java.lang.Exception
Loads the Resource from the given InputStream, the given URI, and the given load options inside the given ResourceSet.

getDefaultLoadOptions

public java.lang.Object getDefaultLoadOptions()
Returns an object containing the given default load options; if there are none, it returns null.

createExtent

public Extent createExtent()
Create an extent