1
2
3
4 package org.apache.maven.settings;
5
6 import java.io.Serializable;
7 import java.util.AbstractList;
8 import java.util.Collections;
9 import java.util.HashMap;
10 import java.util.List;
11 import java.util.Map;
12 import java.util.stream.Collectors;
13 import java.util.stream.Stream;
14 import org.apache.maven.api.annotations.Generated;
15 import org.apache.maven.api.annotations.Nonnull;
16
17 @Generated
18 public class Activation
19 implements Serializable, Cloneable
20 {
21
22 org.apache.maven.api.settings.Activation delegate;
23
24 public Activation()
25 {
26 this( org.apache.maven.api.settings.Activation.newInstance() );
27 }
28
29 public Activation( org.apache.maven.api.settings.Activation delegate )
30 {
31 this.delegate = delegate;
32 }
33
34 public Activation clone()
35 {
36 return new Activation( getDelegate() );
37 }
38
39 public org.apache.maven.api.settings.Activation getDelegate()
40 {
41 return delegate;
42 }
43
44 public boolean isActiveByDefault()
45 {
46 return getDelegate().isActiveByDefault();
47 }
48
49 public void setActiveByDefault( boolean activeByDefault )
50 {
51 delegate = getDelegate().withActiveByDefault( activeByDefault );
52 }
53
54 public String getJdk()
55 {
56 return getDelegate().getJdk();
57 }
58
59 public void setJdk( String jdk )
60 {
61 delegate = getDelegate().withJdk( jdk );
62 }
63
64 public ActivationOS getOs()
65 {
66 return getDelegate().getOs() != null ? new ActivationOS( getDelegate().getOs() ) : null;
67 }
68
69 public void setOs( ActivationOS os )
70 {
71 delegate = getDelegate().withOs( os.getDelegate() );
72 }
73
74 public ActivationProperty getProperty()
75 {
76 return getDelegate().getProperty() != null ? new ActivationProperty( getDelegate().getProperty() ) : null;
77 }
78
79 public void setProperty( ActivationProperty property )
80 {
81 delegate = getDelegate().withProperty( property.getDelegate() );
82 }
83
84 public ActivationFile getFile()
85 {
86 return getDelegate().getFile() != null ? new ActivationFile( getDelegate().getFile() ) : null;
87 }
88
89 public void setFile( ActivationFile file )
90 {
91 delegate = getDelegate().withFile( file.getDelegate() );
92 }
93
94 public static List<org.apache.maven.api.settings.Activation> activationToApiV4( List<Activation> list )
95 {
96 return list != null ? new WrapperList<>( list, Activation::getDelegate, Activation::new ) : null;
97 }
98
99 public static List<Activation> activationToApiV3( List<org.apache.maven.api.settings.Activation> list )
100 {
101 return list != null ? new WrapperList<>( list, Activation::new, Activation::getDelegate ) : null;
102 }
103
104 }