|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
OOMediatorImpl.java | 0% | 0% | 0% | 0% |
|
1 | /* | |
2 | wsmo4j - a WSMO API and Reference Implementation | |
3 | ||
4 | Copyright (c) 2004-2005, OntoText Lab. / SIRMA | |
5 | ||
6 | This library is free software; you can redistribute it and/or modify it under | |
7 | the terms of the GNU Lesser General Public License as published by the Free | |
8 | Software Foundation; either version 2.1 of the License, or (at your option) | |
9 | any later version. | |
10 | This library is distributed in the hope that it will be useful, but WITHOUT | |
11 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
12 | FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | |
13 | details. | |
14 | You should have received a copy of the GNU Lesser General Public License along | |
15 | with this library; if not, write to the Free Software Foundation, Inc., | |
16 | 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
17 | */ | |
18 | ||
19 | ||
20 | package com.ontotext.wsmo4j.mediator; | |
21 | ||
22 | /** | |
23 | * <p>Title: WSMO4J</p> | |
24 | * <p>Description: WSMO API and a Reference Implementation</p> | |
25 | * <p>Copyright: Copyright (c) 2004-2005</p> | |
26 | * <p>Company: OntoText Lab. / SIRMA </p> | |
27 | * @author not attributable | |
28 | * @version 1.0 | |
29 | * | |
30 | */ | |
31 | import org.wsmo.common.*; | |
32 | import org.wsmo.common.exception.*; | |
33 | import org.wsmo.mediator.*; | |
34 | ||
35 | public class OOMediatorImpl extends MediatorImpl | |
36 | implements OOMediator { | |
37 | ||
38 | 0 | public OOMediatorImpl(IRI mediatorIRI) { |
39 | 0 | super(mediatorIRI); |
40 | } | |
41 | ||
42 | 0 | public boolean equals(Object object) { |
43 | 0 | if (object == null |
44 | || false == object instanceof OOMediator) { | |
45 | 0 | return false; |
46 | } | |
47 | 0 | return super.equals(object); |
48 | } | |
49 | ||
50 | 0 | public void addSource(IRI iri) throws InvalidModelException { |
51 | 0 | if (iri == null) { |
52 | 0 | throw new IllegalArgumentException(); |
53 | } | |
54 | 0 | if (sources.contains(iri)){ |
55 | 0 | return; |
56 | } | |
57 | 0 | sources.add(iri); |
58 | } | |
59 | } | |
60 | ||
61 | /* | |
62 | * $Log$ | |
63 | * Revision 1.12 2006/03/29 08:51:04 vassil_momtchev | |
64 | * mediator reference source/target by IRI (changed from TopEntity); mediator reference mediationService by IRI (changed from Identifier) | |
65 | * | |
66 | * Revision 1.11 2006/02/13 10:41:04 vassil_momtchev | |
67 | * the constructors of the topentities to disallow Identifier; see WsmoFactoryImpl | |
68 | * | |
69 | * Revision 1.10 2005/11/29 15:53:29 holgerlausen | |
70 | * fixing unit test for checking multiple sources | |
71 | * | |
72 | * Revision 1.9 2005/06/01 12:07:31 marin_dimitrov | |
73 | * v0.4.0 | |
74 | * | |
75 | * Revision 1.1 2005/05/13 14:05:49 alex | |
76 | * initial commit | |
77 | * | |
78 | */ |
|