|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.andromda.core.configuration.Configuration
public class Configuration
This object is configured from the AndroMDA configuration XML file. Its used to configure AndroMDA before modeling processing occurs.
| Constructor Summary | |
|---|---|
Configuration()
|
|
| Method Summary | |
|---|---|
void |
addMappingsSearchLocation(Location location)
Adds a mappings search location (these are the locations in which a search for mappings is performed). |
void |
addMappingsSearchLocation(java.lang.String path)
Adds a mappings search location path (a location without a pattern defined). |
void |
addNamespace(Namespace namespace)
Adds a namespace to this configuration. |
void |
addProperty(Property property)
Adds a property to this configuration instance. |
void |
addRepository(Repository repository)
Adds the repository to this configuration. |
static void |
clearCaches()
Clears out any caches used by this configuration. |
java.lang.String |
getContents()
Gets the URI from which this instance was configured or null (it it was not set). |
static Configuration |
getInstance(java.io.InputStream stream)
Gets a Configuration instance from the given stream. |
static Configuration |
getInstance(java.lang.String string)
Gets a Configuration instance from the given string. |
static Configuration |
getInstance(java.net.URL uri)
Gets a Configuration instance from the given uri. |
Location[] |
getMappingsSearchLocations()
Gets the mappings search locations for this configuration instance. |
Namespace[] |
getNamespaces()
Gets the configuration namespaces. |
Property[] |
getProperties()
Gets the properties belonging to this configuration. |
Repository[] |
getRepositories()
Gets the repository instances belonging to this configuration. |
Server |
getServer()
Gets the server instance for this configuration. |
void |
initialize()
Initializes this configuration instance. |
void |
setServer(Server server)
Sets the server instance for this configuration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Configuration()
| Method Detail |
|---|
public static Configuration getInstance(java.net.URL uri)
uri.
uri - the URI to the configuration file.
public static Configuration getInstance(java.io.InputStream stream)
stream.
stream - the InputStream containing the configuration file.
public static Configuration getInstance(java.lang.String string)
string.
string - the String containing the configuration.
public void initialize()
public void addRepository(Repository repository)
repository - the repository instance.public Repository[] getRepositories()
public void addNamespace(Namespace namespace)
namespace - the configured namespace to add.public Namespace[] getNamespaces()
Namespace instances.public void addProperty(Property property)
property - the property to add.public Property[] getProperties()
Property instances.public void setServer(Server server)
server - the information which configures the AndroMDA server.public Server getServer()
Server holds the information to configure
the AndroMDA server.
public void addMappingsSearchLocation(Location location)
location - a location path.addMappingsSearchLocation(String)public void addMappingsSearchLocation(java.lang.String path)
path - a location path.addMappingsSearchLocation(Location)public Location[] getMappingsSearchLocations()
public java.lang.String getContents()
public static void clearCaches()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||