net.ajaest.jdk.data.kanji
Class Kanji

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

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.jdk.data.kanji.KanjiTag
classicRad, 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 unicodeRef)
          Constructs a kanji by his unicode value, that will be used as primary key.
Kanji(java.lang.Integer unicodeRef)
          Constructs a kanji by his unicode value, that will be used as primary key.
 
Method Summary
 java.util.Set<DicReferencePair> getDicReferences()
          The returned list is not immutable like in KanjiTag
 java.util.Set<MeaningEntry> getMeanings()
          The returned list is not immutable like in KanjiTag
 java.util.Set<ReadingEntry> getReadings()
           
 java.util.Set<java.lang.Integer> getStrokeMiscounts()
          The returned list is not immutable like in KanjiTag
 java.util.Set<VariantPair> getVariants()
          The returned list is not immutable like in KanjiTag
 void setClassicRadical(RadicalTag rad)
           
 void setDicReferences(java.util.Set<DicReferencePair> drp)
           
 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> men)
           
 void setNelsonRadical(java.lang.Integer nelsonRadical)
           
 void setQueryCodes(KanjiQueryCodes queryCodes)
           
 void setReadings(java.util.Set<ReadingEntry> res)
           
 void setStrokeCount(java.lang.Integer strokeCount)
           
 void setStrokeMiscounts(java.util.Set<java.lang.Integer> strokeMis)
           
 void setVariants(java.util.Set<VariantPair> var)
           
 
Methods inherited from class net.ajaest.jdk.data.kanji.KanjiTag
compareTo, equals, formattedDescriptionString, getByEnum, getByEnum, getClassicRadical, getFrequency, getGrade, getGraph, getJisCode, getJLPTLevel, getNelsonRadical, getQueryCodes, getStrokeCount, getUnicodeRef, hashCode, isKanji, kanaToRomaji, 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 unicodeRef)
Constructs a kanji by his unicode value, that will be used as primary key.


Kanji

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

Method Detail

getDicReferences

public java.util.Set<DicReferencePair> getDicReferences()
The returned list is not immutable like in KanjiTag

Overrides:
getDicReferences in class KanjiTag

setFrequency

public void setFrequency(java.lang.Integer frequency)

setClassicRadical

public void setClassicRadical(RadicalTag rad)

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)

getMeanings

public java.util.Set<MeaningEntry> getMeanings()
The returned list is not immutable like in KanjiTag

Overrides:
getMeanings in class KanjiTag

setNelsonRadical

public void setNelsonRadical(java.lang.Integer nelsonRadical)

setQueryCodes

public void setQueryCodes(KanjiQueryCodes queryCodes)

getReadings

public java.util.Set<ReadingEntry> getReadings()
Overrides:
getReadings in class KanjiTag

setStrokeCount

public void setStrokeCount(java.lang.Integer strokeCount)

getStrokeMiscounts

public java.util.Set<java.lang.Integer> getStrokeMiscounts()
The returned list is not immutable like in KanjiTag

Overrides:
getStrokeMiscounts in class KanjiTag

getVariants

public java.util.Set<VariantPair> getVariants()
The returned list is not immutable like in KanjiTag

Overrides:
getVariants in class KanjiTag

setStrokeMiscounts

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

setDicReferences

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

setReadings

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

setMeanings

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

setVariants

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