src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/writer/WSDLResolver.java

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
equal deleted inserted replaced
366:8c0b6bccfe47 368:0989ad8c0860
1 /* 1 /*
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
23 * questions. 23 * questions.
24 */ 24 */
25 25
26 package com.sun.xml.internal.ws.wsdl.writer; 26 package com.sun.xml.internal.ws.wsdl.writer;
27 27
28 import com.sun.istack.internal.NotNull;
29 import com.sun.istack.internal.Nullable;
30 import javax.xml.transform.Result;
31 import javax.xml.ws.Holder;
32
33
34 /** 28 /**
35 * WSDLResolver is used by WSDLGenerator while generating WSDL and its associated 29 * @deprecated Use com.oracle.webservices.internal.api.databinding.WSDLResolver directly
36 * documents. It is used to control what documents need to be generated and what
37 * documents need to be picked from metadata. If endpont's document metadata
38 * already contains some documents, their systemids may be used for wsdl:import,
39 * and schema:import. The suggested filenames are relative urls(for e.g: EchoSchema1.xsd)
40 * The Result object systemids are also relative urls(for e.g: AbsWsdl.wsdl).
41 * 30 *
42 * @author Jitendra Kotamraju
43 */ 31 */
44 public interface WSDLResolver { 32 public interface WSDLResolver extends com.oracle.webservices.internal.api.databinding.WSDLResolver {
45 /**
46 * Create a Result object into which concrete WSDL is to be generated.
47 *
48 * @return Result for the concrete WSDL
49 */
50 public @NotNull Result getWSDL(@NotNull String suggestedFilename);
51
52 /**
53 * Create a Result object into which abstract WSDL is to be generated. If the the
54 * abstract WSDL is already in metadata, it is not generated.
55 *
56 * Update filename if the suggested filename need to be changed in wsdl:import.
57 * This needs to be done if the metadata contains abstract WSDL, and that systemid
58 * needs to be reflected in concrete WSDL's wsdl:import
59 *
60 * @return null if abstract WSDL need not be generated
61 */
62 public @Nullable Result getAbstractWSDL(@NotNull Holder<String> filename);
63
64 /**
65 * Create a Result object into which schema doc is to be generated. Typically if
66 * there is a schema doc for namespace in metadata, then it is not generated.
67 *
68 * Update filename if the suggested filename need to be changed in xsd:import. This
69 * needs to be done if the metadata contains the document, and that systemid
70 * needs to be reflected in some other document's xsd:import
71 *
72 * @return null if schema need not be generated
73 */
74 public @Nullable Result getSchemaOutput(@NotNull String namespace, @NotNull Holder<String> filename);
75 33
76 } 34 }

mercurial