KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > xml > wsdl > validator > spi > ValidatorSchemaFactory


1
2 /*
3  * The contents of this file are subject to the terms of the Common Development
4  * and Distribution License (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
8  * or http://www.netbeans.org/cddl.txt.
9  *
10  * When distributing Covered Code, include this CDDL Header Notice in each file
11  * and include the License file at http://www.netbeans.org/cddl.txt.
12  * If applicable, add the following below the CDDL Header, with the fields
13  * enclosed by brackets [] replaced by your own identifying information:
14  * "Portions Copyrighted [year] [name of copyright owner]"
15  *
16  * The Original Software is NetBeans. The Initial Developer of the Original
17  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
18  * Microsystems, Inc. All Rights Reserved.
19  */

20
21 package org.netbeans.modules.xml.wsdl.validator.spi;
22
23 import java.io.InputStream JavaDoc;
24 import javax.xml.transform.Source JavaDoc;
25 import javax.xml.transform.stream.StreamSource JavaDoc;
26 import org.w3c.dom.ls.LSResourceResolver JavaDoc;
27
28
29 /**
30  * Factory for getting the schema inputstream.
31  * This will be plugged in into WSDLSchemaValidator to support
32  * extensibility element schema validation.
33  *
34  *
35  * @author Shivanand Kini
36  *
37  */

38 public abstract class ValidatorSchemaFactory {
39     /**
40      * Returns the targetnamespace of the schema
41      */

42     public abstract String JavaDoc getNamespaceURI();
43     
44   
45     /**
46      * Returns the Inputstream related to this schema
47      */

48     public abstract Source JavaDoc getSchemaSource();
49     
50     /**
51      * Returns the LSResourceResolver related to this schema
52      * for resolution of resources defined in schema like import location etc
53      */

54     public LSResourceResolver JavaDoc getLSResourceResolver() {
55         return null;
56     }
57     
58     
59             
60 }
61
Popular Tags