MedRecWSResponse.java
01 package com.bea.medrec.webservices;
02 
03 /**
04  <p>MedRecWebServices provides an interface for all MedRec Web services.</p>
05  *
06  @author Copyright (c) 2006 by BEA Systems. All Rights Reserved.
07  */
08 public class MedRecWSResponse {
09 
10   private boolean success = true;
11   private int returnCode = 0;
12   private String exceptionClause = "";
13   private Object[] returnObj = null;
14 
15   public static final boolean SUCCESS = true;  
16   public static final boolean FAILURE = false;
17 
18   public void setExceptionClause(String pMsg) {
19     this.exceptionClause = pMsg;
20     success = false;
21   }
22 
23   public String getExceptionClause() {
24     return this.exceptionClause;
25   }
26 
27   public void setReturnCode(int pReturnCode) {
28     returnCode = pReturnCode;
29   }
30 
31   public int getReturnCode() {
32     return returnCode;
33   }
34 
35   public void setSuccess(boolean pSuccess) {
36     success = pSuccess;
37   }
38 
39   public boolean getSuccess() {
40     return success;
41   }
42 
43   public void setReturnObject(Object[] obj) {
44     this.returnObj = obj;
45   }
46 
47   public Object[] getReturnObject() {
48     return this.returnObj;
49   }
50 }