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 request 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 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.
|
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.
|
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.
|
private java.lang.String missing
private java.lang.String exists
private java.util.Map<java.lang.Object,InputLocation> locations
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
- public java.lang.String getMissing()
public void setExists(java.lang.String exists)
exists
- public void setLocation(java.lang.Object key, InputLocation location)
InputLocationTracker
setLocation
in interface InputLocationTracker
key
- location
- public void setMissing(java.lang.String missing)
missing
-