FileDocCategorySizeDatePackage
Stock.javaAPI DocExample848Wed Feb 27 10:13:42 GMT 2002javajaxb.po

Stock.java

package javajaxb.po;

import boolean;
import int;

public class Stock {

    /** default = "true" */
    protected boolean onHand = true;

    protected int quantity;


    public Stock() {
    }

    /** full constructor */
    public Stock(boolean onHand, int quantity) {
        this.onHand = onHand;
        this.quantity = quantity;
    }

    /** minimum constructor */
    public Stock(int quantity) {
        this.quantity = quantity;
    }

    /** default = "true" */
    public boolean getOnHand() {
        return(onHand);
    }

    /** default = "true" */
    public void setOnHand(boolean onHand) {
        this.onHand = onHand;
    }

    public int getQuantity() {
        return(quantity);
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

}