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 ActivationProperty
19 implements Serializable, Cloneable
20 {
21
22 org.apache.maven.api.settings.ActivationProperty delegate;
23
24 public ActivationProperty()
25 {
26 this( org.apache.maven.api.settings.ActivationProperty.newInstance() );
27 }
28
29 public ActivationProperty( org.apache.maven.api.settings.ActivationProperty delegate )
30 {
31 this.delegate = delegate;
32 }
33
34 public ActivationProperty clone()
35 {
36 return new ActivationProperty( getDelegate() );
37 }
38
39 public org.apache.maven.api.settings.ActivationProperty getDelegate()
40 {
41 return delegate;
42 }
43
44 public String getName()
45 {
46 return getDelegate().getName();
47 }
48
49 public void setName( String name )
50 {
51 delegate = getDelegate().withName( name );
52 }
53
54 public String getValue()
55 {
56 return getDelegate().getValue();
57 }
58
59 public void setValue( String value )
60 {
61 delegate = getDelegate().withValue( value );
62 }
63
64 public static List<org.apache.maven.api.settings.ActivationProperty> activationPropertyToApiV4( List<ActivationProperty> list )
65 {
66 return list != null ? new WrapperList<>( list, ActivationProperty::getDelegate, ActivationProperty::new ) : null;
67 }
68
69 public static List<ActivationProperty> activationPropertyToApiV3( List<org.apache.maven.api.settings.ActivationProperty> list )
70 {
71 return list != null ? new WrapperList<>( list, ActivationProperty::new, ActivationProperty::getDelegate ) : null;
72 }
73
74 }