/* John Bonifas and Emeric Palm ACO 210 Spring 2013 Project 3 */ package project3; /** This is a class factory for objects that hold data from the readInput method. @author Slowly */ public class outputPackage { //INSTANCE FIELDS // ============== /** Flag indicating the success/failure of the data read */ private int intSuccess; /** The array holding the data */ private String[] strData; //CONSTRUCTOR //=========== /** Constructs an outputPackage object. Initially, the success/failure flag is set to TRUE (successful). */ public outputPackage() { intSuccess = 1; } // Accessors // ========= /** Allows callers to get data read success/failure. @return the value */ public int getSuccess() { return intSuccess; } /** Allows callers to get the data read in, if any. @return the data itself */ public String[] getData() { return strData; } //Mutators //======== /** Sets the success/failure of the data read. @param inSuccess Can be 1 for Success, 0 for moderate failure, -1 for severe failure, maybe other custom codes as required */ public void setSuccess(int inSuccess) { intSuccess = inSuccess; } /** Loads the data into the output package. @param inData read in */ public void setData(String[] inData) { strData = inData; } }