KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > impl > ValidationEventImpl


1 /*
2  * Copyright 2003, 2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15
16  */

17 package org.apache.ws.jaxme.impl;
18
19 import javax.xml.bind.ValidationEventLocator;
20
21 /** JaxMe's extension of the
22  * {@link javax.xml.bind.helpers.ValidationEventImpl} class,
23  * adding the {@link #getErrorCode()}.
24  */

25 public class ValidationEventImpl extends javax.xml.bind.helpers.ValidationEventImpl {
26     private String JavaDoc errorCode;
27
28     /** Creates a new instance with the given severity, message,
29      * and locator.
30      */

31     public ValidationEventImpl(int pSeverity, String JavaDoc pMessage,
32                                ValidationEventLocator pLocator) {
33         super(pSeverity, pMessage, pLocator);
34     }
35     /** Creates a new instance with the given severity, message,
36      * locator, and throwable.
37      */

38     public ValidationEventImpl(int pSeverity, String JavaDoc pMessage,
39                                ValidationEventLocator pLocator,
40                                Throwable JavaDoc pLinkedException) {
41         super(pSeverity, pMessage, pLocator, pLinkedException);
42     }
43
44     /** Sets the error code.
45      */

46     public void setErrorCode(String JavaDoc pErrorCode) {
47         errorCode = pErrorCode;
48     }
49     /** Returns the error code.
50      */

51     public String JavaDoc getErrorCode() {
52         return errorCode;
53     }
54 }
55
Popular Tags