com.borland.primetime.runtime
Class RunConfiguration
java.lang.Object
|
+--com.borland.primetime.runtime.RunConfiguration
- public class RunConfiguration
- extends java.lang.Object
Instances of RunConfiguration encapsulate the settings that define a
single indexed runtime configuration from a project. These properties are
exposed through a map of PropertyMap instances available via the getMap()
method.
Typical use of a RunConfiguration consists of construction, reading the
current state via readProperties(), setting one or more MapProperty values
using the map returned by getMap(), and writing the new state via
writeProperties().
Constructor Summary |
RunConfiguration(Project project,
int id)
Creates a new RunConfiguration for the specified project and index. |
Method Summary |
java.lang.String |
getCategory()
|
int |
getId()
|
java.util.Map |
getMap()
Returns a Map instance used to get and set runtime settings via
MapProperty instances. |
java.lang.String |
getName()
|
Project |
getProject()
|
void |
readProperties()
Loads the state of a set of project properties belonging to this
RunConfiguration from the associated project. |
void |
setId(int id)
|
void |
setName(java.lang.String name)
|
java.lang.String |
toString()
|
void |
writeProperties()
Saves the state of this RunConfiguration into the associated project. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
RUNNABLE_TYPE
public static final MapProperty RUNNABLE_TYPE
CONFIGURATION_NAME
public static final MapProperty CONFIGURATION_NAME
RunConfiguration
public RunConfiguration(Project project,
int id)
- Creates a new RunConfiguration for the specified project and index. The
index zero is used to define the default runtime, while successive
positive integers define additional named runtimes. Note that a newly
constructed RunConfiguration instance has no property settings, requiring
a call to readProperties() to load the corresponding settings from the
associated project.
- Parameters:
project
- The project associated with this RunConfiguration.id
- The initial runtime index assocaited with this RunConfiguration.
getProject
public Project getProject()
getId
public int getId()
setId
public void setId(int id)
getMap
public java.util.Map getMap()
- Returns a Map instance used to get and set runtime settings via
MapProperty instances.
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getCategory
public java.lang.String getCategory()
readProperties
public void readProperties()
- Loads the state of a set of project properties belonging to this
RunConfiguration from the associated project. Existing property values
recorded in the internal map are discarded.
writeProperties
public void writeProperties()
- Saves the state of this RunConfiguration into the associated project.
Existing property values in the project for the corresponding runtime
index are discarded.
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object