net.ajaest.data.kanji
Class Kanji

java.lang.Object
  extended by net.ajaest.data.kanji.KanjiTag
      extended by net.ajaest.data.kanji.Kanji
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<KanjiTag>

public class Kanji
extends KanjiTag

Mutable class that stores some different informations about a kanji

Author:
Luis Alfonso Arce González
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Fields inherited from class net.ajaest.data.kanji.KanjiTag
classicRadical, dicReferences, frequency, grade, graph, jisCode, JLPTLevel, meanings, nelsonRadical, queryCodes, readings, strokeCount, strokeMiscounts, unicode, variants
 
Constructor Summary
Kanji(char[] c)
          Constructs a kanji extracting the code point of the stored char in the position 0 of the char array.
Kanji(java.lang.Character c)
          Constructs a kanji from a character representation of a kanji.
Kanji(int unicode)
          Constructs a kanji by his unicode value, that will be used as primary key.
Kanji(java.lang.Integer unicode)
          Constructs a kanji by his unicode value, that will be used as primary key.
 
Method Summary
 void setClassicRadical(java.lang.Integer classicRadical)
           
 void setDicReferences(java.util.Set<DicReferencePair> dicReferences)
           
 void setFrequency(java.lang.Integer frequency)
           
 void setGrade(java.lang.Integer grade)
           
 void setGraph(KanjiGraph graph)
           
 void setJisCode(JISPair jisCode)
           
 void setJLPTLevel(java.lang.Integer jLPTLevel)
           
 void setMeanings(java.util.Set<MeaningEntry> meanings)
           
 void setNelsonRadical(java.lang.Integer nelsonRadical)
           
 void setQueryCodes(KanjiQueryCodes queryCodes)
           
 void setReadings(java.util.Set<ReadingEntry> readings)
           
 void setStrokeCount(java.lang.Integer strokeCount)
           
 void setStrokeMiscounts(java.util.Set<java.lang.Integer> strokeMiscounts)
           
 void setVariants(java.util.Set<VariantPair> variants)
           
 
Methods inherited from class net.ajaest.data.kanji.KanjiTag
compareTo, equals, FormattedDescriptionString, getClassicRadical, getDicReferences, getFrequency, getGrade, getGraph, getJisCode, getJLPTLevel, getMeanings, getNelsonRadical, getQueryCodes, getReadings, getStrokeCount, getStrokeMiscounts, getUnicode, getVariants, hashCode, isKanji, kanaToRomaji, main, toChar, toRomaji, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

Kanji

public Kanji(char[] c)
Constructs a kanji extracting the code point of the stored char in the position 0 of the char array. It work with surrogates.

Parameters:
c - char representation of a kanji.
Throws:
java.lang.IllegalArgumentException - If the

Kanji

public Kanji(java.lang.Character c)
Constructs a kanji from a character representation of a kanji. It does not support surrogation.

Parameters:
c - kanji character

Kanji

public Kanji(int unicode)
Constructs a kanji by his unicode value, that will be used as primary key.


Kanji

public Kanji(java.lang.Integer unicode)
Constructs a kanji by his unicode value, that will be used as primary key.

Method Detail

setClassicRadical

public void setClassicRadical(java.lang.Integer classicRadical)

setDicReferences

public void setDicReferences(java.util.Set<DicReferencePair> dicReferences)

setFrequency

public void setFrequency(java.lang.Integer frequency)

setGrade

public void setGrade(java.lang.Integer grade)

setGraph

public void setGraph(KanjiGraph graph)

setJisCode

public void setJisCode(JISPair jisCode)

setJLPTLevel

public void setJLPTLevel(java.lang.Integer jLPTLevel)

setMeanings

public void setMeanings(java.util.Set<MeaningEntry> meanings)

setNelsonRadical

public void setNelsonRadical(java.lang.Integer nelsonRadical)

setQueryCodes

public void setQueryCodes(KanjiQueryCodes queryCodes)

setReadings

public void setReadings(java.util.Set<ReadingEntry> readings)

setStrokeCount

public void setStrokeCount(java.lang.Integer strokeCount)

setStrokeMiscounts

public void setStrokeMiscounts(java.util.Set<java.lang.Integer> strokeMiscounts)

setVariants

public void setVariants(java.util.Set<VariantPair> variants)