net.java.sen.dictionary
クラス Morpheme

java.lang.Object
  上位を拡張 net.java.sen.dictionary.Morpheme

public class Morpheme
extends java.lang.Object

A class representing part-of-speech data for a morpheme. When created during the analysis of a string, a Morpheme is built as a lazy proxy onto the Dictionary's part-of-speech file. Once created, a Morpheme can be altered without changing the underlying data (if any)

Thread Safety: Objects of this class are NOT thread safe and should not be accessed simultaneously by multiple threads.

CAUTION: Morphemes are implemented as lazy proxies onto a Dictionary, and care should be taken not to access the same Dictionary from multiple threads. Once any member of a Morpheme has been read, its link to the Dictionary is broken and this restriction is relaxed


コンストラクタの概要
Morpheme()
          Creates a blank, modifiable Morpheme that does not link to any Dictionary
Morpheme(Dictionary dictionary, int partOfSpeechIndex)
          Builds a lazy proxy onto a part-of-speech stored in a Dictionary
Morpheme(java.lang.String partOfSpeech, java.lang.String conjugationalType, java.lang.String conjugationalForm, java.lang.String basicForm, java.lang.String[] readings, java.lang.String[] pronunciations, java.lang.String additionalInformation)
          Creates a literal Morpheme that does not link to any Dictionary
 
メソッドの概要
 boolean equals(java.lang.Object object)
           
 java.lang.String getAdditionalInformation()
          Gets the additional information string
 java.lang.String getBasicForm()
          Gets the unconjugated form of the morpheme
 java.lang.String getConjugationalForm()
          Gets the conjugation form of the morpheme
 java.lang.String getConjugationalType()
          Gets the conjugation type of the morpheme
 java.lang.String getPartOfSpeech()
          Gets the part-of-speech in Chasen format
 java.util.List<java.lang.String> getPronunciations()
          Gets the pronunciations of the morpheme
 java.util.List<java.lang.String> getReadings()
          Gets the readings of the morpheme
 void setAdditionalInformation(java.lang.String additionalInformation)
          Sets an arbitrary string of additional information
 void setBasicForm(java.lang.String basicString)
          Sets the unconjugated form of the morpheme
 void setConjugationalForm(java.lang.String conjugationalForm)
          Sets the conjugation form of the morpheme
 void setConjugationalType(java.lang.String conjugationalType)
          Sets the conjugation type of the morpheme
 void setPartOfSpeech(java.lang.String partOfSpeech)
          Sets the part-of-speech
 void setPronunciations(java.util.List<java.lang.String> pronunciations)
          Sets the pronunciation of the morpheme
 void setReadings(java.util.List<java.lang.String> readings)
          Sets the readings of the morpheme
 java.lang.String toString()
           
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

Morpheme

public Morpheme(Dictionary dictionary,
                int partOfSpeechIndex)
Builds a lazy proxy onto a part-of-speech stored in a Dictionary

パラメータ:
dictionary - The dicationary to proxy upon
partOfSpeechIndex - The index into the part-of-speech file

Morpheme

public Morpheme(java.lang.String partOfSpeech,
                java.lang.String conjugationalType,
                java.lang.String conjugationalForm,
                java.lang.String basicForm,
                java.lang.String[] readings,
                java.lang.String[] pronunciations,
                java.lang.String additionalInformation)
Creates a literal Morpheme that does not link to any Dictionary

パラメータ:
partOfSpeech - The Chasen-format part-of-speech
conjugationalType - The conjugational type
conjugationalForm - The conjugational form
basicForm - The unconjugated form
readings - The readings
pronunciations - The pronunciations
additionalInformation - Arbitrary additional information

Morpheme

public Morpheme()
Creates a blank, modifiable Morpheme that does not link to any Dictionary

メソッドの詳細

getConjugationalType

public java.lang.String getConjugationalType()
Gets the conjugation type of the morpheme

戻り値:
The conjugation type

setConjugationalType

public void setConjugationalType(java.lang.String conjugationalType)
Sets the conjugation type of the morpheme

パラメータ:
conjugationalType - The conjugation type

getConjugationalForm

public java.lang.String getConjugationalForm()
Gets the conjugation form of the morpheme

戻り値:
The conjugation form

setConjugationalForm

public void setConjugationalForm(java.lang.String conjugationalForm)
Sets the conjugation form of the morpheme

パラメータ:
conjugationalForm - The conjugation form

getBasicForm

public java.lang.String getBasicForm()
Gets the unconjugated form of the morpheme

戻り値:
The unconjugated form

setBasicForm

public void setBasicForm(java.lang.String basicString)
Sets the unconjugated form of the morpheme

パラメータ:
basicString - The unconjugated form

getReadings

public java.util.List<java.lang.String> getReadings()
Gets the readings of the morpheme

戻り値:
The readings

setReadings

public void setReadings(java.util.List<java.lang.String> readings)
Sets the readings of the morpheme

パラメータ:
readings - The readings

getPronunciations

public java.util.List<java.lang.String> getPronunciations()
Gets the pronunciations of the morpheme

戻り値:
The pronunciations

setPronunciations

public void setPronunciations(java.util.List<java.lang.String> pronunciations)
Sets the pronunciation of the morpheme

パラメータ:
pronunciations - the pronunciations

getPartOfSpeech

public java.lang.String getPartOfSpeech()
Gets the part-of-speech in Chasen format

戻り値:
The part-of-speech in Chasen format

setPartOfSpeech

public void setPartOfSpeech(java.lang.String partOfSpeech)
Sets the part-of-speech

パラメータ:
partOfSpeech - The part-of-speech

getAdditionalInformation

public java.lang.String getAdditionalInformation()
Gets the additional information string

戻り値:
The additional information string

setAdditionalInformation

public void setAdditionalInformation(java.lang.String additionalInformation)
Sets an arbitrary string of additional information

パラメータ:
additionalInformation - The additional information to set

equals

public boolean equals(java.lang.Object object)
オーバーライド:
クラス java.lang.Object 内の equals

toString

public java.lang.String toString()
オーバーライド:
クラス java.lang.Object 内の toString


Copyright ? 2008. All Rights Reserved.