org.andromda.core.namespace
Interface NamespaceComponent

All Known Subinterfaces:
Plugin
All Known Implementing Classes:
BaseNamespaceComponent, BasePlugin, Cartridge, Library, MetafacadeMappings, Profile, Repository

public interface NamespaceComponent

This represents a component that can be discovered/registered within a namespace.

Author:
Chad Brandon

Method Summary
 java.lang.String getNamespace()
          Gets the namespace to which this component belongs.
 java.net.URL getResource()
          The entire path to the resource this namespace component instance is configured from.
 void setNamespace(java.lang.String namespace)
          Sets the namespace to which this component belongs.
 void setResource(java.net.URL resource)
          Sets the path of the resource from which this namespace component is configured.
 

Method Detail

setNamespace

void setNamespace(java.lang.String namespace)
Sets the namespace to which this component belongs.

Parameters:
namespace - the name of the namespace to which this component belongs.

getNamespace

java.lang.String getNamespace()
Gets the namespace to which this component belongs.

Returns:
the name of the namespace.

getResource

java.net.URL getResource()
The entire path to the resource this namespace component instance is configured from.

Returns:
URL the path to the resource from which this namespace component was configured.

setResource

void setResource(java.net.URL resource)
Sets the path of the resource from which this namespace component is configured.

Parameters:
resource - the resource URL.


Copyright © 2003-2008 AndroMDA.org. All Rights Reserved.