Package org.apache.maven.model
Class ActivationProperty
- java.lang.Object
-
- org.apache.maven.model.ActivationProperty
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,InputLocationTracker
public class ActivationProperty extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
This is the property specification used to activate a profile. If the value field is empty, then the existence of the named property will activate the profile, otherwise it does a case-sensitive match against the property value as well.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private InputLocationlocationField location.private java.util.Map<java.lang.Object,InputLocation>locationsField locations.private java.lang.StringnameThe name of the property to be used to activate a profile.private InputLocationnameLocationField nameLocation.private java.lang.StringvalueThe value of the property required to activate a profile.private InputLocationvalueLocationField valueLocation.
-
Constructor Summary
Constructors Constructor Description ActivationProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivationPropertyclone()Method clone.InputLocationgetLocation(java.lang.Object key)Gets the location of the specified field in the input source.java.lang.StringgetName()Get the name of the property to be used to activate a profile.private InputLocationgetOtherLocation(java.lang.Object key)java.lang.StringgetValue()Get the value of the property required to activate a profile.voidsetLocation(java.lang.Object key, InputLocation location)Sets the location of the specified field.voidsetName(java.lang.String name)Set the name of the property to be used to activate a profile.voidsetOtherLocation(java.lang.Object key, InputLocation location)voidsetValue(java.lang.String value)Set the value of the property required to activate a profile.
-
-
-
Field Detail
-
name
private java.lang.String name
The name of the property to be used to activate a profile.
-
value
private java.lang.String value
The value of the property required to activate a profile.
-
locations
private java.util.Map<java.lang.Object,InputLocation> locations
Field locations.
-
location
private InputLocation location
Field location.
-
nameLocation
private InputLocation nameLocation
Field nameLocation.
-
valueLocation
private InputLocation valueLocation
Field valueLocation.
-
-
Method Detail
-
clone
public ActivationProperty clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- ActivationProperty
-
getLocation
public InputLocation getLocation(java.lang.Object key)
Description copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker- Parameters:
key-- Returns:
- InputLocation
-
getName
public java.lang.String getName()
Get the name of the property to be used to activate a profile.- Returns:
- String
-
setLocation
public void setLocation(java.lang.Object key, InputLocation location)Description copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
setLocationin interfaceInputLocationTracker- Parameters:
key-location-
-
setOtherLocation
public void setOtherLocation(java.lang.Object key, InputLocation location)- Parameters:
key-location-
-
getOtherLocation
private InputLocation getOtherLocation(java.lang.Object key)
- Parameters:
key-- Returns:
- InputLocation
-
getValue
public java.lang.String getValue()
Get the value of the property required to activate a profile.- Returns:
- String
-
setName
public void setName(java.lang.String name)
Set the name of the property to be used to activate a profile.- Parameters:
name-
-
setValue
public void setValue(java.lang.String value)
Set the value of the property required to activate a profile.- Parameters:
value-
-
-