View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   //   Generated by Maven, any modifications will be overwritten.
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 Scm
20      extends BaseObject
21  {
22  
23      public Scm()
24      {
25          this( org.apache.maven.api.model.Scm.newInstance() );
26      }
27  
28      public Scm( org.apache.maven.api.model.Scm delegate )
29      {
30          this( delegate, null );
31      }
32  
33      public Scm( org.apache.maven.api.model.Scm delegate, BaseObject parent )
34      {
35          super( delegate, parent );
36      }
37  
38      public Scm clone()
39      {
40          return new Scm( getDelegate() );
41      }
42  
43      public org.apache.maven.api.model.Scm getDelegate()
44      {
45          return ( org.apache.maven.api.model.Scm ) super.getDelegate();
46      }
47  
48      public String getConnection()
49      {
50          return getDelegate().getConnection();
51      }
52  
53      public void setConnection( String connection )
54      {
55          if ( !Objects.equals( connection, getDelegate().getConnection() ) )
56          {
57              update( getDelegate().withConnection( connection ) );
58          }
59      }
60  
61      public String getDeveloperConnection()
62      {
63          return getDelegate().getDeveloperConnection();
64      }
65  
66      public void setDeveloperConnection( String developerConnection )
67      {
68          if ( !Objects.equals( developerConnection, getDelegate().getDeveloperConnection() ) )
69          {
70              update( getDelegate().withDeveloperConnection( developerConnection ) );
71          }
72      }
73  
74      public String getTag()
75      {
76          return getDelegate().getTag();
77      }
78  
79      public void setTag( String tag )
80      {
81          if ( !Objects.equals( tag, getDelegate().getTag() ) )
82          {
83              update( getDelegate().withTag( tag ) );
84          }
85      }
86  
87      public String getUrl()
88      {
89          return getDelegate().getUrl();
90      }
91  
92      public void setUrl( String url )
93      {
94          if ( !Objects.equals( url, getDelegate().getUrl() ) )
95          {
96              update( getDelegate().withUrl( url ) );
97          }
98      }
99  
100     public String getChildScmConnectionInheritAppendPath()
101     {
102         return getDelegate().getChildScmConnectionInheritAppendPath();
103     }
104 
105     public void setChildScmConnectionInheritAppendPath( String childScmConnectionInheritAppendPath )
106     {
107         if ( !Objects.equals( childScmConnectionInheritAppendPath, getDelegate().getChildScmConnectionInheritAppendPath() ) )
108         {
109             update( getDelegate().withChildScmConnectionInheritAppendPath( childScmConnectionInheritAppendPath ) );
110         }
111     }
112 
113     public String getChildScmDeveloperConnectionInheritAppendPath()
114     {
115         return getDelegate().getChildScmDeveloperConnectionInheritAppendPath();
116     }
117 
118     public void setChildScmDeveloperConnectionInheritAppendPath( String childScmDeveloperConnectionInheritAppendPath )
119     {
120         if ( !Objects.equals( childScmDeveloperConnectionInheritAppendPath, getDelegate().getChildScmDeveloperConnectionInheritAppendPath() ) )
121         {
122             update( getDelegate().withChildScmDeveloperConnectionInheritAppendPath( childScmDeveloperConnectionInheritAppendPath ) );
123         }
124     }
125 
126     public String getChildScmUrlInheritAppendPath()
127     {
128         return getDelegate().getChildScmUrlInheritAppendPath();
129     }
130 
131     public void setChildScmUrlInheritAppendPath( String childScmUrlInheritAppendPath )
132     {
133         if ( !Objects.equals( childScmUrlInheritAppendPath, getDelegate().getChildScmUrlInheritAppendPath() ) )
134         {
135             update( getDelegate().withChildScmUrlInheritAppendPath( childScmUrlInheritAppendPath ) );
136         }
137     }
138 
139     public InputLocation getLocation( Object key )
140     {
141         org.apache.maven.api.model.InputLocation loc = getDelegate().getLocation( key );
142         return loc != null ? new InputLocation( loc ) : null;
143     }
144 
145     public void setLocation( Object key, InputLocation location )
146     {
147         update( org.apache.maven.api.model.Scm.newBuilder( getDelegate(), true )
148                         .location( key, location.toApiLocation() ).build() );
149     }
150 
151     protected boolean replace( Object oldDelegate, Object newDelegate )
152     {
153         if ( super.replace( oldDelegate, newDelegate ) )
154         {
155             return true;
156         }
157         return false;
158     }
159 
160     public static List<org.apache.maven.api.model.Scm> scmToApiV4( List<Scm> list )
161     {
162         return list != null ? new WrapperList<>( list, Scm::getDelegate, Scm::new ) : null;
163     }
164 
165     public static List<Scm> scmToApiV3( List<org.apache.maven.api.model.Scm> list )
166     {
167         return list != null ? new WrapperList<>( list, Scm::new, Scm::getDelegate ) : null;
168     }
169 
170 
171             
172 
173     public boolean isChildScmConnectionInheritAppendPath()
174     {
175         return ( getChildScmConnectionInheritAppendPath() != null ) ? Boolean.parseBoolean( getChildScmConnectionInheritAppendPath() ) : true;
176     }
177 
178     public boolean isChildScmDeveloperConnectionInheritAppendPath()
179     {
180         return ( getChildScmDeveloperConnectionInheritAppendPath() != null ) ? Boolean.parseBoolean( getChildScmDeveloperConnectionInheritAppendPath() ) : true;
181     }
182 
183     public boolean isChildScmUrlInheritAppendPath()
184     {
185         return ( getChildScmUrlInheritAppendPath() != null ) ? Boolean.parseBoolean( getChildScmUrlInheritAppendPath() ) : true;
186     }
187 
188             
189           
190 }