org.apache.tuscany.sca.contribution.namespace.impl
Class NamespaceImportImpl

java.lang.Object
  extended by org.apache.tuscany.sca.contribution.namespace.impl.NamespaceImportImpl
All Implemented Interfaces:
Import, NamespaceImport

public class NamespaceImportImpl
extends java.lang.Object
implements NamespaceImport

The representation of an import for the contribution


Constructor Summary
protected NamespaceImportImpl()
           
 
Method Summary
 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 getNamespace()
          Get Namespace that identifies the import
 boolean match(Export export)
          Match a NamespaceImport to a given NamespaceExport based on : location is not provided import and export namespaces match
 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 setNamespace(java.lang.String namespace)
          Set Namespace 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

NamespaceImportImpl

protected NamespaceImportImpl()
Method Detail

getLocation

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

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

setLocation

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

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

getNamespace

public java.lang.String getNamespace()
Description copied from interface: NamespaceImport
Get Namespace that identifies the import

Specified by:
getNamespace in interface NamespaceImport
Returns:
The namespace

setNamespace

public void setNamespace(java.lang.String namespace)
Description copied from interface: NamespaceImport
Set Namespace that identifies the import

Specified by:
setNamespace in interface NamespaceImport
Parameters:
namespace - The namespace

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

match

public boolean match(Export export)
Match a NamespaceImport to a given NamespaceExport based on : location is not provided import and export namespaces 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