Class POSDictionary

    • Constructor Detail

      • POSDictionary

        public POSDictionary()
        Initializes an empty case sensitive POSDictionary.
      • POSDictionary

        public POSDictionary​(boolean caseSensitive)
        Initializes an empty POSDictionary.
        Parameters:
        caseSensitive - the POSDictionary case sensitivity
    • Method Detail

      • getTags

        public String[] getTags​(String word)
        Returns a list of valid tags for the specified word.
        Specified by:
        getTags in interface TagDictionary
        Parameters:
        word - The word.
        Returns:
        A list of valid tags for the specified word or null if no information is available for that word.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • put

        public String[] put​(String word,
                            String... tags)
        Description copied from interface: MutableTagDictionary
        Associates the specified tags with the specified word. If the dictionary previously contained keys for the word, the old tags are replaced by the specified tags.
        Specified by:
        put in interface MutableTagDictionary
        Parameters:
        word - word with which the specified tags is to be associated
        tags - tags to be associated with the specified word
        Returns:
        the previous tags associated with the word, or null if there was no mapping for word.
      • isCaseSensitive

        public boolean isCaseSensitive()
        Description copied from interface: MutableTagDictionary
        Whether if the dictionary is case sensitive or not
        Specified by:
        isCaseSensitive in interface MutableTagDictionary
        Returns:
        true if the dictionary is case sensitive
      • getArtifactSerializerClass

        public Class<?> getArtifactSerializerClass()
        Description copied from interface: SerializableArtifact
        Retrieves the class which can serialize and recreate this artifact.
        Note: The serializer class must have a public zero argument constructor or an exception is thrown during model serialization/loading.
        Specified by:
        getArtifactSerializerClass in interface SerializableArtifact
        Returns:
        the corresponding ArtifactSerializer class.