KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > xml > wsdl > ui > spi > ExtensibilityElementTemplateProvider


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

19
20 package org.netbeans.modules.xml.wsdl.ui.spi;
21
22 import java.io.InputStream JavaDoc;
23 import java.util.ArrayList JavaDoc;
24 import java.util.Collections JavaDoc;
25 import java.util.List JavaDoc;
26 import org.netbeans.modules.xml.wsdl.model.Binding;
27 import org.netbeans.modules.xml.wsdl.model.Port;
28 import org.netbeans.modules.xml.wsdl.model.PortType;
29 import org.netbeans.modules.xml.wsdl.model.WSDLModel;
30
31 public abstract class ExtensibilityElementTemplateProvider {
32
33     public abstract InputStream JavaDoc getTemplateInputStream();
34     
35     public abstract String JavaDoc getLocalizedMessage(String JavaDoc str, Object JavaDoc[] objects);
36     
37    
38     /**
39      * Do any post processing on Binding and its child elements based on
40      * the information available in corresponding PortType. This will be called
41      * when binding is about to be added to definition. Note this binding is not yet added to definition.
42      * @param wsdlTargetNamespace targetNamespace of wsdl where this binding will be added.
43      * @param binding Binding for portType
44      */

45     public void postProcess(String JavaDoc wsdlTargetNamespace, Binding binding) {
46         
47     }
48     
49     /**
50      * Do any post processing on Service Port and its child elements based on
51      * the information available in corresponding Binding. This will be called
52      * when binding is about to be added to definition. Note this port is not yet added to Service.
53      * @param wsdlTargetNamespace targetNamespace of wsdl where this binding will be added.
54      * @param port port
55      */

56     public void postProcess(String JavaDoc wsdlTargetNamespace, Port port) {
57         
58     }
59     
60     
61     /**
62      * validate Binding and its child elements based on
63      * the information available in corresponding PortType. This will be called
64      * when binding user goes from portType configuration wizard to binding
65      * configuration or when user changes subtype of binding in binding configuration.
66      * Note this binding is not yet added to definition.
67      * @param binding Binding for portType
68      */

69     public List JavaDoc<ValidationInfo> validate(Binding binding) {
70         return Collections.EMPTY_LIST;
71     }
72     
73     
74     /**
75      * validate Binding and its child elements based on
76      * the information available in corresponding PortType. This will be called
77      * when binding user goes from portType configuration wizard to binding
78      * configuration or when user changes subtype of binding in binding configuration.
79      * Note this port is not yet added to Service.
80      * @param port Port for a binding
81      */

82     public List JavaDoc<ValidationInfo> validate(Port port) {
83         return Collections.EMPTY_LIST;
84     }
85     
86     
87     
88 }
89
Popular Tags