View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.json.model;
8   
9   import org.codehaus.jackson.annotate.JsonAutoDetect;
10  import org.codehaus.jackson.annotate.JsonProperty;
11  
12  @JsonAutoDetect(org.codehaus.jackson.annotate.JsonMethod.FIELD)
13  public class Item
14  {
15      @JsonProperty
16      private String code;
17      
18      @JsonProperty
19      private String description;
20  
21      @JsonProperty("in-stock")
22      private boolean inStock;
23  
24      public String getCode()
25      {
26          return code;
27      }
28  
29      public void setCode(String code)
30      {
31          this.code = code;
32      }
33  
34      public String getDescription()
35      {
36          return description;
37      }
38  
39      public void setDescription(String description)
40      {
41          this.description = description;
42      }
43  
44      public boolean isInStock()
45      {
46          return inStock;
47      }
48  
49      public void setInStock(boolean inStock)
50      {
51          this.inStock = inStock;
52      }
53  }