org.apache.tuscany.sca.contribution.java.impl
Class JavaImportImpl

java.lang.Object
  extended by org.apache.tuscany.sca.contribution.java.impl.JavaImportImpl
All Implemented Interfaces:
Import, JavaImport

public class JavaImportImpl
extends java.lang.Object
implements JavaImport

Implementation of a Java Import model


Constructor Summary
JavaImportImpl()
           
 
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 getPackage()
          Get java package that identifies the import
 boolean match(Export export)
          Match a JavaImport to a given JavaExport based on : location is not provided import and export packages 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 setPackage(java.lang.String packageName)
          Set java package that identifies the import
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaImportImpl

public JavaImportImpl()
Method Detail

getLocation

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

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

setLocation

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

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

getPackage

public java.lang.String getPackage()
Description copied from interface: JavaImport
Get java package that identifies the import

Specified by:
getPackage in interface JavaImport
Returns:
The package name

setPackage

public void setPackage(java.lang.String packageName)
Description copied from interface: JavaImport
Set java package that identifies the import

Specified by:
setPackage in interface JavaImport
Parameters:
packageName - The package name

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 JavaImport to a given JavaExport based on : location is not provided import and export packages 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