org.apache.maven.model
Class ActivationProperty

java.lang.Object
  extended by org.apache.maven.model.ActivationProperty
All Implemented Interfaces:
Serializable, Cloneable, InputLocationTracker

public class ActivationProperty
extends Object
implements Serializable, 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

Constructor Summary
ActivationProperty()
           
 
Method Summary
 ActivationProperty clone()
          Method clone.
 InputLocation getLocation(Object key)
          Gets the location of the specified field in the input source.
 String getName()
          Get the name of the property to be used to activate a profile.
 String getValue()
          Get the value of the property required to activate a profile.
 void setLocation(Object key, InputLocation location)
          Sets the location of the specified field.
 void setName(String name)
          Set the name of the property to be used to activate a profile.
 void setValue(String value)
          Set the value of the property required to activate a profile.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivationProperty

public ActivationProperty()
Method Detail

clone

public ActivationProperty clone()
Method clone.

Overrides:
clone in class Object
Returns:
ActivationProperty

getLocation

public InputLocation getLocation(Object key)
Description copied from interface: InputLocationTracker
Gets the location of the specified field in the input source.

Specified by:
getLocation in interface InputLocationTracker
Parameters:
key -
Returns:
InputLocation

getName

public String getName()
Get the name of the property to be used to activate a profile.

Returns:
String

getValue

public String getValue()
Get the value of the property required to activate a profile.

Returns:
String

setLocation

public void setLocation(Object key,
                        InputLocation location)
Description copied from interface: InputLocationTracker
Sets the location of the specified field.

Specified by:
setLocation in interface InputLocationTracker
Parameters:
key -
location -

setName

public void setName(String name)
Set the name of the property to be used to activate a profile.

Parameters:
name -

setValue

public void setValue(String value)
Set the value of the property required to activate a profile.

Parameters:
value -


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.