01: /*
02: * The contents of this file are subject to the terms of the Common Development
03: * and Distribution License (the License). You may not use this file except in
04: * compliance with the License.
05: *
06: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
07: * or http://www.netbeans.org/cddl.txt.
08: *
09: * 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: * Portions Copyrighted 2007 Sun Microsystems, Inc.
16: */
17: package org.netbeans.modules.xslt.tmap.model.spi;
18:
19: import java.util.Collection;
20: import org.netbeans.modules.xml.wsdl.model.WSDLModel;
21: import org.netbeans.modules.xslt.tmap.model.api.TMapModel;
22:
23: /**
24: * This interface will be implemented by services that search
25: * avaliable models.
26: *
27: * This is designed as service for possibility to use ant commandline tasks.
28: * One can implement this interface and this implementation
29: * will search models in location that needs for ant tasks.
30: *
31: * @author Vitaly Bychkov
32: */
33: public interface ExternalModelRetriever {
34:
35: /**
36: * Accessor to list of availible WSDL models.
37: * @param model TMap model for which WSDL models will be searched.
38: * @param namespace Namespace of searched WSDL model.
39: * @return Collection of found WSDL models.
40: */
41: Collection<WSDLModel> getWSDLModels(TMapModel model,
42: String namespace);
43: }
|