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.engine.xslt.util;
030:
031: /**
032: * DOCUMENT ME!
033: *
034: * @author Sun Microsystems, Inc.
035: */
036: public class UtilBase {
037: /**
038: *
039: */
040: private Exception mException;
041:
042: /**
043: *
044: */
045: private String mError = "";
046:
047: /**
048: *
049: */
050: private String mWarning = "";
051:
052: /**
053: *
054: */
055: private boolean mValid = true;
056:
057: /**
058: * Creates a new UtilBase object.
059: */
060: public UtilBase() {
061: ;
062: }
063:
064: /**
065: * DOCUMENT ME!
066: *
067: * @return NOT YET DOCUMENTED
068: */
069: public String getError() {
070: return mError;
071: }
072:
073: /**
074: * DOCUMENT ME!
075: *
076: * @return NOT YET DOCUMENTED
077: */
078: public Exception getException() {
079: return mException;
080: }
081:
082: /**
083: * DOCUMENT ME!
084: *
085: * @return NOT YET DOCUMENTED
086: */
087: public boolean isValid() {
088: return mValid;
089: }
090:
091: /**
092: * DOCUMENT ME!
093: *
094: * @return NOT YET DOCUMENTED
095: */
096: public String getWarning() {
097: return mWarning;
098: }
099:
100: /**
101: * DOCUMENT ME!
102: *
103: * @param error NOT YET DOCUMENTED
104: */
105: protected void setError(String error) {
106: mError = error;
107: }
108:
109: /**
110: * DOCUMENT ME!
111: *
112: * @param e NOT YET DOCUMENTED
113: */
114: protected void setException(Exception e) {
115: mException = e;
116: }
117:
118: /**
119: * DOCUMENT ME!
120: *
121: * @param valid NOT YET DOCUMENTED
122: */
123: protected void setValid(boolean valid) {
124: mValid = valid;
125: }
126:
127: /**
128: * DOCUMENT ME!
129: *
130: * @param warn NOT YET DOCUMENTED
131: */
132: protected void setWarning(String warn) {
133: mWarning = warn;
134: }
135: }
|