1
2
3
4 package org.apache.maven.model;
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.Objects;
13 import java.util.stream.Collectors;
14 import java.util.stream.Stream;
15 import org.apache.maven.api.annotations.Generated;
16 import org.apache.maven.api.annotations.Nonnull;
17
18 @Generated
19 public class ActivationFile
20 extends BaseObject
21 {
22
23 public ActivationFile()
24 {
25 this( org.apache.maven.api.model.ActivationFile.newInstance() );
26 }
27
28 public ActivationFile( org.apache.maven.api.model.ActivationFile delegate )
29 {
30 this( delegate, null );
31 }
32
33 public ActivationFile( org.apache.maven.api.model.ActivationFile delegate, BaseObject parent )
34 {
35 super( delegate, parent );
36 }
37
38 public ActivationFile clone()
39 {
40 return new ActivationFile( getDelegate() );
41 }
42
43 public org.apache.maven.api.model.ActivationFile getDelegate()
44 {
45 return ( org.apache.maven.api.model.ActivationFile ) super.getDelegate();
46 }
47
48 public String getMissing()
49 {
50 return getDelegate().getMissing();
51 }
52
53 public void setMissing( String missing )
54 {
55 if ( !Objects.equals( missing, getDelegate().getMissing() ) )
56 {
57 update( getDelegate().withMissing( missing ) );
58 }
59 }
60
61 public String getExists()
62 {
63 return getDelegate().getExists();
64 }
65
66 public void setExists( String exists )
67 {
68 if ( !Objects.equals( exists, getDelegate().getExists() ) )
69 {
70 update( getDelegate().withExists( exists ) );
71 }
72 }
73
74 public InputLocation getLocation( Object key )
75 {
76 org.apache.maven.api.model.InputLocation loc = getDelegate().getLocation( key );
77 return loc != null ? new InputLocation( loc ) : null;
78 }
79
80 public void setLocation( Object key, InputLocation location )
81 {
82 update( org.apache.maven.api.model.ActivationFile.newBuilder( getDelegate(), true )
83 .location( key, location.toApiLocation() ).build() );
84 }
85
86 protected boolean replace( Object oldDelegate, Object newDelegate )
87 {
88 if ( super.replace( oldDelegate, newDelegate ) )
89 {
90 return true;
91 }
92 return false;
93 }
94
95 public static List<org.apache.maven.api.model.ActivationFile> activationFileToApiV4( List<ActivationFile> list )
96 {
97 return list != null ? new WrapperList<>( list, ActivationFile::getDelegate, ActivationFile::new ) : null;
98 }
99
100 public static List<ActivationFile> activationFileToApiV3( List<org.apache.maven.api.model.ActivationFile> list )
101 {
102 return list != null ? new WrapperList<>( list, ActivationFile::new, ActivationFile::getDelegate ) : null;
103 }
104
105 }