public class Feature extends Commentable implements java.lang.Comparable<Feature>
| Constructor and Description |
|---|
Feature(java.lang.String name)
Construct a new feature.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Feature o) |
java.util.List<Section> |
getAdditionalSections()
Get all additional sections
|
java.util.List<Section> |
getAdditionalSections(java.lang.String name)
Get all sections with the given name.
|
java.lang.String |
getName()
Get the name of the feature.
|
RunMode |
getOrCreateRunMode(java.lang.String[] names)
Get or create the run mode.
|
RunMode |
getRunMode(java.lang.String... runModes)
Find the run mode if available
|
java.util.List<RunMode> |
getRunModes()
Get all run modes.
|
java.lang.String |
getType()
Get the feature type.
|
KeyValueMap<java.lang.String> |
getVariables()
Get all variables
|
java.lang.String |
getVersion()
Get the version of the feature.
|
boolean |
isSpecial()
Special feature?
|
void |
setType(java.lang.String t)
Set the feature type.
|
void |
setVersion(java.lang.String v)
Set the version.
|
java.lang.String |
toString() |
getComment, setCommentgetLocation, setLocationpublic Feature(java.lang.String name)
name - The feature namepublic java.lang.String getName()
null for an anonymous feature.public java.lang.String getVersion()
nullpublic boolean isSpecial()
public KeyValueMap<java.lang.String> getVariables()
public java.util.List<RunMode> getRunModes()
public RunMode getRunMode(java.lang.String... runModes)
runModes - The run modes or nullnull.public RunMode getOrCreateRunMode(java.lang.String[] names)
names - The run modes.public java.lang.String getType()
public void setVersion(java.lang.String v)
v - The new versionpublic void setType(java.lang.String t)
t - The new typepublic java.util.List<Section> getAdditionalSections()
public java.util.List<Section> getAdditionalSections(java.lang.String name)
name - The section name.public int compareTo(Feature o)
compareTo in interface java.lang.Comparable<Feature>public java.lang.String toString()
toString in class CommentableCopyright © 2010 - 2023 Adobe. All Rights Reserved