it.polito.elite.doseWS.wrappers
Class SynsetWrapperImpl

java.lang.Object
  extended byit.polito.elite.doseWS.wrappers.SynsetWrapperImpl
All Implemented Interfaces:
SynsetWrapper

public class SynsetWrapperImpl
extends java.lang.Object
implements SynsetWrapper

Author:
bonino TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
SynsetWrapperImpl(java.lang.String fileURL)
           
 
Method Summary
 java.util.Set getLanguages()
           
 Synset getSynset(java.lang.String conceptURI, java.lang.String lang)
          Returns the language-dependant synset of a concept.
 boolean parseSynset()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynsetWrapperImpl

public SynsetWrapperImpl(java.lang.String fileURL)
                  throws java.lang.Exception
Method Detail

parseSynset

public boolean parseSynset()
                    throws java.lang.Exception
Specified by:
parseSynset in interface SynsetWrapper
Returns:
Throws:
java.lang.Exception

getSynset

public Synset getSynset(java.lang.String conceptURI,
                        java.lang.String lang)
Description copied from interface: SynsetWrapper
Returns the language-dependant synset of a concept.

Specified by:
getSynset in interface SynsetWrapper
Parameters:
conceptURI - the URI of the concept to which the required synset belongs
lang - the language of the required synset
Returns:

getLanguages

public java.util.Set getLanguages()
Specified by:
getLanguages in interface SynsetWrapper
Returns:
a Set of found languages