View Javadoc

1   package org.apache.maven.plugin.dependency.fromConfiguration;
2   /*
3    * Licensed to the Apache Software Foundation (ASF) under one
4    * or more contributor license agreements.  See the NOTICE file
5    * distributed with this work for additional information
6    * regarding copyright ownership.  The ASF licenses this file
7    * to you under the Apache License, Version 2.0 (the
8    * "License"); you may not use this file except in compliance
9    * with the License.  You may obtain a copy of the License at
10   *
11   * http://www.apache.org/licenses/LICENSE-2.0
12   *
13   * Unless required by applicable law or agreed to in writing,
14   * software distributed under the License is distributed on an
15   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16   * KIND, either express or implied.  See the License for the
17   * specific language governing permissions and limitations
18   * under the License.
19   */
20  
21  /**
22   * @author Olivier Lamy
23   * @since 2.7
24   */
25  public class ProcessArtifactItemsRequest
26  {
27      /**
28       * remove the version from the filename.
29       */
30      private boolean removeVersion;
31  
32      /**
33       * prepend the groupId to the filename.
34       */
35      private boolean prependGroupId;
36  
37      /**
38       * use the baseVersion of the artifact instead of version for the filename.
39       */
40      private boolean useBaseVersion;
41  
42      public ProcessArtifactItemsRequest()
43      {
44          // no op
45      }
46  
47      public ProcessArtifactItemsRequest( boolean removeVersion, boolean prependGroupId, boolean useBaseVersion )
48      {
49          this.removeVersion = removeVersion;
50          this.prependGroupId = prependGroupId;
51          this.useBaseVersion = useBaseVersion;
52      }
53  
54      public boolean isRemoveVersion()
55      {
56          return removeVersion;
57      }
58  
59      public void setRemoveVersion( boolean removeVersion )
60      {
61          this.removeVersion = removeVersion;
62      }
63  
64      public ProcessArtifactItemsRequest removeVersion( boolean removeVersion )
65      {
66          this.removeVersion = removeVersion;
67          return this;
68      }
69  
70      public boolean isPrependGroupId()
71      {
72          return prependGroupId;
73      }
74  
75      public void setPrependGroupId( boolean prependGroupId )
76      {
77          this.prependGroupId = prependGroupId;
78      }
79  
80      public ProcessArtifactItemsRequest prependGroupId( boolean prependGroupId )
81      {
82          this.prependGroupId = prependGroupId;
83          return this;
84      }
85  
86      public boolean isUseBaseVersion()
87      {
88          return useBaseVersion;
89      }
90  
91      public void setUseBaseVersion( boolean useBaseVersion )
92      {
93          this.useBaseVersion = useBaseVersion;
94      }
95  
96      public ProcessArtifactItemsRequest useBaseVersion( boolean useBaseVersion )
97      {
98          this.useBaseVersion = useBaseVersion;
99          return this;
100     }
101 }