Package FLOTF
Class NSN
- java.lang.Object
-
- FLOTF.NSN
-
public class NSN extends java.lang.Object
This 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.SimpleStringProperty
cage
Stores cages of a particular NSNprivate javafx.beans.property.SimpleStringProperty
description
Stores description of a particular NSNprivate javafx.beans.property.SimpleStringProperty
nsn
Stores 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.String
getCage()
Gets the cage(s) of particular NSN objectjava.lang.String
getDescription()
Gets the description of particular NSN objectjava.lang.String
getNsn()
Gets the National Stock Numbervoid
setCage(java.lang.String cage)
Sets the NSN cage(s)void
setDescription(java.lang.String description)
Sets the NSN descriptionvoid
setNSN(java.lang.String nsn)
Sets the National Stock Numberjava.lang.String
toString()
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:
toString
in classjava.lang.Object
- Returns:
- a String specifying the stock number
-
-