|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.andromda.core.configuration.Model
public class Model
Stores the model information for each model that AndroMDA will process.
| Constructor Summary | |
|---|---|
Model()
|
|
| Method Summary | |
|---|---|
void |
addModuleSearchLocation(Location location)
Adds a module search location (these are the locations in which a search for module is performed). |
void |
addModuleSearchLocation(java.lang.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(java.lang.String uri)
Adds the location as a URI to one of the model files. |
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. |
java.lang.String[] |
getModuleSearchLocationPaths()
Gets all found module search location paths for this model instance. |
java.net.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 searach 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. |
java.lang.String |
getType()
Gets the type of the model (i.e. |
java.lang.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. |
void |
setType(java.lang.String type)
Sets the type of model (i.e. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Model()
| Method Detail |
|---|
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 java.lang.String[] getUris()
public void addUri(java.lang.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(java.lang.String path)
path - a location path.addModuleSearchLocation(Location)public java.lang.String getType()
public void setType(java.lang.String type)
type - The type to set.public Location[] getModuleSearchLocations()
getModuleSearchLocationPaths()public java.lang.String[] getModuleSearchLocationPaths()
getModuleSearchLocations()public java.net.URL[] getModuleSearchLocationResources()
public long getLastModified()
long.
If it can not be determined 0 is returned.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public Repository getRepository()
public boolean isChanged()
model
has changed since the previous call to this method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||