public class Feature extends Commentable implements Comparable<Feature>
Constructor and Description |
---|
Feature(String name)
Construct a new feature.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Feature o) |
List<Section> |
getAdditionalSections()
Get all additional sections
|
List<Section> |
getAdditionalSections(String name)
Get all sections with the given name.
|
String |
getName()
Get the name of the feature.
|
RunMode |
getOrCreateRunMode(String[] names)
Get or create the run mode.
|
RunMode |
getRunMode(String... runModes)
Find the run mode if available
|
List<RunMode> |
getRunModes()
Get all run modes.
|
String |
getType()
Get the feature type.
|
KeyValueMap<String> |
getVariables()
Get all variables
|
String |
getVersion()
Get the version of the feature.
|
boolean |
isSpecial()
Special feature?
|
void |
setType(String t)
Set the feature type.
|
void |
setVersion(String v)
Set the version.
|
String |
toString() |
getComment, setComment
getLocation, setLocation
public Feature(String name)
name
- The feature namepublic String getName()
null
for an anonymous feature.public String getVersion()
null
public boolean isSpecial()
public KeyValueMap<String> getVariables()
public RunMode getRunMode(String... runModes)
runModes
- The run modes or null
null
.public RunMode getOrCreateRunMode(String[] names)
names
- The run modes.public String getType()
public void setVersion(String v)
v
- The new versionpublic void setType(String t)
t
- The new typepublic List<Section> getAdditionalSections()
public List<Section> getAdditionalSections(String name)
name
- The section name.public int compareTo(Feature o)
compareTo
in interface Comparable<Feature>
public String toString()
toString
in class Commentable
Copyright © 2017 The Apache Software Foundation. All rights reserved.