Package FLOTF
Class PartInfo
- java.lang.Object
-
- FLOTF.PartInfo
-
public class PartInfo extends java.lang.ObjectThis class stores the user-entered and parsed/scraped information about the part- Author:
- Bernard Chan, Sonali Loomba
-
-
Field Summary
Fields Modifier and Type Field Description private static NSNcurrentNSNThe current nsn as aNSNobjectprivate static PartcurrentPartThe current part as aPartobjectprivate static java.lang.StringJCNUser-entered JCNprivate static java.lang.StringquantityUser-entered quantity
-
Constructor Summary
Constructors Constructor Description PartInfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddUserData(java.lang.String jcn, java.lang.String quantity)Stores the user-entered data inJCNandquantitystatic NSNgetCurrentNSN()Gets the current NSNstatic PartgetCurrentPart()Gets the current partstatic java.lang.StringgetJCN()Gets the user-entered JCNstatic java.lang.StringgetQuantity()Gets the user-entered quantitystatic voidremovePart()Clears the fields ofPartInfostatic voidsetCurrentNSN(NSN currentNSN)Sets the current NSNstatic voidsetCurrentPart(Part currentPart)Sets the current partstatic voidsetJCN(java.lang.String JCN)Sets the current JCNstatic voidsetQuantity(java.lang.String quantity)Sets the current quantity
-
-
-
Method Detail
-
addUserData
public static void addUserData(java.lang.String jcn, java.lang.String quantity)Stores the user-entered data inJCNandquantity- Parameters:
jcn- the jcnStringto be addedquantity- the quantityStringto be added
-
removePart
public static void removePart()
Clears the fields ofPartInfo
-
getCurrentNSN
public static NSN getCurrentNSN()
Gets the current NSN- Returns:
- an
NSNobject specifying the current NSN
-
getCurrentPart
public static Part getCurrentPart()
Gets the current part- Returns:
- a
Partobject specifying the current part
-
getJCN
public static java.lang.String getJCN()
Gets the user-entered JCN- Returns:
- a
Stringspecifying the user-entered JCN
-
getQuantity
public static java.lang.String getQuantity()
Gets the user-entered quantity- Returns:
- a
Stringspecifying the user-entered quantity
-
setCurrentPart
public static void setCurrentPart(Part currentPart)
Sets the current part- Parameters:
currentPart- the current part
-
setJCN
public static void setJCN(java.lang.String JCN)
Sets the current JCN- Parameters:
JCN- the current JCN
-
setQuantity
public static void setQuantity(java.lang.String quantity)
Sets the current quantity- Parameters:
quantity- the current quantity
-
setCurrentNSN
public static void setCurrentNSN(NSN currentNSN)
Sets the current NSN- Parameters:
currentNSN- the current NSN
-
-