Javadoc now works without warnings.

This commit is contained in:
dchandler 2002-12-09 01:48:34 +00:00
parent f4a16f8e9d
commit 22c6ec5406
4 changed files with 40 additions and 37 deletions

View file

@ -101,16 +101,17 @@ And also there are cases where they combine. For ex you can have
* *
* <p>Note that this class uses only a subset of Unicode to represent * <p>Note that this class uses only a subset of Unicode to represent
* consonants and vowels. In some situations, you should use {@link * consonants and vowels. In some situations, you should use {@link
* #EWSUB_wa_zur} to represent the consonant wa, while in others * #EWSUB_wa_zur} to represent the consonant wa, while in others you
* you should use {@link #EWC_wa}, even though you mean to subscribe * should use {@link #EWC_wa}, even though you mean to subscribe a
* a fixed-form wa. Basically, stick to the characters for which * fixed-form wa. Basically, stick to the characters for which
* enumerations exist in {@link #UnicodeConstants} and use your * enumerations exist in {@link
* common sense.</p> * org.thdl.tib.text.tshegbar.UnicodeConstants} and use your common
* sense.</p>
* *
* <p>For a pretty good, concise summary of the rules this class * <p>For a pretty good, concise summary of the rules this class
* knows about, see Joe B. Wilson's <i>Translating Buddhism from * knows about, see Joe B. Wilson's <i>Translating Buddhism from
* Tibetan</i> from {@see http://snowlionpubs.com/ Snow Lion * Tibetan</i> from Snow Lion Publications, Appendix 1,
* Publications}, Appendix 1, e.g. p. 548.</p> * e.g. p. 548.</p>
* *
* @author David Chandler */ * @author David Chandler */
public class LegalTshegBar public class LegalTshegBar
@ -186,13 +187,13 @@ public class LegalTshegBar
} }
/** Like {@link /** Like {@link
* #LegalTshegBar(char,char,char,char,boolean,boolean,String,char,char) * #LegalTshegBar(char,char,char,char,boolean,boolean,String,char,char)}
* but for the common case where the suffix is simply a * but geared for the common case where the suffix is simply a
* consonant. */ * consonant. */
public LegalTshegBar(char prefix, char headLetter, char rootLetter, public LegalTshegBar(char prefix, char headLetter, char rootLetter,
char subjoinedLetter, char subjoinedLetter,
boolean hasWaZur, // DLC FIXME handle this boolean hasWaZur,
boolean hasAChung, // DLC FIXME handle this boolean hasAChung,
char suffix, char postsuffix, char vowel) char suffix, char postsuffix, char vowel)
throws IllegalArgumentException throws IllegalArgumentException
{ {
@ -302,7 +303,7 @@ public class LegalTshegBar
} }
/** Returns the vowel, or EW_ABSENT if there is no {@link /** Returns the vowel, or EW_ABSENT if there is no {@link
* hasExplicitVowel() explicit vowel} (the syllable has the * #hasExplicitVowel() explicit vowel} (the syllable has the
* built-in "ah" sound in this case). */ * built-in "ah" sound in this case). */
public char getVowel() { public char getVowel() {
// DLC assert this is one of { EWV_i, EWV_u, EWV_e, EWV_o } // DLC assert this is one of { EWV_i, EWV_u, EWV_e, EWV_o }
@ -367,7 +368,7 @@ public class LegalTshegBar
* representations of the thirty consonants. The consonants are * representations of the thirty consonants. The consonants are
* in the usual order you find them in the 8 row by 4 column * in the usual order you find them in the 8 row by 4 column
* table that students of the language memorize. * table that students of the language memorize.
* @see org.thdl.tib.text.tshegbar#UnicodeConstants */ * @see org.thdl.tib.text.tshegbar.UnicodeConstants */
public static String getTheThirtyConsonants() { public static String getTheThirtyConsonants() {
ThdlDebug.verify(thirtyConsonants.length() == 30); // DLC put this into a JUnit test to avoid the slow-down. ThdlDebug.verify(thirtyConsonants.length() == 30); // DLC put this into a JUnit test to avoid the slow-down.
return thirtyConsonants; return thirtyConsonants;
@ -398,7 +399,7 @@ public class LegalTshegBar
/** Returns a String containing the nominal Unicode /** Returns a String containing the nominal Unicode
* representations of the five prefixes. The prefixes are in * representations of the five prefixes. The prefixes are in
* dictionary order. * dictionary order.
* @see org.thdl.tib.text.tshegbar#UnicodeConstants */ * @see org.thdl.tib.text.tshegbar.UnicodeConstants */
public static String getTheFivePrefixes() { public static String getTheFivePrefixes() {
final String s = new String(new char[] { final String s = new String(new char[] {
EWC_ga, EWC_da, EWC_ba, EWC_ma, EWC_achen EWC_ga, EWC_da, EWC_ba, EWC_ma, EWC_achen
@ -417,7 +418,7 @@ public class LegalTshegBar
* representations of the ten suffixes. The suffixes are in * representations of the ten suffixes. The suffixes are in
* dictionary order. * dictionary order.
* @see #getConnectiveCaseSuffix() * @see #getConnectiveCaseSuffix()
* @see org.thdl.tib.text.tshegbar#UnicodeConstants */ * @see org.thdl.tib.text.tshegbar.UnicodeConstants */
public static String getTheTenSuffixes() { public static String getTheTenSuffixes() {
final String s = new String(new char[] { final String s = new String(new char[] {
EWC_ga, EWC_nga, EWC_da, EWC_na, EWC_ba, EWC_ga, EWC_nga, EWC_da, EWC_na, EWC_ba,
@ -442,7 +443,7 @@ public class LegalTshegBar
tibwn.ini. (DLC FIXME: are these all legal? are any others?) tibwn.ini. (DLC FIXME: are these all legal? are any others?)
@param rootLetter the root consonant (in {@link @param rootLetter the root consonant (in {@link
UnicodeUtils#isPreferredFormOfConsonant() preferred form} in UnicodeUtils#isPreferredFormOfConsonant(char) preferred form} in
you expect true to be returned) you expect true to be returned)
@param subjoinedLetter the letter subscribed to rootLetter, @param subjoinedLetter the letter subscribed to rootLetter,
which should not {@link UnicodeUtils#isWa(char) be wa} if you which should not {@link UnicodeUtils#isWa(char) be wa} if you
@ -603,8 +604,8 @@ public class LegalTshegBar
char headLetter, char headLetter,
char rootLetter, char rootLetter,
char subjoinedLetter, char subjoinedLetter,
boolean hasWaZur, // DLC FIXME handle this boolean hasWaZur,
boolean hasAChung, // DLC FIXME handle this boolean hasAChung,
String suffix, String suffix,
char postsuffix, char postsuffix,
char vowel) char vowel)
@ -619,14 +620,15 @@ public class LegalTshegBar
} }
/** Like {@link /** Like {@link
* #formsLegalTshegBar(char,char,char,char,boolean,boolean,String,char,char) * #formsLegalTshegBar(char,char,char,char,boolean,boolean,String,char,char)}
* but for the common case where the suffix is simply a consonant. */ * but geared for the common case where the suffix is simply a
* consonant. */
public static boolean formsLegalTshegBar(char prefix, public static boolean formsLegalTshegBar(char prefix,
char headLetter, char headLetter,
char rootLetter, char rootLetter,
char subjoinedLetter, char subjoinedLetter,
boolean hasWaZur, // DLC FIXME handle this boolean hasWaZur,
boolean hasAChung, // DLC FIXME handle this boolean hasAChung,
char suffix, char suffix,
char postsuffix, char postsuffix,
char vowel) char vowel)
@ -643,13 +645,13 @@ public class LegalTshegBar
* @exception IllegalArgumentException if the syllable does not * @exception IllegalArgumentException if the syllable does not
* follow the rules of a Tibetan syllable. To learn about the * follow the rules of a Tibetan syllable. To learn about the
* arguments, see {@link * arguments, see {@link
* #formsLegalTshegBar(char,char,char,char,String,char,char)}. */ * #formsLegalTshegBar(char,char,char,char,boolean,boolean,String,char,char)}. */
private static void throwIfNotLegalTshegBar(char prefix, private static void throwIfNotLegalTshegBar(char prefix,
char headLetter, char headLetter,
char rootLetter, char rootLetter,
char subjoinedLetter, char subjoinedLetter,
boolean hasWaZur, // DLC FIXME handle this boolean hasWaZur,
boolean hasAChung, // DLC FIXME handle this boolean hasAChung,
String suffix, String suffix,
char postsuffix, char postsuffix,
char vowel) char vowel)
@ -671,7 +673,7 @@ public class LegalTshegBar
/** If you get through this gauntlet without having an exception /** If you get through this gauntlet without having an exception
* thrown, then this combination makes a legal Tibetan syllable. * thrown, then this combination makes a legal Tibetan syllable.
* To learn about the arguments, see {@link * To learn about the arguments, see {@link
* #formsLegalTshegBar(char,char,char,char,String,char,char)}. * #formsLegalTshegBar(char,char,char,char,boolean,boolean,String,char,char)}.
* @return true if this syllable is legal, false if this syllable * @return true if this syllable is legal, false if this syllable
* is illegal and throwIfIllegal is false, does not return if * is illegal and throwIfIllegal is false, does not return if
* this syllable is illegal and throwIfIllegal is true * this syllable is illegal and throwIfIllegal is true
@ -682,8 +684,8 @@ public class LegalTshegBar
char headLetter, char headLetter,
char rootLetter, char rootLetter,
char subjoinedLetter, char subjoinedLetter,
boolean hasWaZur, // DLC FIXME handle this boolean hasWaZur,
boolean hasAChung, // DLC FIXME handle this boolean hasAChung,
String suffix, String suffix,
char postsuffix, char postsuffix,
char vowel, char vowel,
@ -968,7 +970,7 @@ public class LegalTshegBar
} }
/** Overrides {@link org.thdl.tib.text.tshegbar#UnicodeReadyThunk /** Overrides {@link org.thdl.tib.text.tshegbar.UnicodeReadyThunk}
method to return {@link UnicodeUtils#toCanonicalForm(String) method to return {@link UnicodeUtils#toCanonicalForm(String)
canonically-formed Unicode}. canonically-formed Unicode}.
@exception UnsupportedOperationException is never thrown */ @exception UnsupportedOperationException is never thrown */
@ -1013,7 +1015,7 @@ public class LegalTshegBar
return sb.toString(); return sb.toString();
} }
/** Overrides {@link org.thdl.tib.text.tshegbar#UnicodeReadyThunk /** Overrides {@link org.thdl.tib.text.tshegbar.UnicodeReadyThunk}
method to return true. */ method to return true. */
public boolean hasEquivalentUnicode() { public boolean hasEquivalentUnicode() {
return true; return true;

View file

@ -29,8 +29,9 @@ import org.thdl.tib.text.TibetanMachineWeb;
* <p>See the document by Nathaniel Garson and David Germano entitled * <p>See the document by Nathaniel Garson and David Germano entitled
* <i>Extended Wylie Transliteration Scheme</i>. Note that there are * <i>Extended Wylie Transliteration Scheme</i>. Note that there are
* a couple of issues with the November 18, 2001 revision of that * a couple of issues with the November 18, 2001 revision of that
* document; these issues are in the Bugs tracker at {@see * document; these issues are in the Bugs tracker at our SourceForge site.</p>
* http://sourceforge.net/projects/thdltools}.</p> *
* @see <a href="http://sourceforge.net/projects/thdltools">SourceForge site</a>
* *
* @author David Chandler */ * @author David Chandler */
public class UnicodeCharToExtendedWylie { public class UnicodeCharToExtendedWylie {

View file

@ -25,7 +25,7 @@ package org.thdl.tib.text.tshegbar;
* Wylie by "i" is EWV_i, and so on. There is at least one exception * Wylie by "i" is EWV_i, and so on. There is at least one exception
* to the naming scheme, but exceptions are well-commented. * to the naming scheme, but exceptions are well-commented.
* *
* @see org.thdl.tib.text.tshegbar#ValidTshegBar * @see org.thdl.tib.text.tshegbar.LegalTshegBar
* *
* @author David Chandler */ * @author David Chandler */
public interface UnicodeConstants { public interface UnicodeConstants {
@ -77,17 +77,17 @@ public interface UnicodeConstants {
/* Four of the five vowels, some say, or, others say, "the four /* Four of the five vowels, some say, or, others say, "the four
vowels": */ vowels": */
/** "gi gu" (DLC?), the 'i' sound in the English word keep: */ /** "gi gu", the 'i' sound in the English word keep: */
static final char EWV_i = '\u0F72'; static final char EWV_i = '\u0F72';
/** "zhabs kyu", the 'u' sound in the English word tune: */ /** "zhabs kyu", the 'u' sound in the English word tune: */
static final char EWV_u = '\u0F74'; static final char EWV_u = '\u0F74';
/** "'greng bu" (also known as "'greng po", and pronounced <i>dang-bo</i>), the 'a' sound in the English word gate: */ /** "'greng bu" (also known as "'greng po", and pronounced <i>dang-bo</i>), the 'a' sound in the English word gate: */
static final char EWV_e = '\u0F7A'; static final char EWV_e = '\u0F7A';
/** "na ro" (DLC?), the 'o' sound in the English word bone: */ /** "na ro", the 'o' sound in the English word bone: */
static final char EWV_o = '\u0F7C'; static final char EWV_o = '\u0F7C';
/** subscribed form of EWC_wa, a.k.a. wa-btags */ /** subscribed form of EWC_wa, also known as wa-btags */
static final char EWSUB_wa_zur = '\u0FAD'; static final char EWSUB_wa_zur = '\u0FAD';
/** subscribed form of EWC_ya */ /** subscribed form of EWC_ya */
static final char EWSUB_ya_btags = '\u0FB1'; static final char EWSUB_ya_btags = '\u0FB1';

View file

@ -208,7 +208,7 @@ public class UnicodeUtils {
} }
/** Returns true iff there exists at least one character ch in /** Returns true iff there exists at least one character ch in
unicodeString such that ch {@link #isRa() is ra} or contains unicodeString such that ch {@link #isRa(char) is ra} or contains
ra (like <code>\u0F77</code>). This method is not implemented ra (like <code>\u0F77</code>). This method is not implemented
as fast as it could be. It calls on the canonicalization code as fast as it could be. It calls on the canonicalization code
in order to maximize reuse and minimize the possibility of in order to maximize reuse and minimize the possibility of