View Javadoc

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