Package org.apache.maven.model
Class Activation
java.lang.Object
org.apache.maven.model.BaseObject
org.apache.maven.model.Activation
- All Implemented Interfaces:
Serializable
,Cloneable
,InputLocationTracker
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.maven.model.BaseObject
BaseObject.ChildrenTracking
-
Field Summary
Fields inherited from class org.apache.maven.model.BaseObject
childrenTracking, delegate
-
Constructor Summary
ConstructorDescriptionActivation
(Activation delegate) Activation
(Activation delegate, BaseObject parent) -
Method Summary
Modifier and TypeMethodDescriptionstatic List<Activation>
activationToApiV3
(List<Activation> list) static List<Activation>
activationToApiV4
(List<Activation> list) clone()
getFile()
getJdk()
getLocation
(Object key) Gets the location of the specified field in the input source.getOs()
boolean
protected boolean
void
setActiveByDefault
(boolean activeByDefault) void
setFile
(ActivationFile file) void
void
setLocation
(Object key, InputLocation location) Sets the location of the specified field.void
setOs
(ActivationOS os) void
setProperty
(ActivationProperty property) Methods inherited from class org.apache.maven.model.BaseObject
update
-
Constructor Details
-
Activation
public Activation() -
Activation
-
Activation
-
-
Method Details
-
clone
-
getDelegate
- Overrides:
getDelegate
in classBaseObject
-
isActiveByDefault
public boolean isActiveByDefault() -
setActiveByDefault
public void setActiveByDefault(boolean activeByDefault) -
getJdk
-
setJdk
-
getOs
-
setOs
-
getProperty
-
setProperty
-
getFile
-
setFile
-
getLocation
Description copied from interface:InputLocationTracker
Gets the location of the specified field in the input source.- Parameters:
key
- The key of the field, must not benull
.- Returns:
- The location of the field in the input source or
null
if unknown.
-
setLocation
Description copied from interface:InputLocationTracker
Sets the location of the specified field.- Parameters:
key
- The key of the field, must not benull
.location
- The location of the field, may benull
.
-
replace
- Overrides:
replace
in classBaseObject
-
activationToApiV4
-
activationToApiV3
-