public class Model extends Object implements Serializable
Constructor and Description |
---|
Model() |
Modifier and Type | Method and Description |
---|---|
void |
addModuleSearchLocation(Location location)
Adds a module search location (these are the locations
in which a search for module is performed).
|
void |
addModuleSearchLocation(String path)
Adds a module search location path (a location
without a pattern defined).
|
void |
addTransformation(Transformation transformation)
Adds a transformation to this configuration instance.
|
void |
addUri(String uri)
Adds the location as a URI to one of the model files.
|
(package private) static void |
clearLastModifiedTimes()
Clears out the current last modified times.
|
Filters |
getConstraints()
Stores the information about what constraints should/shouldn't be enforced.
|
long |
getLastModified()
Gets the time of the latest modified uri of the model as a
long . |
String[] |
getModuleSearchLocationPaths()
Gets all found module search location paths for this model instance.
|
URL[] |
getModuleSearchLocationResources()
Gets the accumulation of all files found when combining the contents
of all module search location paths and their patterns by which they
are filtered as well as the model URI.
|
Location[] |
getModuleSearchLocations()
Gets the module search locations for this model instance.
|
Filters |
getPackages()
Stores the information about what packages should/shouldn't be processed.
|
Repository |
getRepository()
Gets the repository to which this model belongs.
|
Transformation[] |
getTransformations()
Gets the transformations belonging to this configuration.
|
String |
getType()
Gets the type of the model (i.e.
|
String[] |
getUris()
All URIs that make up the model.
|
boolean |
isChanged()
Indicates whether or not the given
model
has changed since the previous call to this method. |
boolean |
isLastModifiedCheck()
Whether or not to perform a last modified check on the model.
|
void |
setConstraints(Filters constraints)
Sets the constraints for this model.
|
void |
setEnforceAllConstraints(boolean enforceAllConstraints)
Sets the applyAll flag on the internal filters instance
of this model.
|
void |
setLastModifiedCheck(boolean lastModifiedCheck)
Sets whether or not to perform a last modified check when processing the model.
|
void |
setPackages(Filters packages)
Sets the model packages for this model.
|
void |
setProcessAllPackages(boolean processAllPackages)
Sets the processAll flag on the internal model packages instance
of this model.
|
(package private) void |
setRepository(Repository repository)
Sets the repository to which this model belongs.
|
void |
setType(String type)
Sets the type of model (i.e.
|
String |
toString() |
public Model()
public boolean isLastModifiedCheck()
public void setLastModifiedCheck(boolean lastModifiedCheck)
true
the model will be checked for a timestamp before processing occurs.lastModifiedCheck
- true/falsepublic void setProcessAllPackages(boolean processAllPackages)
processAllPackages
- whether or not all packages should be processed by default.public Filters getPackages()
public void setPackages(Filters packages)
packages
- the packages to process.public void setEnforceAllConstraints(boolean enforceAllConstraints)
enforceAllConstraints
- whether or not all constraints should be enforced by default.public Filters getConstraints()
public void setConstraints(Filters constraints)
constraints
- the packages to process.public void addUri(String uri)
uri
- the URI to the model.public void addTransformation(Transformation transformation)
transformation
- the transformation instance to add.public Transformation[] getTransformations()
Transformation
instances.public void addModuleSearchLocation(Location location)
location
- a location path.addModuleSearchLocation(String)
public void addModuleSearchLocation(String path)
path
- a location path.addModuleSearchLocation(Location)
public String getType()
public void setType(String type)
type
- The type to set.public Location[] getModuleSearchLocations()
getModuleSearchLocationPaths()
public String[] getModuleSearchLocationPaths()
getModuleSearchLocations()
public URL[] getModuleSearchLocationResources()
public long getLastModified()
long
.
If it can not be determined 0
is returned.public String toString()
toString
in class Object
Object.toString()
public Repository getRepository()
void setRepository(Repository repository)
repository
- the repository configuration to which this model belongs.public boolean isChanged()
model
has changed since the previous call to this method.static void clearLastModifiedTimes()
Copyright © 2003–2014 AndroMDA.org. All rights reserved.