View Javadoc

1   /*
2    WSMO Studio - a Semantic Web Service Editor
3    Copyright (c) 2004-2007, Ontotext Lab. / SIRMA Group
4    
5    This library is free software; you can redistribute it and/or modify it under
6    the terms of the GNU Lesser General Public License as published by the Free
7    Software Foundation; either version 2.1 of the License, or (at your option)
8    any later version.
9    This library is distributed in the hope that it will be useful, but WITHOUT
10   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   details.
13   You should have received a copy of the GNU Lesser General Public License along
14   with this library; if not, write to the Free Software Foundation, Inc.,
15   59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16   */
17  
18  /***
19   * <p>Title: WSMO Studio</p>
20   * <p>Description: Semantic Web Service Editor</p>
21   * <p>Copyright:  Copyright (c) 2004-2007</p>
22   * <p>Company: Ontotext Lab. / SIRMA </p>
23   */
24  
25  package org.semanticgov.ui.editor;
26  
27  import org.wsmo.service.WebService;
28  import org.wsmostudio.ui.editors.model.ModelFactory;
29  import org.wsmostudio.ui.editors.model.ObservableModel;
30  
31  public class PAServiceModelFactory implements ModelFactory {
32  
33      public ObservableModel createModel(Object wsmoObject, ObservableModel masterModel) {
34          if (wsmoObject instanceof WebService) {
35              return new PAServiceModel((WebService)wsmoObject);
36          }
37          return null;
38      }
39  
40  }
41  
42  /*
43   * $Log: PAServiceModelFactory.java,v $
44   * Revision 1.1  2007/01/12 16:30:28  alex_simov
45   * PA Service editor initial version
46   *
47   */