View Javadoc
1   package com.simpligility.maven.plugins.android.configuration;
2   
3   import org.apache.maven.plugins.annotations.Parameter;
4   
5   /**
6    * Configuration for a custom BuildConfig constant.
7    *
8    * @author jonasfa@gmail.com
9    */
10  public class BuildConfigConstant
11  {
12      /**
13       * Name of the constant.
14       * Eg.: SERVER_URL, etc
15       */
16      @Parameter ( property = "android.buildConfigConstants[].name" , required = true )
17      private String name;
18  
19      /**
20       * Type of the value.
21       * Eg.: String, int, com.mypackage.MyType, etc
22       */
23      @Parameter ( property = "android.buildConfigConstants[].type", required = true )
24      private String type;
25  
26      /**
27       * Value of the constant.
28       * Eg.: MyString, 123, new com.mypackage.MyType(), etc
29       */
30      @Parameter ( property = "android.buildConfigConstants[].value" , required = true )
31      private String value;
32  
33      public String getType()
34      {
35          return type;
36      }
37  
38      public String getValue()
39      {
40          return value;
41      }
42  
43      public String getName()
44      {
45          return name;
46      }
47  }