public class RunMode extends Traceable implements java.lang.Comparable<RunMode>
Constructor and Description |
---|
RunMode(java.lang.String[] names)
Create a new run mode
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RunMode o2) |
ArtifactGroup |
getArtifactGroup(int startLevel)
Find the artifact group.
|
java.util.List<ArtifactGroup> |
getArtifactGroups()
Get all artifact groups
|
Configuration |
getConfiguration(java.lang.String pid)
Search a configuration with a pid
|
Configuration |
getConfiguration(java.lang.String pid,
java.lang.String factoryPid)
Search a configuration with pid and factory pid
|
ItemList<Configuration> |
getConfigurations()
Get all configurations
|
java.lang.String[] |
getNames()
Return the run mode names.
|
ArtifactGroup |
getOrCreateArtifactGroup(int startLevel)
Get or create an artifact group
|
Configuration |
getOrCreateConfiguration(java.lang.String pid,
java.lang.String factoryPid)
Get or create the configuration
|
KeyValueMap<java.lang.String> |
getSettings()
Get the settings
|
static java.lang.String[] |
getSortedRunModesArray(java.lang.String[] names)
Get an alphabetical sorted array of the run mode names.
|
boolean |
isActive(java.util.Set<java.lang.String> activeRunModes)
Check if this run mode is active wrt the given set of active run modes.
|
boolean |
isRunMode(java.lang.String mode)
Check if this run mode is tied to a single specific run mode name.
|
boolean |
isSpecial()
Check whether this run mode is a special one
|
java.lang.String |
toString() |
getLocation, setLocation
public RunMode(java.lang.String[] names)
names
- The run mode namespublic static java.lang.String[] getSortedRunModesArray(java.lang.String[] names)
names
- The run mode namespublic java.lang.String[] getNames()
null
.public boolean isActive(java.util.Set<java.lang.String> activeRunModes)
activeRunModes
- The set of active run modes.true
if the run mode is active.public boolean isSpecial()
true
if it is specialpublic boolean isRunMode(java.lang.String mode)
mode
- The name of the run modetrue
if this run mode is tied to exactly the single one.public ArtifactGroup getArtifactGroup(int startLevel)
startLevel
- the start levelnull
.public ArtifactGroup getOrCreateArtifactGroup(int startLevel)
startLevel
- The start levelpublic Configuration getConfiguration(java.lang.String pid)
pid
- The configuration pidnull
public Configuration getConfiguration(java.lang.String pid, java.lang.String factoryPid)
pid
- The pidfactoryPid
- The optional factory pidnull
.public Configuration getOrCreateConfiguration(java.lang.String pid, java.lang.String factoryPid)
pid
- The pidfactoryPid
- The optional factory pidpublic java.util.List<ArtifactGroup> getArtifactGroups()
public ItemList<Configuration> getConfigurations()
public KeyValueMap<java.lang.String> getSettings()
public int compareTo(RunMode o2)
compareTo
in interface java.lang.Comparable<RunMode>
Comparable.compareTo(java.lang.Object)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"