Package FLOTF
Class PartInfo
- java.lang.Object
-
- FLOTF.PartInfo
-
public class PartInfo extends java.lang.Object
This 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 NSN
currentNSN
The current nsn as aNSN
objectprivate static Part
currentPart
The current part as aPart
objectprivate static java.lang.String
JCN
User-entered JCNprivate static java.lang.String
quantity
User-entered quantity
-
Constructor Summary
Constructors Constructor Description PartInfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addUserData(java.lang.String jcn, java.lang.String quantity)
Stores the user-entered data inJCN
andquantity
static NSN
getCurrentNSN()
Gets the current NSNstatic Part
getCurrentPart()
Gets the current partstatic java.lang.String
getJCN()
Gets the user-entered JCNstatic java.lang.String
getQuantity()
Gets the user-entered quantitystatic void
removePart()
Clears the fields ofPartInfo
static void
setCurrentNSN(NSN currentNSN)
Sets the current NSNstatic void
setCurrentPart(Part currentPart)
Sets the current partstatic void
setJCN(java.lang.String JCN)
Sets the current JCNstatic void
setQuantity(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 inJCN
andquantity
- Parameters:
jcn
- the jcnString
to be addedquantity
- the quantityString
to be added
-
removePart
public static void removePart()
Clears the fields ofPartInfo
-
getCurrentNSN
public static NSN getCurrentNSN()
Gets the current NSN- Returns:
- an
NSN
object specifying the current NSN
-
getCurrentPart
public static Part getCurrentPart()
Gets the current part- Returns:
- a
Part
object specifying the current part
-
getJCN
public static java.lang.String getJCN()
Gets the user-entered JCN- Returns:
- a
String
specifying the user-entered JCN
-
getQuantity
public static java.lang.String getQuantity()
Gets the user-entered quantity- Returns:
- a
String
specifying 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
-
-