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:41 bostic Exp $
00008  */
00009 
00010 package collections.ship.sentity;
00011 
00012 import java.io.Serializable;
00013 
00031 public class Part implements Serializable {
00032 
00033     private transient String number;
00034     private String name;
00035     private String color;
00036     private Weight weight;
00037     private String city;
00038 
00039     public Part(String number, String name, String color, Weight weight,
00040                 String city) {
00041 
00042         this.number = number;
00043         this.name = name;
00044         this.color = color;
00045         this.weight = weight;
00046         this.city = city;
00047     }
00048 
00053     final void setKey(String number) {
00054 
00055         this.number = number;
00056     }
00057 
00058     public final String getNumber() {
00059 
00060         return number;
00061     }
00062 
00063     public final String getName() {
00064 
00065         return name;
00066     }
00067 
00068     public final String getColor() {
00069 
00070         return color;
00071     }
00072 
00073     public final Weight getWeight() {
00074 
00075         return weight;
00076     }
00077 
00078     public final String getCity() {
00079 
00080         return city;
00081     }
00082 
00083     public String toString() {
00084 
00085         return "[Part: number=" + number +
00086                " name=" + name +
00087                " color=" + color +
00088                " weight=" + weight +
00089                " city=" + city + ']';
00090     }
00091 }

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