public class ActivationFile extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
missing
value
is the location of a file that needs to exist, and if it
doesn't, the profile will be
activated. On the other hand, exists
will
test for the existence of the file and if it is
there, the profile will be activated.${basedir}
,
system properties and user properties.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
exists
The name of the file that must exist to activate the profile.
|
private InputLocation |
existsLocation
Field existsLocation.
|
private InputLocation |
location
Field location.
|
private java.util.Map<java.lang.Object,InputLocation> |
locations
Field locations.
|
private java.lang.String |
missing
The name of the file that must be missing to activate the
profile.
|
private InputLocation |
missingLocation
Field missingLocation.
|
Constructor and Description |
---|
ActivationFile() |
Modifier and Type | Method and Description |
---|---|
ActivationFile |
clone()
Method clone.
|
java.lang.String |
getExists()
Get the name of the file that must exist to activate the
profile.
|
InputLocation |
getLocation(java.lang.Object key)
Gets the location of the specified field in the input
source.
|
java.lang.String |
getMissing()
Get the name of the file that must be missing to activate
the
profile.
|
private InputLocation |
getOtherLocation(java.lang.Object key) |
void |
setExists(java.lang.String exists)
Set the name of the file that must exist to activate the
profile.
|
void |
setLocation(java.lang.Object key,
InputLocation location)
Sets the location of the specified field.
|
void |
setMissing(java.lang.String missing)
Set the name of the file that must be missing to activate
the
profile.
|
void |
setOtherLocation(java.lang.Object key,
InputLocation location) |
private java.lang.String missing
private java.lang.String exists
private java.util.Map<java.lang.Object,InputLocation> locations
private InputLocation location
private InputLocation missingLocation
private InputLocation existsLocation
public ActivationFile clone()
clone
in class java.lang.Object
public java.lang.String getExists()
public InputLocation getLocation(java.lang.Object key)
InputLocationTracker
getLocation
in interface InputLocationTracker
key
- a key object.public java.lang.String getMissing()
public void setLocation(java.lang.Object key, InputLocation location)
InputLocationTracker
setLocation
in interface InputLocationTracker
key
- a key object.location
- a location object.public void setOtherLocation(java.lang.Object key, InputLocation location)
key
- a key object.location
- a location object.private InputLocation getOtherLocation(java.lang.Object key)
key
- a key object.public void setExists(java.lang.String exists)
exists
- a exists object.public void setMissing(java.lang.String missing)
missing
- a missing object.