Package FLOTF

Class 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 NSN
      private javafx.beans.property.SimpleStringProperty description
      Stores description of a particular NSN
      private 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 object
      java.lang.String getDescription()
      Gets the description of particular NSN object
      java.lang.String getNsn()
      Gets the National Stock Number
      void setCage​(java.lang.String cage)
      Sets the NSN cage(s)
      void setDescription​(java.lang.String description)
      Sets the NSN description
      void setNSN​(java.lang.String nsn)
      Sets the National Stock Number
      java.lang.String toString()
      Prints specified object's stock number
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • nsn

        private javafx.beans.property.SimpleStringProperty nsn
        Stores stock number
      • description

        private javafx.beans.property.SimpleStringProperty description
        Stores description of a particular NSN
      • cage

        private javafx.beans.property.SimpleStringProperty cage
        Stores cages of a particular NSN
    • Constructor Detail

      • NSN

        public NSN​(java.lang.String nsn,
                   java.lang.String description,
                   java.lang.String cage)
        NSN constructor
        Parameters:
        nsn - the stock number
        description - description of particular NSN object
        cage - cage(s) of particular NSN object
    • 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 class java.lang.Object
        Returns:
        a String specifying the stock number