View Javadoc

1   package com.atlassian.marketplace.client.model;
2   
3   import java.net.URI;
4   
5   import org.joda.time.LocalDate;
6   
7   /**
8    * Information about a specific version of an {@link Application}.
9    * @see com.atlassian.marketplace.client.api.Applications
10   */
11  public final class ApplicationVersion implements Entity
12  {
13      Links _links;
14      @RequiredLink(rel = "self") URI selfUri;
15      
16      Integer buildNumber;
17      String version;
18      LocalDate releaseDate;
19      ApplicationVersionStatus status;
20      
21      @Override
22      public Links getLinks()
23      {
24          return _links;
25      }
26      
27      @Override
28      public URI getSelfUri()
29      {
30          return selfUri;
31      }
32  
33      /**
34       * The version's build number, a value specified by Atlassian that distinguishes it from all other
35       * versions of the application and determines the correct ordering of versions.
36       */
37      public int getBuildNumber()
38      {
39          return buildNumber;
40      }
41      
42      /**
43       * The version string, e.g. "1.0".
44       */
45      public String getName()
46      {
47          // changing property name from "version" to "name" for consistency with AddonVersion
48          return version;
49      }
50      
51      /**
52       * The date on which the version was released.
53       */
54      public LocalDate getReleaseDate()
55      {
56          return releaseDate;
57      }
58      
59      /**
60       * Indicates whether the version is publicly visible or private.
61       */
62      public ApplicationVersionStatus getStatus()
63      {
64          return status;
65      }
66  }