public static class PropertyFile.Entry
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PropertyFile.Entry.Operation
Enumerated attribute with the values "+", "-", "="
|
static class |
PropertyFile.Entry.Type
Enumerated attribute with the values "int", "date" and "string".
|
| Constructor and Description |
|---|
Entry() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeOn(java.util.Properties props)
Apply the nested element to the properties.
|
void |
setDefault(java.lang.String value)
Initial value to set for a property if it is not
already defined in the property file.
|
void |
setKey(java.lang.String value)
Name of the property name/value pair
|
void |
setOperation(PropertyFile.Entry.Operation value)
operation to apply.
|
void |
setPattern(java.lang.String value)
For int and date type only.
|
void |
setType(PropertyFile.Entry.Type value)
Regard the value as : int, date or string (default)
|
void |
setUnit(PropertyFile.Unit unit)
The unit of the value to be applied to date +/- operations.
|
void |
setValue(java.lang.String value)
Value to set (=), to add (+) or subtract (-)
|
public void setKey(java.lang.String value)
value - the key.public void setValue(java.lang.String value)
value - the value.public void setOperation(PropertyFile.Entry.Operation value)
value - the operation enumerated value.public void setType(PropertyFile.Entry.Type value)
value - the type enumerated value.public void setDefault(java.lang.String value)
value - the default value.public void setPattern(java.lang.String value)
value - the pattern to use.public void setUnit(PropertyFile.Unit unit)
unit - the unit enumerated value.protected void executeOn(java.util.Properties props)
throws BuildException
props - the properties to apply the entry on.BuildException - if there is an error.