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 package com.ontotext.wsmo4j.common;
20
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
32 import java.io.Serializable;
33
34 import org.omwg.logicalexpression.terms.Visitor;
35 import org.wsmo.common.UnnumberedAnonymousID;
36
37
38 /**
39 * An interface representing an anonymous unnumbered identifier
40 *
41 * @author not attributable
42 * @version $Revision: 988 $ $Date: 2005-09-16 17:04:15 +0300 (Fri, 16 Sep 2005) $
43 * @since 0.4.0
44 */
45 public class UnnumberedAnonymousIDImpl
46 implements Serializable, UnnumberedAnonymousID {
47
48 public UnnumberedAnonymousIDImpl() {
49 }
50
51 public String toString() {
52 return "_#";
53 }
54
55 /**
56 * @see org.omwg.logicalexpression.terms.Term#accept(org.omwg.logicalexpression.terms.Visitor)
57 */
58 public void accept(Visitor v) {
59 v.visitUnnumberedID(this);
60 }
61 }
62
63 /*
64 * $Log$
65 * Revision 1.4 2005/09/16 14:02:44 alex_simov
66 * Identifier.asString() removed, use Object.toString() instead
67 * (Implementations MUST override toString())
68 *
69 * Revision 1.3 2005/09/07 07:19:33 holgerlausen
70 * equals and hascode have been violating java invariants >> removed.
71 *
72 * Revision 1.2 2005/09/02 13:32:44 ohamano
73 * move logicalexpression packages from ext to core
74 * move tests from logicalexpression.test to test module
75 *
76 * Revision 1.1 2005/09/02 09:43:32 ohamano
77 * integrate wsmo-api and le-api on api and reference implementation level; full parser, serializer and validator integration will be next step
78 *
79 * Revision 1.2 2005/06/22 14:20:15 alex_simov
80 * Copyright header added/updated
81 *
82 * Revision 1.1 2005/06/01 12:00:32 marin_dimitrov
83 * v0.4.0
84 *
85 * Revision 1.4 2005/05/30 15:06:37 alex
86 * toString() delegates to asString()
87 *
88 * Revision 1.3 2005/05/19 13:48:03 marin
89 * fixed (_# prefix)
90 *
91 * Revision 1.2 2005/05/19 12:50:21 marin
92 * -
93 *
94 * Revision 1.1 2005/05/19 12:42:56 marin
95 * created
96 *
97 */