|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ajaest.jdk.data.kanji.KanjiTag
public class KanjiTag
Immutable class that stores some different informations about a kanji
Field Summary | |
---|---|
protected RadicalTag |
classicRad
|
protected java.util.Set<DicReferencePair> |
dicReferences
|
protected java.lang.Integer |
frequency
|
protected java.lang.Integer |
grade
|
protected KanjiGraph |
graph
|
protected JISPair |
jisCode
|
protected java.lang.Integer |
JLPTLevel
|
protected java.util.Set<MeaningEntry> |
meanings
|
protected java.lang.Integer |
nelsonRadical
|
protected KanjiQueryCodes |
queryCodes
|
protected java.util.Set<ReadingEntry> |
readings
|
private static long |
serialVersionUID
|
protected java.lang.Integer |
strokeCount
|
protected java.util.Set<java.lang.Integer> |
strokeMiscounts
|
protected java.lang.Integer |
unicode
|
protected java.util.Set<VariantPair> |
variants
|
Constructor Summary | |
---|---|
protected |
KanjiTag()
|
Method Summary | |
---|---|
int |
compareTo(KanjiTag o)
Compares this kanji and another kanji by their's unicode value |
boolean |
equals(java.lang.Object obj)
Indicates if this kanji's unicode value equals other character or kanji unicode value |
java.lang.String |
formattedDescriptionString()
Returns a predefined formatted string with all the information about this Kanji |
java.lang.Object |
getByEnum(KanjiEnums.KanjiFieldEnum kfe)
Returns a property of this kanji using a defined instance of a KanjiFieldsEnum . |
java.lang.Object |
getByEnum(KanjiEnums.KanjiFieldEnum kfe,
java.lang.String value)
|
RadicalTag |
getClassicRadical()
|
java.util.Set<DicReferencePair> |
getDicReferences()
|
java.lang.Integer |
getFrequency()
|
java.lang.Integer |
getGrade()
|
KanjiGraph |
getGraph()
|
JISPair |
getJisCode()
Returns the jis code information stored in a JISCode object where
first() represents the codification (e.g "jis208" ) and
second() represents the jis code (e.g "16-2" ). |
java.lang.Integer |
getJLPTLevel()
|
java.util.Set<MeaningEntry> |
getMeanings()
|
java.lang.Integer |
getNelsonRadical()
|
KanjiQueryCodes |
getQueryCodes()
|
java.util.Set<ReadingEntry> |
getReadings()
|
java.lang.Integer |
getStrokeCount()
|
java.util.Set<java.lang.Integer> |
getStrokeMiscounts()
|
java.lang.Integer |
getUnicodeRef()
|
java.util.Set<VariantPair> |
getVariants()
|
int |
hashCode()
|
static boolean |
isKanji(java.lang.Integer unicodeValue)
|
static java.lang.String |
kanaToRomaji(java.lang.String s)
Converts the input kana string into romaji string. |
char[] |
toChar()
|
KanjiTag |
toRomaji()
Returns a copy of the current kanji in which all kana kanji in readings has been translated into romaji. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
protected java.lang.Integer unicode
protected JISPair jisCode
protected RadicalTag classicRad
protected java.lang.Integer nelsonRadical
protected java.lang.Integer grade
protected java.lang.Integer strokeCount
protected java.util.Set<java.lang.Integer> strokeMiscounts
protected java.util.Set<VariantPair> variants
protected java.lang.Integer frequency
protected java.lang.Integer JLPTLevel
protected java.util.Set<DicReferencePair> dicReferences
protected java.util.Set<ReadingEntry> readings
protected java.util.Set<MeaningEntry> meanings
protected KanjiQueryCodes queryCodes
protected KanjiGraph graph
Constructor Detail |
---|
protected KanjiTag()
Method Detail |
---|
public static final boolean isKanji(java.lang.Integer unicodeValue)
public static final java.lang.String kanaToRomaji(java.lang.String s)
s
- kana string
public int compareTo(KanjiTag o)
compareTo
in interface java.lang.Comparable<KanjiTag>
o
- Kanji
object to be compared with
this.getUnicodeValue().compareTo(anotherKanji.getUnicodeValue())
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String formattedDescriptionString()
String
with all info about the kanji.public java.util.Set<DicReferencePair> getDicReferences()
public java.lang.Integer getFrequency()
public java.lang.Integer getGrade()
public KanjiGraph getGraph()
public JISPair getJisCode()
JISCode
object where
first()
represents the codification (e.g "jis208"
) and
second()
represents the jis code (e.g "16-2"
).
JISPair
representing a JIS code.public java.lang.Integer getJLPTLevel()
public java.util.Set<MeaningEntry> getMeanings()
public RadicalTag getClassicRadical()
public java.lang.Integer getNelsonRadical()
public KanjiQueryCodes getQueryCodes()
public java.util.Set<ReadingEntry> getReadings()
public java.lang.Integer getStrokeCount()
public java.util.Set<java.lang.Integer> getStrokeMiscounts()
public java.lang.Integer getUnicodeRef()
getUnicodeRef
in interface KanjiReference
public java.util.Set<VariantPair> getVariants()
public int hashCode()
hashCode
in class java.lang.Object
public char[] toChar()
public final KanjiTag toRomaji()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getByEnum(KanjiEnums.KanjiFieldEnum kfe)
KanjiFieldsEnum
. The type and the content of the returned instance
depends on the specified type by kfe
.
kfe
- A defined instance of KanjiFieldsEnum
representing a
kanji field
kfe
, it
returns and upcasted Object
from:
kfe == KANJI_CLASSIC_NELSON
: An Integer
representing the Nelson radicalkfe == KANJI_CLASSIC_RADICAL
: An Integer
representing the classic radical numberkfe == KANJI_DE_ROO
: A
String
representing the De Roo query codekfe == KANJI_DIC_NAME
: A
Set<String>
representing the dictionary names in which
this kanji is referencedkfe == KANJI_DIC_INDEX
: A
Set<DicReferencePair>
representing all the references of
this kanji in dictionarieskfe == KANJI_FOUR_CORNER
:
A String
representing the four corner query code of this
kanjikfe == KANJI_FREQUENCY
:
An Integer
representing the frequency of this kanjikfe == KANJI_GRADE
: An
Integer
representing the grade of this kanjikfe == KANJI_GRAPH
: A
KanjiGraph
representing the graph info of this kanjikfe == KANJI_JIS_CHARSET
:
A String
representing the charset of this kanji JIS codekfe == KANJI_JIS_CODE
: A
JISPair
representing the JIS code of this kanjikfe == KANJI_JLPT_LEVEL
:
An Integer
representing the JLPT level of this kanjikfe == KANJI_LITERAL
: The
String
representation of this kanji unicode valuekfe == KANJI_MEANING
: A
Set<MeaningEntry>
representing all the meanings of this
kanji in different languageskfe == KANJI_MEANING_LANGUAGE
: A Set<String>
representing all the languages for
this kanji has registered meaningskfe == KANJI_READING_TYPE
: A Set<String>
representing all the readings types
existing in this kanjikfe == KANJI_READING
: A
Set<ReadingEntry>
representing all the readings of this
kanjikfe == KANJI_SKIP
: A
String
representing the SKIP query code of this kanjikfe == KANJI_SPAHN_HADAMITZKY
: A String
representing the Spahn-Hadamitzky code of
this kanjikfe == KANJI_STROKE_COUNT
: An Integer
representing the stroke count of this
kanjikfe == KANJI_STROKE_MISCOUNT
: A Set<Integer>
representing the common stroke
miscounts of this kanjikfe == KANJI_UNICODE_VALUE
: An Integer
representingkfe == KANJI_VARIANT_INDEX
: A Set<VariantPair>
representing all the variant
references of this kanjikfe == KANJI_VARIANT_TYPE
: A Set<String>
representing all the variants types
of this kanjipublic java.lang.Object getByEnum(KanjiEnums.KanjiFieldEnum kfe, java.lang.String value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |