edu.mit.jwi.item
Class UnknownLexFile

java.lang.Object
  extended by edu.mit.jwi.item.LexFile
      extended by edu.mit.jwi.item.UnknownLexFile
All Implemented Interfaces:
IHasPOS, ILexFile, java.io.Serializable

public class UnknownLexFile
extends LexFile

Represents 'unknown' lexical files. This class implements internal caching, much like the Integer class. Clients should use the static getUnknownLexicalFile(int) method to retrieve instances of this class.

Since:
JWI 2.1.4
Version:
2.4.0
Author:
Mark A. Finlayson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.mit.jwi.item.LexFile
ADJ_ALL, ADJ_PERT, ADJ_PPL, ADV_ALL, NOUN_ACT, NOUN_ANIMAL, NOUN_ARTIFACT, NOUN_ATTRIBUTE, NOUN_BODY, NOUN_COGNITION, NOUN_COMMUNICATION, NOUN_EVENT, NOUN_FEELING, NOUN_FOOD, NOUN_GROUP, NOUN_LOCATION, NOUN_MOTIVE, NOUN_OBJECT, NOUN_PERSON, NOUN_PHENOMENON, NOUN_PLANT, NOUN_POSSESSION, NOUN_PROCESS, NOUN_QUANTITY, NOUN_RELATION, NOUN_SHAPE, NOUN_STATE, NOUN_SUBSTANCE, NOUN_TIME, NOUN_TOPS, VERB_BODY, VERB_CHANGE, VERB_COGNITION, VERB_COMMUNICATION, VERB_COMPETITION, VERB_CONSUMPTION, VERB_CONTACT, VERB_CREATION, VERB_EMOTION, VERB_MOTION, VERB_PERCEPTION, VERB_POSESSION, VERB_SOCIAL, VERB_STATIVE, VERB_WEATHER
 
Constructor Summary
protected UnknownLexFile(int num)
          Obtain instances of this class via the static getUnknownLexicalFile(int) method.
 
Method Summary
static UnknownLexFile getUnknownLexicalFile(int num)
          Allows retrieval of an unknown lexical file object given the number.
 
Methods inherited from class edu.mit.jwi.item.LexFile
checkLexicalFileNumber, checkString, equals, getDescription, getLexicalFile, getLexicalFileNumberString, getName, getNumber, getPOS, hashCode, isIllegalLexicalFileNumber, readResolve, toString, values
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnknownLexFile

protected UnknownLexFile(int num)
Obtain instances of this class via the static getUnknownLexicalFile(int) method. This constructor is marked protected so that the class may be sub-classed, but not directly instantiated.

Parameters:
num - the number of the lexcial file
Since:
JWI 2.1.4
Method Detail

getUnknownLexicalFile

public static UnknownLexFile getUnknownLexicalFile(int num)
Allows retrieval of an unknown lexical file object given the number.

Returns:
UnknownLexFile the unknown lexical file object corresponding to the specified number
Throws:
java.lang.IllegalArgumentException - if the specified integer is not a valid lexical file number
Since:
JWI 2.1.4


Copyright © 2007-2013 Massachusetts Institute of Technology. All Rights Reserved.