org.apache.tools.ant.types
Class Environment.Variable
java.lang.Object
org.apache.tools.ant.types.Environment.Variable
- Environment
public static class Environment.Variable
extends java.lang.Object
representation of a single env value
String | getContent() - get the assigment string
This is not ready for insertion into a property file without following
the escaping rules of the properties class.
|
String | getKey() - key accessor
|
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(String key) - set the key
|
void | setPath(Path path) - stringify path and assign to the value.
|
void | setValue(String value) - set the value
|
void | validate() - checks whether all required attributes have been specified.
|
Variable
public Variable()
Constructor for variable
getContent
public String getContent()
throws BuildException
get the assigment string
This is not ready for insertion into a property file without following
the escaping rules of the properties class.
- a string of the form key=value.
getKey
public String getKey()
key accessor
getValue
public String getValue()
value accessor
setFile
public void setFile(java.io.File file)
get the absolute path of a file and assign it to the value
file
- file to use as the value
setKey
public void setKey(String key)
set the key
setPath
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
public void setValue(String value)
set the value
validate
public void validate()
checks whether all required attributes have been specified.
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.