Modifier and Type | Class and Description |
---|---|
public static class | Environment.Variable
representation of a single env value |
Modifier and Type | Field and Description |
---|---|
protected Vector | variables
a vector of type Environment.Variable |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | |
public String[] | |
public Vector | Returns: a potentially empty (but never null) vector of elements of type VariableGet the raw vector of variables. |
variables | back to summary |
---|---|
protected Vector<Environment. a vector of type Environment.Variable
|
Environment | back to summary |
---|---|
public Environment() constructor |
addVariable | back to summary |
---|---|
public void addVariable(Environment. add a variable. Validity checking is not performed at this point. Duplicates are not caught either.
|
getVariables | back to summary |
---|---|
public String[] getVariables() throws BuildException get the variable list as an array
|
getVariablesVector | back to summary |
---|---|
public Vector Get the raw vector of variables. This is not a clone.
|
Modifier and Type | Field and Description |
---|---|
private String | key
env key and value pair; everything gets expanded to a string during assignment |
private String | value
env key and value pair; everything gets expanded to a string during assignment |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public String | Returns: a string of the form key=value.get the assignment string This is not ready for insertion into a property file without following the escaping rules of the properties class. |
public String | |
public String | |
public void | |
public void | |
public void | |
public void | |
public void |
key | back to summary |
---|---|
private String key env key and value pair; everything gets expanded to a string during assignment |
value | back to summary |
---|---|
private String value env key and value pair; everything gets expanded to a string during assignment |
Variable | back to summary |
---|---|
public Variable() Constructor for variable |
getContent | back to summary |
---|---|
public String getContent() throws BuildException get the assignment string This is not ready for insertion into a property file without following the escaping rules of the properties class.
|
getKey | back to summary |
---|---|
public String getKey() key accessor
|
getValue | back to summary |
---|---|
public String getValue() value accessor
|
setFile | back to summary |
---|---|
public void setFile(File file) get the absolute path of a file and assign it to the value
|
setKey | back to summary |
---|---|
public void setKey(String key) set the key
|
setPath | back to summary |
---|---|
public void setPath(Path path) stringify path and assign to the value. The value will contain all path elements separated by the appropriate separator
|
setValue | back to summary |
---|---|
public void setValue(String value) set the value
|
validate | back to summary |
---|---|
public void validate() checks whether all required attributes have been specified.
|