01: /*
02: * Copyright 2007 Dan Shellman
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.iscreen.samples;
17:
18: /**
19: * A line i tem is a single item on an overall order. This is a sample
20: * class for validating object graphs.
21: *
22: * @author Shellman, Dan
23: */
24: public class LineItem {
25: private String productId;
26: private int count = 1;
27:
28: /**
29: * Default constructor.
30: */
31: public LineItem(String product) {
32: productId = product;
33: } //end LineItem()
34:
35: public String getProductId() {
36: return productId;
37: } //end getProductId()
38:
39: public void setCount(int newCount) {
40: count = newCount;
41: } //end setCount()
42:
43: public int getCount() {
44: return count;
45: } //end getCount()
46: } //end LineItem
|