KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xni > parser > PSVIParser


1 /*
2  * Copyright 2001, 2002,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 xni.parser;
18
19 import org.apache.xerces.parsers.AbstractSAXParser;
20
21 /**
22  * This parser class implements a SAX parser that includes DTDValidator, NamespaceBinder
23  * XMLSchemaValidator and PSVI writer in the pipeline. The parser generates output in
24  * psvi_output.xml file.
25  * <strong>Note:</strong> PSVI follow as a consequence of validation and/or assessment, thus
26  * the following features must be turned on:
27  * <ul>
28  * <li>http://xml.org/sax/features/namespaces</li>
29  * <li>http://xml.org/sax/features/validation</li>
30  * <li>http://apache.org/xml/features/validation/schema</li>
31  * </ul>
32  *
33  * @author Elena Litani,IBM
34  * @version $Id: PSVIParser.java,v 1.3 2004/02/24 23:41:06 mrglavas Exp $
35  */

36 public class PSVIParser
37     extends AbstractSAXParser {
38
39     //
40
// Constructors
41
//
42

43     /** Constructs a SAX like parser using the PSVI configuration. */
44     public PSVIParser() {
45         super(new PSVIConfiguration());
46     } // <init>()
47

48 } // class CSVParser
49
Popular Tags