1 /*
2 * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
3 * @LastModified: Nov 2017
4 */
5 /*
6 * Licensed to the Apache Software Foundation (ASF) under one or more
7 * contributor license agreements. See the NOTICE file distributed with
8 * this work for additional information regarding copyright ownership.
9 * The ASF licenses this file to You under the Apache License, Version 2.0
10 * (the "License"); you may not use this file except in compliance with
11 * the License. You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */
21
22 package com.sun.org.apache.xerces.internal.impl;
23 import com.sun.org.apache.xerces.internal.util.DefaultErrorHandler;
54 * <p>
55 * This component requires the following features and properties from the
56 * component manager that uses it:
57 * <ul>
58 * <li>http://apache.org/xml/properties/internal/error-handler</li>
59 * </ul>
60 * <p>
61 * This component can use the following features and properties but they
62 * are not required:
63 * <ul>
64 * <li>http://apache.org/xml/features/continue-after-fatal-error</li>
65 * </ul>
66 *
67 * @xerces.internal
68 *
69 * @see MessageFormatter
70 *
71 * @author Eric Ye, IBM
72 * @author Andy Clark, IBM
73 *
74 */
75 public class XMLErrorReporter
76 implements XMLComponent {
77
78 //
79 // Constants
80 //
81
82 // severity
83
84 /**
85 * Severity: warning. Warnings represent informational messages only
86 * that should not be considered serious enough to stop parsing or
87 * indicate an error in the document's validity.
88 */
89 public static final short SEVERITY_WARNING = 0;
90
91 /**
92 * Severity: error. Common causes of errors are document structure and/or
93 * content that that does not conform to the grammar rules specified for
|
1 /*
2 * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
3 */
4 /*
5 * Licensed to the Apache Software Foundation (ASF) under one or more
6 * contributor license agreements. See the NOTICE file distributed with
7 * this work for additional information regarding copyright ownership.
8 * The ASF licenses this file to You under the Apache License, Version 2.0
9 * (the "License"); you may not use this file except in compliance with
10 * the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
21 package com.sun.org.apache.xerces.internal.impl;
22 import com.sun.org.apache.xerces.internal.util.DefaultErrorHandler;
53 * <p>
54 * This component requires the following features and properties from the
55 * component manager that uses it:
56 * <ul>
57 * <li>http://apache.org/xml/properties/internal/error-handler</li>
58 * </ul>
59 * <p>
60 * This component can use the following features and properties but they
61 * are not required:
62 * <ul>
63 * <li>http://apache.org/xml/features/continue-after-fatal-error</li>
64 * </ul>
65 *
66 * @xerces.internal
67 *
68 * @see MessageFormatter
69 *
70 * @author Eric Ye, IBM
71 * @author Andy Clark, IBM
72 *
73 * @LastModified: Nov 2017
74 */
75 public class XMLErrorReporter
76 implements XMLComponent {
77
78 //
79 // Constants
80 //
81
82 // severity
83
84 /**
85 * Severity: warning. Warnings represent informational messages only
86 * that should not be considered serious enough to stop parsing or
87 * indicate an error in the document's validity.
88 */
89 public static final short SEVERITY_WARNING = 0;
90
91 /**
92 * Severity: error. Common causes of errors are document structure and/or
93 * content that that does not conform to the grammar rules specified for
|