Package FLOTF
Class NSN
- java.lang.Object
-
- FLOTF.NSN
-
public class NSN extends java.lang.ObjectThis class creates an NSN object type that holds stock number, description, and cage- Author:
- Bernard Chan, Sonali Loomba
-
-
Field Summary
Fields Modifier and Type Field Description private javafx.beans.property.SimpleStringPropertycageStores cages of a particular NSNprivate javafx.beans.property.SimpleStringPropertydescriptionStores description of a particular NSNprivate javafx.beans.property.SimpleStringPropertynsnStores stock number
-
Constructor Summary
Constructors Constructor Description NSN(java.lang.String nsn, java.lang.String description, java.lang.String cage)NSN constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCage()Gets the cage(s) of particular NSN objectjava.lang.StringgetDescription()Gets the description of particular NSN objectjava.lang.StringgetNsn()Gets the National Stock NumbervoidsetCage(java.lang.String cage)Sets the NSN cage(s)voidsetDescription(java.lang.String description)Sets the NSN descriptionvoidsetNSN(java.lang.String nsn)Sets the National Stock Numberjava.lang.StringtoString()Prints specified object's stock number
-
-
-
Method Detail
-
getNsn
public java.lang.String getNsn()
Gets the National Stock Number- Returns:
- a String specifying the stock number
-
setNSN
public void setNSN(java.lang.String nsn)
Sets the National Stock Number- Parameters:
nsn- the NSN
-
getDescription
public java.lang.String getDescription()
Gets the description of particular NSN object- Returns:
- a String specifying the description
-
setDescription
public void setDescription(java.lang.String description)
Sets the NSN description- Parameters:
description- the NSN description
-
getCage
public java.lang.String getCage()
Gets the cage(s) of particular NSN object- Returns:
- a String specifying the cages
-
setCage
public void setCage(java.lang.String cage)
Sets the NSN cage(s)- Parameters:
cage- the cage number(s)
-
toString
public java.lang.String toString()
Prints specified object's stock number- Overrides:
toStringin classjava.lang.Object- Returns:
- a String specifying the stock number
-
-