Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

Part.java

00001 /*-
00002  * See the file LICENSE for redistribution information.
00003  *
00004  * Copyright (c) 2002-2005
00005  *      Sleepycat Software.  All rights reserved.
00006  *
00007  * $Id: Part.java,v 12.2 2005/06/16 20:22:24 bostic Exp $
00008  */
00009 
00010 package collections.ship.entity;
00011 
00022 public class Part {
00023 
00024     private String number;
00025     private String name;
00026     private String color;
00027     private Weight weight;
00028     private String city;
00029 
00030     public Part(String number, String name, String color, Weight weight,
00031                 String city) {
00032 
00033         this.number = number;
00034         this.name = name;
00035         this.color = color;
00036         this.weight = weight;
00037         this.city = city;
00038     }
00039 
00040     public final String getNumber() {
00041 
00042         return number;
00043     }
00044 
00045     public final String getName() {
00046 
00047         return name;
00048     }
00049 
00050     public final String getColor() {
00051 
00052         return color;
00053     }
00054 
00055     public final Weight getWeight() {
00056 
00057         return weight;
00058     }
00059 
00060     public final String getCity() {
00061 
00062         return city;
00063     }
00064 
00065     public String toString() {
00066 
00067         return "[Part: number=" + number +
00068                " name=" + name +
00069                " color=" + color +
00070                " weight=" + weight +
00071                " city=" + city + ']';
00072     }
00073 }

Generated on Sun Dec 25 12:14:27 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2