org.apache.tuscany.sca.contribution.resource.impl
Class ResourceImportImpl

java.lang.Object
  extended by org.apache.tuscany.sca.contribution.resource.impl.ResourceImportImpl
All Implemented Interfaces:
Import, ResourceImport

public class ResourceImportImpl
extends java.lang.Object
implements ResourceImport

The representation of an import for the contribution


Constructor Summary
protected ResourceImportImpl()
           
 
Method Summary
 java.util.List<Contribution> getExportContributions()
           
 java.lang.String getLocation()
          Get the location used to resolve the definitions for this import
 ModelResolver getModelResolver()
          Returns the model resolver for the models representing artifacts made available by this import.
 java.lang.String getURI()
          Get URI that identifies the resource import
 boolean match(Export export)
          Match a ResourceImport to a given ResourceExport based on : location is not provided import and export resource URI match
 void setExportContributions(java.util.List<Contribution> contributions)
           
 void setLocation(java.lang.String location)
          Set the location used to resolve the definitions for this import
 void setModelResolver(ModelResolver modelResolver)
          Sets the model resolver for the models representing artifacts made available by this import.
 void setURI(java.lang.String uri)
          Set URI that identifies the resource import
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceImportImpl

protected ResourceImportImpl()
Method Detail

getLocation

public java.lang.String getLocation()
Description copied from interface: ResourceImport
Get the location used to resolve the definitions for this import

Specified by:
getLocation in interface ResourceImport
Returns:
The import location

setLocation

public void setLocation(java.lang.String location)
Description copied from interface: ResourceImport
Set the location used to resolve the definitions for this import

Specified by:
setLocation in interface ResourceImport
Parameters:
location - The import location

getURI

public java.lang.String getURI()
Description copied from interface: ResourceImport
Get URI that identifies the resource import

Specified by:
getURI in interface ResourceImport
Returns:
The URI

setURI

public void setURI(java.lang.String uri)
Description copied from interface: ResourceImport
Set URI that identifies the resource import

Specified by:
setURI in interface ResourceImport
Parameters:
uri - The resource URI

getModelResolver

public ModelResolver getModelResolver()
Description copied from interface: Import
Returns the model resolver for the models representing artifacts made available by this import.

Specified by:
getModelResolver in interface Import
Returns:
The model resolver

setModelResolver

public void setModelResolver(ModelResolver modelResolver)
Description copied from interface: Import
Sets the model resolver for the models representing artifacts made available by this import.

Specified by:
setModelResolver in interface Import
Parameters:
modelResolver - The model resolver

getExportContributions

public java.util.List<Contribution> getExportContributions()

setExportContributions

public void setExportContributions(java.util.List<Contribution> contributions)

match

public boolean match(Export export)
Match a ResourceImport to a given ResourceExport based on : location is not provided import and export resource URI match

Specified by:
match in interface Import
Parameters:
export - The Exported being verified
Returns:
true/false

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object