public class VerbFrame extends Object implements IVerbFrame
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.| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
VerbFrame(int num,
String template)
Constructs a new verb frame.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getTemplate()
The string form of the template, drawn directly from the data file.
|
String |
instantiateTemplate(String verb)
Takes the supplied surface form of a verb and instantiates it into the
template for the verb frame.
|
protected Object |
readResolve()
This utility method implements the appropriate deserialization for this
object.
|
String |
toString() |
static 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.
|
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
public VerbFrame(int num,
String template)
num - the verb frame numbertemplate - the template representing the verb framepublic int getNumber()
IVerbFramegetNumber in interface IVerbFramepublic String getTemplate()
IVerbFramenullgetTemplate in interface IVerbFramenull, non-empty template of the verb framepublic String instantiateTemplate(String verb)
IVerbFrameinstantiateTemplate in interface IVerbFrameverb - the string to be substituted into the templateprotected Object readResolve()
public static Collection<VerbFrame> values()
public static VerbFrame getFrame(int number)
null if there isnumber - the verb frame numbernull if
nuoneCopyright © 2018. All rights reserved.