Package org.apache.tools.ant.types
Class Environment.Variable
java.lang.Object
org.apache.tools.ant.types.Environment.Variable
- Enclosing class:
- Environment
representation of a single env value
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionget the assignment string This is not ready for insertion into a property file without following the escaping rules of the properties class.getKey()key accessorgetValue()value accessorvoidget the absolute path of a file and assign it to the valuevoidset the keyvoidstringify path and assign to the value.voidset the valuevoidvalidate()checks whether all required attributes have been specified.
- 
Constructor Details- 
Variablepublic Variable()Constructor for variable
 
- 
- 
Method Details- 
setKeyset the key- Parameters:
- key- string
 
- 
setValueset the value- Parameters:
- value- string value
 
- 
getKeykey accessor- Returns:
- key
 
- 
getValuevalue accessor- Returns:
- value
 
- 
setPathstringify path and assign to the value. The value will contain all path elements separated by the appropriate separator- Parameters:
- path- path
 
- 
setFileget the absolute path of a file and assign it to the value- Parameters:
- file- file to use as the value
 
- 
getContentget the assignment string This is not ready for insertion into a property file without following the escaping rules of the properties class.- Returns:
- a string of the form key=value.
- Throws:
- BuildException- if key or value are unassigned
 
- 
validatepublic void validate()checks whether all required attributes have been specified.- Throws:
- BuildException- if key or value are unassigned
 
 
-