public class Configuration extends Object implements Serializable
Constructor and Description |
---|
Configuration() |
Modifier and Type | Method and Description |
---|---|
void |
addMappingsSearchLocation(Location location)
Adds a mappings search location (these are the locations
in which a search for mappings is performed).
|
void |
addMappingsSearchLocation(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.
|
String |
getContents()
Gets the URI from which this instance was
configured or null (it it was not set).
|
static Configuration |
getInstance(InputStream stream)
Gets a Configuration instance from the given
stream . |
static Configuration |
getInstance(String string)
Gets a Configuration instance from the given
string . |
static Configuration |
getInstance(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.
|
public Configuration()
public static Configuration getInstance(URL uri)
uri
.uri
- the URI to the configuration file.public static Configuration getInstance(InputStream stream)
stream
.stream
- the InputStream containing the configuration file.public static Configuration getInstance(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(String path)
path
- a location path.addMappingsSearchLocation(Location)
public Location[] getMappingsSearchLocations()
public String getContents()
public static void clearCaches()
Copyright © 2003–2014 AndroMDA.org. All rights reserved.