Class SynsetProxy

  • All Implemented Interfaces:
    java.io.Serializable, DictionaryElement

    public class SynsetProxy
    extends Synset
    Proxy for a Synset. This class wraps a Synset that may be null at the time of creation. When this Synset is initialized (set), all method calls are forwarded to it.
    See Also:
    Serialized Form
    • Constructor Detail

      • SynsetProxy

        public SynsetProxy​(POS pos)
        The only value that matters is pos, since the call to getPOS is not forwarded to _source
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object object)
        Description copied from class: Synset
        Two Synsets are equal if their POS's and offsets are equal
        Overrides:
        equals in class Synset
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Synset
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Synset
      • getGloss

        public java.lang.String getGloss()
        Overrides:
        getGloss in class Synset
      • getOffset

        public long getOffset()
        Overrides:
        getOffset in class Synset
      • getVerbFrames

        public java.lang.String[] getVerbFrames()
        Description copied from class: Synset
        Returns all Verb Frames that are valid for all the words in this synset
        Overrides:
        getVerbFrames in class Synset
      • containsWord

        public boolean containsWord​(java.lang.String lemma)
        Description copied from class: Synset
        Returns true if lemma is one of the words contained in this synset.
        Overrides:
        containsWord in class Synset
      • getLexFileName

        public java.lang.String getLexFileName()
        Description copied from class: Synset
        Gets the lex file name.
        Overrides:
        getLexFileName in class Synset
        Returns:
      • getLexFileNum

        public long getLexFileNum()
        Description copied from class: Synset
        Gets the lexicographer file name containing this synset.
        Overrides:
        getLexFileNum in class Synset
        Returns:
        two digit decimal integer
      • setLexFileNum

        public void setLexFileNum​(long lexFileId)
        Description copied from class: Synset
        Sets the lexicographer file name containing this synset.
        Overrides:
        setLexFileNum in class Synset
        Parameters:
        lexFileId - - the lexicographer file name id
      • getSource

        protected Synset getSource()
      • setSource

        public void setSource​(Synset source)