Revision: 17493
          http://sourceforge.net/p/gate/code/17493
Author:   markagreenwood
Date:     2014-03-01 09:49:01 +0000 (Sat, 01 Mar 2014)
Log Message:
-----------
added generics info to the interfaces before I cleanup the plugin to support 
equals etc.

Modified Paths:
--------------
    gate/trunk/src/main/gate/wordnet/Synset.java
    gate/trunk/src/main/gate/wordnet/Verb.java
    gate/trunk/src/main/gate/wordnet/Word.java
    gate/trunk/src/main/gate/wordnet/WordNet.java
    gate/trunk/src/main/gate/wordnet/WordNetException.java
    gate/trunk/src/main/gate/wordnet/WordSense.java

Modified: gate/trunk/src/main/gate/wordnet/Synset.java
===================================================================
--- gate/trunk/src/main/gate/wordnet/Synset.java        2014-03-01 02:19:28 UTC 
(rev 17492)
+++ gate/trunk/src/main/gate/wordnet/Synset.java        2014-03-01 09:49:01 UTC 
(rev 17493)
@@ -36,16 +36,16 @@
   public long getOffset();
 
   /** WordSenses contained in this synset */
-  public List getWordSenses();
+  public List<WordSense> getWordSenses();
 
   /** get specific WordSense according to its order in the synset - most 
important senses come first  */
   public WordSense getWordSense(int offset);
 
   /** get the SemanticRelation-s of this synset */
-  public List getSemanticRelations() throws WordNetException;
+  public List<SemanticRelation> getSemanticRelations() throws WordNetException;
 
   /** get the SemanticRelation-s of specific type (HYPERNYm) for this synset */
-  public List getSemanticRelations(int type) throws WordNetException;
+  public List<SemanticRelation> getSemanticRelations(int type) throws 
WordNetException;
 
 }
 

Modified: gate/trunk/src/main/gate/wordnet/Verb.java
===================================================================
--- gate/trunk/src/main/gate/wordnet/Verb.java  2014-03-01 02:19:28 UTC (rev 
17492)
+++ gate/trunk/src/main/gate/wordnet/Verb.java  2014-03-01 09:49:01 UTC (rev 
17493)
@@ -24,7 +24,7 @@
 public interface Verb extends WordSense {
 
   /** returns the verb frames associated with this synset */
-  public List getVerbFrames();
+  public List<VerbFrame> getVerbFrames();
 
 }
 

Modified: gate/trunk/src/main/gate/wordnet/Word.java
===================================================================
--- gate/trunk/src/main/gate/wordnet/Word.java  2014-03-01 02:19:28 UTC (rev 
17492)
+++ gate/trunk/src/main/gate/wordnet/Word.java  2014-03-01 09:49:01 UTC (rev 
17493)
@@ -24,7 +24,7 @@
 public interface Word {
 
   /** returns the senses of this word */
-  public List getWordSenses() throws WordNetException;
+  public List<WordSense> getWordSenses() throws WordNetException;
 
   /** returns the lemma of this word */
   public String getLemma();

Modified: gate/trunk/src/main/gate/wordnet/WordNet.java
===================================================================
--- gate/trunk/src/main/gate/wordnet/WordNet.java       2014-03-01 02:19:28 UTC 
(rev 17492)
+++ gate/trunk/src/main/gate/wordnet/WordNet.java       2014-03-01 09:49:01 UTC 
(rev 17493)
@@ -38,20 +38,19 @@
 /*  public Iterator getSynsets(); */
 
   /** returns all synsets for specific POS */
-  public Iterator getSynsets(int pos)
+  public Iterator<Synset> getSynsets(int pos)
     throws WordNetException;
 
   /** returns all unique beginners */
-  public Iterator getUniqueBeginners();
+  public Iterator<Synset> getUniqueBeginners();
 
   /** returns list of WordSense-s for specific lemma */
-  public List lookupWord(String lemma) throws WordNetException;
+  public List<Word> lookupWord(String lemma) throws WordNetException;
 
   /** returns list of WordSense-s for specific lemma of the specified POS */
-  public List lookupWord(String lemma, int pos) throws WordNetException;
+  public List<Word> lookupWord(String lemma, int pos) throws WordNetException;
 
   public void setPropertyUrl(URL _propertiesUrl);
   public URL getPropertyUrl();
-
 }
 

Modified: gate/trunk/src/main/gate/wordnet/WordNetException.java
===================================================================
--- gate/trunk/src/main/gate/wordnet/WordNetException.java      2014-03-01 
02:19:28 UTC (rev 17492)
+++ gate/trunk/src/main/gate/wordnet/WordNetException.java      2014-03-01 
09:49:01 UTC (rev 17493)
@@ -1,3 +1,14 @@
+/*
+ *  WordNetException.java
+ *
+ *  Copyright (c) 1995-2014, The University of Sheffield. See the file
+ *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
+ *
+ *  This file is part of GATE (see http://gate.ac.uk/), and is free
+ *  software, licenced under the GNU Library General Public License,
+ *  Version 2, June 1991 (in the distribution as file licence.html,
+ *  and also available at http://gate.ac.uk/gate/licence.html).
+ */
 package gate.wordnet;
 
 import gate.util.GateException;
@@ -2,11 +13,6 @@
 
-/**
- * Title:        Gate2
- * Description:
- * Copyright:    Copyright (c) 2000
- * Company:      University Of Sheffield
- */
-
 public class WordNetException extends GateException {
 
+  private static final long serialVersionUID = -9114971170009789898L;
+
   public WordNetException() {
@@ -22,5 +28,9 @@
   public WordNetException(Throwable e) {
     super(e);
   }
+  
+  public WordNetException(String s, Throwable e) {
+    super(s,e);
+  }
 
 }

Modified: gate/trunk/src/main/gate/wordnet/WordSense.java
===================================================================
--- gate/trunk/src/main/gate/wordnet/WordSense.java     2014-03-01 02:19:28 UTC 
(rev 17492)
+++ gate/trunk/src/main/gate/wordnet/WordSense.java     2014-03-01 09:49:01 UTC 
(rev 17493)
@@ -42,10 +42,10 @@
   public boolean isSemcor();
 
   /** return the Lex relations this sense participates in */
-  public List getLexicalRelations() throws WordNetException ;
+  public List<LexicalRelation> getLexicalRelations() throws WordNetException ;
 
   /** return the Lex relations (of the specified type) this sense participates 
in */
-  public List getLexicalRelations(int type) throws WordNetException ;
+  public List <LexicalRelation> getLexicalRelations(int type) throws 
WordNetException ;
 
 }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to