001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)UtilBase.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: package com.sun.jbi.binding.shared.util;
030:
031: /**
032: * DOCUMENT ME!
033: *
034: * @author Sun Microsystems, Inc.
035: */
036: public class UtilBase {
037: /**
038: *
039: */
040:
041: /**
042: *
043: */
044: private Exception mException;
045:
046: /**
047: *
048: */
049:
050: /**
051: *
052: */
053: private String mError = "";
054:
055: /**
056: *
057: */
058:
059: /**
060: *
061: */
062: private String mWarning = "";
063:
064: /**
065: *
066: */
067:
068: /**
069: *
070: */
071: private boolean mValid = true;
072:
073: /**
074: * Creates a new UtilBase object.
075: */
076: public UtilBase() {
077: ;
078: }
079:
080: /**
081: * DOCUMENT ME!
082: *
083: * @return NOT YET DOCUMENTED
084: */
085: public String getError() {
086: return mError;
087: }
088:
089: /**
090: * DOCUMENT ME!
091: *
092: * @return NOT YET DOCUMENTED
093: */
094: public Exception getException() {
095: return mException;
096: }
097:
098: /**
099: * DOCUMENT ME!
100: *
101: * @return NOT YET DOCUMENTED
102: */
103: public boolean isValid() {
104: return mValid;
105: }
106:
107: /**
108: * DOCUMENT ME!
109: *
110: * @return NOT YET DOCUMENTED
111: */
112: public String getWarning() {
113: return mWarning;
114: }
115:
116: /**
117: * DOCUMENT ME!
118: *
119: * @param error NOT YET DOCUMENTED
120: */
121: protected void setError(String error) {
122: mError = error;
123: }
124:
125: /**
126: * DOCUMENT ME!
127: *
128: * @param e NOT YET DOCUMENTED
129: */
130: protected void setException(Exception e) {
131: mException = e;
132: }
133:
134: /**
135: * DOCUMENT ME!
136: *
137: * @param valid NOT YET DOCUMENTED
138: */
139: protected void setValid(boolean valid) {
140: mValid = valid;
141: }
142:
143: /**
144: * DOCUMENT ME!
145: *
146: * @param warn NOT YET DOCUMENTED
147: */
148: protected void setWarning(String warn) {
149: mWarning = warn;
150: }
151: }
|