public static class Environment.Variable
extends java.lang.Object
| Constructor | Description |
|---|---|
Variable() |
Constructor for variable
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getContent() |
get the assignment string
This is not ready for insertion into a property file without following
the escaping rules of the properties class.
|
java.lang.String |
getKey() |
key accessor
|
java.lang.String |
getValue() |
value accessor
|
void |
setFile(java.io.File file) |
get the absolute path of a file and assign it to the value
|
void |
setKey(java.lang.String key) |
set the key
|
void |
setPath(Path path) |
stringify path and assign to the value.
|
void |
setValue(java.lang.String value) |
set the value
|
void |
validate() |
checks whether all required attributes have been specified.
|
public void setKey(java.lang.String key)
key - stringpublic void setValue(java.lang.String value)
value - string valuepublic java.lang.String getKey()
public java.lang.String getValue()
public void setPath(Path path)
path - pathpublic void setFile(java.io.File file)
file - file to use as the valuepublic java.lang.String getContent()
throws BuildException
BuildException - if key or value are unassignedpublic void validate()
BuildException - if key or value are unassigned