|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--DictCapabilities
Queries the dictionary server for available lexica. The methods of this class designed for public use are all static.
| Constructor Summary | |
DictCapabilities()
|
|
| Method Summary | |
static boolean |
areKnown()
Returns true if the capabilities of the dictionary server are already known. |
static void |
forgetEverything()
Resets the flag that indicates that the dictionary server has already been queried. |
static java.util.Map |
getChoicesForLanguage(java.lang.String lang)
Returns a map of human-readable lexicon names against lexicon codes. |
static java.lang.String |
getDefaultForLanguage(java.lang.String lang)
Returns the code for the default lexicon for the language lang. |
static void |
queryCapabilities(ContentOwner owner)
Queries the dictionary server to find out what lexica are available. |
static void |
setDefaultForLanguage(java.lang.String lang,
java.lang.String lex)
Sets the default lexicon for the language lang, thereby
preserving the user's preference. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
This is part of the ContentHandler interface. |
static boolean |
supportsLanguage(java.lang.String lang)
Returns true if the dictionary server can provide any lexica for the language lang. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DictCapabilities()
| Method Detail |
public static void queryCapabilities(ContentOwner owner)
owner - content owner (used to determine scriptbase)public static boolean areKnown()
public static void forgetEverything()
public static boolean supportsLanguage(java.lang.String lang)
lang.lang - language identifierlangpublic static java.util.Map getChoicesForLanguage(java.lang.String lang)
lang - language identifierpublic static java.lang.String getDefaultForLanguage(java.lang.String lang)
lang.lang - language identifier
public static void setDefaultForLanguage(java.lang.String lang,
java.lang.String lex)
lang, thereby
preserving the user's preference.lang - language identifierlex - lexicon code
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
ContentHandler interface.startElement in class org.xml.sax.helpers.DefaultHandler
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||