⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 itembo.java

📁 weblogic_src_xml.rar
💻 JAVA
字号:
package examples.xml.orderParser;

/**
 * Data representation of an item.
 *
 * @author Copyright (c) 2003 by BEA Systems, Inc. All Rights Reserved.
 */
public class ItemBO
{
  private String number;
  private String description;
  private int quantity;
  private double price;

  // constructors
  public ItemBO() { }

  public ItemBO(String pNumber,
                String pDescription,
                int pQuantity,
                double pPrice)
  {
    this.number = pNumber;
    this.description = pDescription;
    this.quantity = pQuantity;
    this.price = pPrice;
  }

  // getters
  public String getItemNumber()   { return this.number; }
  public String getDescription()  { return this.description; }
  public int getQuantity()        { return this.quantity; }
  public double getPrice()        { return this.price; }

  // setters
  public void setItemNumber(String pNumber)       { this.number = pNumber; }
  public void setDescription(String pDescription) { this.description = pDescription; }
  public void setQuantity(String pQuantity)       { this.quantity = Integer.parseInt(pQuantity); }
  public void setPrice(String pPrice)             { this.price = Double.parseDouble(pPrice); }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -