|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mit.jwi.item.VerbFrame
public class VerbFrame
Default, hard-coded, implementation of IVerbFrame that does not read
from the actual file. This is not implemented as an Enum so that
clients can instantiate their own custom verb frame objects.
| Field Summary | |
|---|---|
static VerbFrame |
NUM_01
|
static VerbFrame |
NUM_02
|
static VerbFrame |
NUM_03
|
static VerbFrame |
NUM_04
|
static VerbFrame |
NUM_05
|
static VerbFrame |
NUM_06
|
static VerbFrame |
NUM_07
|
static VerbFrame |
NUM_08
|
static VerbFrame |
NUM_09
|
static VerbFrame |
NUM_10
|
static VerbFrame |
NUM_11
|
static VerbFrame |
NUM_12
|
static VerbFrame |
NUM_13
|
static VerbFrame |
NUM_14
|
static VerbFrame |
NUM_15
|
static VerbFrame |
NUM_16
|
static VerbFrame |
NUM_17
|
static VerbFrame |
NUM_18
|
static VerbFrame |
NUM_19
|
static VerbFrame |
NUM_20
|
static VerbFrame |
NUM_21
|
static VerbFrame |
NUM_22
|
static VerbFrame |
NUM_23
|
static VerbFrame |
NUM_24
|
static VerbFrame |
NUM_25
|
static VerbFrame |
NUM_26
|
static VerbFrame |
NUM_27
|
static VerbFrame |
NUM_28
|
static VerbFrame |
NUM_29
|
static VerbFrame |
NUM_30
|
static VerbFrame |
NUM_31
|
static VerbFrame |
NUM_32
|
static VerbFrame |
NUM_33
|
static VerbFrame |
NUM_34
|
static VerbFrame |
NUM_35
|
| Constructor Summary | |
|---|---|
VerbFrame(int num,
java.lang.String template)
Constructs a new verb frame. |
|
| Method Summary | |
|---|---|
static VerbFrame |
getFrame(int number)
Returns the frame indexed by the specified number defined in this class, or null if there is |
int |
getNumber()
The id number of this verb frame. |
java.lang.String |
getTemplate()
The string form of the template, drawn directly from the data file. |
java.lang.String |
instantiateTemplate(java.lang.String verb)
Takes the supplied surface form of a verb and instantiates it into the template for the verb frame. |
protected java.lang.Object |
readResolve()
This utility method implements the appropriate deserialization for this object. |
java.lang.String |
toString()
|
static java.util.Collection<VerbFrame> |
values()
This emulates the Enum.values() method, in that it returns an unmodifiable collection of all the static instances declared in this class, in the order they were declared. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final VerbFrame NUM_01
public static final VerbFrame NUM_02
public static final VerbFrame NUM_03
public static final VerbFrame NUM_04
public static final VerbFrame NUM_05
public static final VerbFrame NUM_06
public static final VerbFrame NUM_07
public static final VerbFrame NUM_08
public static final VerbFrame NUM_09
public static final VerbFrame NUM_10
public static final VerbFrame NUM_11
public static final VerbFrame NUM_12
public static final VerbFrame NUM_13
public static final VerbFrame NUM_14
public static final VerbFrame NUM_15
public static final VerbFrame NUM_16
public static final VerbFrame NUM_17
public static final VerbFrame NUM_18
public static final VerbFrame NUM_19
public static final VerbFrame NUM_20
public static final VerbFrame NUM_21
public static final VerbFrame NUM_22
public static final VerbFrame NUM_23
public static final VerbFrame NUM_24
public static final VerbFrame NUM_25
public static final VerbFrame NUM_26
public static final VerbFrame NUM_27
public static final VerbFrame NUM_28
public static final VerbFrame NUM_29
public static final VerbFrame NUM_30
public static final VerbFrame NUM_31
public static final VerbFrame NUM_32
public static final VerbFrame NUM_33
public static final VerbFrame NUM_34
public static final VerbFrame NUM_35
| Constructor Detail |
|---|
public VerbFrame(int num,
java.lang.String template)
num - the verb frame numbertemplate - the template representing the verb frame| Method Detail |
|---|
public int getNumber()
IVerbFrame
getNumber in interface IVerbFramepublic java.lang.String getTemplate()
IVerbFramenull
getTemplate in interface IVerbFramenull, non-empty template of the verb framepublic java.lang.String instantiateTemplate(java.lang.String verb)
IVerbFrame
instantiateTemplate in interface IVerbFrameverb - the string to be substituted into the template
public java.lang.String toString()
toString in class java.lang.Objectprotected java.lang.Object readResolve()
public static java.util.Collection<VerbFrame> values()
public static VerbFrame getFrame(int number)
null if there is
number - the verb frame number
null if
nuone
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||