|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mit.jverbnet.data.syntax.SyntaxArgDesc
public class SyntaxArgDesc
Default implementation of ISyntaxArgDesc.
| Constructor Summary | |
|---|---|
SyntaxArgDesc(INounPhraseType type,
String value,
ISelRestrictions<? extends IRestrType> selRestrs)
Creates a new syntax argument description of the SyntaxArgType.NP
type with the specified parameters. |
|
SyntaxArgDesc(SyntaxArgType type,
String value,
INounPhraseType npType,
ISelRestrictions<? extends IRestrType> selRestrs)
Creates a new syntax argument description with full control. |
|
SyntaxArgDesc(SyntaxArgType type,
String value,
ISelRestrictions<? extends IRestrType> selRestrs)
Creates a new syntax argument description with the specified parameters. |
|
| Method Summary | |
|---|---|
INounPhraseType |
getNounPhraseType()
If the ISyntaxArgDesc.getType() method returns SyntaxArgType.NP, this
method will return a noun phrase type. |
ISelRestrictions<? extends IRestrType> |
getSelRestrictions()
Returns the selectional restrictions for this argument. |
SyntaxArgType |
getType()
Returns the type of the syntactic argument. |
String |
getValue()
Returns the value of the syntactic argument. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SyntaxArgDesc(SyntaxArgType type,
String value,
ISelRestrictions<? extends IRestrType> selRestrs)
SyntaxArgType.NP type.
type - the type; may not be null or
SyntaxArgType.NPvalue - the value; must meet the restrictions of the type or an
exception is thrown; see
SyntaxArgType.VALUE_RULE.checkValue(String).selRestrs - the selectional restrictions for this argument; may be
null
public SyntaxArgDesc(INounPhraseType type,
String value,
ISelRestrictions<? extends IRestrType> selRestrs)
SyntaxArgType.NP
type with the specified parameters.
type - the noun phrase typevalue - the value; must meet the restrictions of the type or an
exception is thrown; see
SyntaxArgType.VALUE_RULE.checkValue(String).selRestrs - the selectional restrictions for this argument; may be
null
public SyntaxArgDesc(SyntaxArgType type,
String value,
INounPhraseType npType,
ISelRestrictions<? extends IRestrType> selRestrs)
type - the type; may not be nullvalue - the value; must meet the restrictions of the type or an
exception is thrown; see
SyntaxArgType.VALUE_RULE.checkValue(String).npType - must be non-null if the type is
SyntaxArgType.NP; otherwise must be nullselRestrs - the selectional restrictions for this argument; may be
null
NullPointerException - if type is null; or if the type requires the
value not to be null and the value is
null| Method Detail |
|---|
public SyntaxArgType getType()
ISyntaxArgDescnull.
getType in interface ISyntaxArgDescnull type of the syntactic argumentpublic String getValue()
ISyntaxArgDescnull.
getValue in interface ISyntaxArgDescnull value of the syntactic argumentpublic INounPhraseType getNounPhraseType()
ISyntaxArgDescISyntaxArgDesc.getType() method returns SyntaxArgType.NP, this
method will return a noun phrase type. Otherwise it will return
null.
getNounPhraseType in interface ISyntaxArgDescnull if the type of the argument is not a noun
phrase; otherwise a noun phrase typepublic ISelRestrictions<? extends IRestrType> getSelRestrictions()
ISyntaxArgDescnull.
getSelRestrictions in interface ISyntaxArgDesc
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||