Package start
Class Product
- java.lang.Object
-
- start.Product
-
- All Implemented Interfaces:
Item
- Direct Known Subclasses:
AudioPlayer,AudioSpeaker,MobileDevice,MoviePlayer,Screen,Widget
public abstract class Product extends java.lang.Object implements Item
Main Product Object of most of the products that are produced.- Author:
- Brandon Heck
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmployeegetEmployee()Accessor to get the Employee Object to the Item.intgetId()Accessor for the ID type.ItemTypegetItemType()Accessor to get the Item Type of the Item.java.lang.StringgetManufacturer()Accessor to get the Manufacturer Name of the Item.java.lang.StringgetName()Accessor to get the Name of the Item.java.lang.StringgetType()Get the Item Type Name, for the Product Table.voidsetEmployee(Employee employee)Mutator to set the Employee actor to the Item.voidsetItemType(ItemType itemType)Mutator to set the Item Type of the Item.voidsetManufacturer(java.lang.String manufacturer)Mutator to set the Manufacturer Name of the Item.voidsetName(java.lang.String name)Mutator to set the Name of the Item.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Product
public Product(java.lang.String name, java.lang.String manufacturer, ItemType type, int id, Employee employee)This is used as the Product Use for the overall product that would be Identified. Abstract Product Constructor for Item Interface.- Parameters:
name- Name of device.manufacturer- manufacturer of device.type- item type of device.id- Identification Number of the Item when in list of Products.employee- Employee Who Authorized the Product.
-
-
Method Detail
-
getType
public java.lang.String getType()
Get the Item Type Name, for the Product Table.- Returns:
- returns the Type-Name.
-
getItemType
public ItemType getItemType()
Description copied from interface:ItemAccessor to get the Item Type of the Item.- Specified by:
getItemTypein interfaceItem- Returns:
- The Item Type of the Item.
-
setItemType
public void setItemType(ItemType itemType)
Description copied from interface:ItemMutator to set the Item Type of the Item.- Specified by:
setItemTypein interfaceItem- Parameters:
itemType- Item Type object to declare the object as.
-
getId
public int getId()
Description copied from interface:ItemAccessor for the ID type.
-
setManufacturer
public void setManufacturer(java.lang.String manufacturer)
Description copied from interface:ItemMutator to set the Manufacturer Name of the Item.- Specified by:
setManufacturerin interfaceItem- Parameters:
manufacturer- String to set the Item Manufacture name to.
-
getManufacturer
public java.lang.String getManufacturer()
Description copied from interface:ItemAccessor to get the Manufacturer Name of the Item.- Specified by:
getManufacturerin interfaceItem- Returns:
- The Manufacturer Name of the Item.
-
setName
public void setName(java.lang.String name)
Description copied from interface:ItemMutator to set the Name of the Item.
-
getName
public java.lang.String getName()
Description copied from interface:ItemAccessor to get the Name of the Item.
-
getEmployee
public Employee getEmployee()
Description copied from interface:ItemAccessor to get the Employee Object to the Item.- Specified by:
getEmployeein interfaceItem- Returns:
- The Employee Object of the Item.
-
setEmployee
public void setEmployee(Employee employee)
Description copied from interface:ItemMutator to set the Employee actor to the Item.- Specified by:
setEmployeein interfaceItem- Parameters:
employee- The Employee object that authorized the Item.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-