001: // .//GEN-BEGIN:_1_be
002: package org.jaffa.applications.test.modules.material.components.itemfinder.dto;
003:
004: import org.jaffa.util.StringHelper;
005: import org.jaffa.datatypes.Formatter;
006:
007: // .//GEN-END:_1_be
008: // Add additional imports//GEN-FIRST:_imports
009:
010: // .//GEN-LAST:_imports
011: // .//GEN-BEGIN:_2_be
012: /** The output for the ItemFinder contains an array of instances of this class.
013: */
014: public class ItemFinderOutRowDto {
015:
016: /** Holds value of property segregationCode. */
017: private String segregationCode;
018:
019: /** Holds value of property itemId. */
020: private String itemId;
021:
022: /** Holds value of property partNo. */
023: private String partNo;
024:
025: /** Holds value of property serial. */
026: private String serial;
027:
028: /** Holds value of property qty. */
029: private Double qty;
030:
031: /** Getter for property segregationCode.
032: * @return Value of property segregationCode.
033: */
034: public String getSegregationCode() {
035: return segregationCode;
036: }
037:
038: /** Setter for property segregationCode.
039: * @param segregationCode New value of property segregationCode.
040: */
041: public void setSegregationCode(String segregationCode) {
042: if (segregationCode == null || segregationCode.length() == 0)
043: this .segregationCode = null;
044: else
045: this .segregationCode = segregationCode;
046: }
047:
048: /** Getter for property itemId.
049: * @return Value of property itemId.
050: */
051: public String getItemId() {
052: return itemId;
053: }
054:
055: /** Setter for property itemId.
056: * @param itemId New value of property itemId.
057: */
058: public void setItemId(String itemId) {
059: if (itemId == null || itemId.length() == 0)
060: this .itemId = null;
061: else
062: this .itemId = itemId;
063: }
064:
065: /** Getter for property partNo.
066: * @return Value of property partNo.
067: */
068: public String getPartNo() {
069: return partNo;
070: }
071:
072: /** Setter for property partNo.
073: * @param partNo New value of property partNo.
074: */
075: public void setPartNo(String partNo) {
076: if (partNo == null || partNo.length() == 0)
077: this .partNo = null;
078: else
079: this .partNo = partNo;
080: }
081:
082: /** Getter for property serial.
083: * @return Value of property serial.
084: */
085: public String getSerial() {
086: return serial;
087: }
088:
089: /** Setter for property serial.
090: * @param serial New value of property serial.
091: */
092: public void setSerial(String serial) {
093: if (serial == null || serial.length() == 0)
094: this .serial = null;
095: else
096: this .serial = serial;
097: }
098:
099: /** Getter for property qty.
100: * @return Value of property qty.
101: */
102: public Double getQty() {
103: return qty;
104: }
105:
106: /** Setter for property qty.
107: * @param qty New value of property qty.
108: */
109: public void setQty(Double qty) {
110: this .qty = qty;
111: }
112:
113: /** Returns the debug information
114: * @return The debug information
115: */
116: public String toString() {
117: StringBuffer buf = new StringBuffer();
118: buf.append("<ItemFinderOutRowDto>");
119: buf.append("<segregationCode>");
120: if (segregationCode != null)
121: buf.append(StringHelper.convertToHTML(Formatter
122: .format(segregationCode)));
123: buf.append("</segregationCode>");
124: buf.append("<itemId>");
125: if (itemId != null)
126: buf.append(StringHelper.convertToHTML(Formatter
127: .format(itemId)));
128: buf.append("</itemId>");
129: buf.append("<partNo>");
130: if (partNo != null)
131: buf.append(StringHelper.convertToHTML(Formatter
132: .format(partNo)));
133: buf.append("</partNo>");
134: buf.append("<serial>");
135: if (serial != null)
136: buf.append(StringHelper.convertToHTML(Formatter
137: .format(serial)));
138: buf.append("</serial>");
139: buf.append("<qty>");
140: if (qty != null)
141: buf.append(StringHelper
142: .convertToHTML(Formatter.format(qty)));
143: buf.append("</qty>");
144: buf.append("</ItemFinderOutRowDto>");
145: return buf.toString();
146: }
147:
148: // .//GEN-END:_2_be
149: // All the custom code goes here //GEN-FIRST:_custom
150:
151: // .//GEN-LAST:_custom
152: }
|