|
||||||||||
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
.
Nested Class Summary | |
---|---|
static class |
SyntaxArgDesc.SyntaxArgDescBuilder
Default implementation of syntax arg descriptor builder interface. |
Nested classes/interfaces inherited from interface edu.mit.jverbnet.data.syntax.ISyntaxArgDesc |
---|
ISyntaxArgDesc.ISyntaxArgDescBuilder |
Constructor Summary | |
---|---|
SyntaxArgDesc(ISyntaxDesc parent,
INounPhraseType type,
java.lang.String value,
ISelRestrictions<? extends IRestrType> selRestrs)
Creates a new syntax argument description of the SyntaxArgType.NP
type with the specified parameters. |
|
SyntaxArgDesc(ISyntaxDesc parent,
SyntaxArgType type,
java.lang.String value,
INounPhraseType npType,
ISelRestrictions<? extends IRestrType> selRestrs)
Creates a new syntax argument description with full control. |
|
SyntaxArgDesc(ISyntaxDesc parent,
SyntaxArgType type,
java.lang.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. |
ISyntaxDesc |
getParent()
Returns the parent of this argument |
ISelRestrictions<? extends IRestrType> |
getSelRestrictions()
Returns the selectional restrictions for this argument. |
SyntaxArgType |
getType()
Returns the type of the syntactic argument. |
java.lang.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(ISyntaxDesc parent, SyntaxArgType type, java.lang.String value, ISelRestrictions<? extends IRestrType> selRestrs)
SyntaxArgType.NP
type.
parent
- the syntax descriptor parent of this argument; may not be null
type
- the type; may not be null
or
SyntaxArgType.NP
value
- 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(ISyntaxDesc parent, INounPhraseType type, java.lang.String value, ISelRestrictions<? extends IRestrType> selRestrs)
SyntaxArgType.NP
type with the specified parameters.
parent
- the syntax descriptor parent of this argument; may not be
null
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(ISyntaxDesc parent, SyntaxArgType type, java.lang.String value, INounPhraseType npType, ISelRestrictions<? extends IRestrType> selRestrs)
parent
- the syntax descriptor parent of this argument; may not be
null
type
- the type; may not be null
value
- 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 null
selRestrs
- the selectional restrictions for this argument; may be
null
java.lang.NullPointerException
- if type is null
; or if the type requires the
value not to be null
and the value is
null
Method Detail |
---|
public ISyntaxDesc getParent()
ISyntaxArgDesc
getParent
in interface ISyntaxArgDesc
null
.public SyntaxArgType getType()
ISyntaxArgDesc
null
.
getType
in interface ISyntaxArgDesc
null
type of the syntactic argumentpublic java.lang.String getValue()
ISyntaxArgDesc
null
.
getValue
in interface ISyntaxArgDesc
null
value of the syntactic argumentpublic INounPhraseType getNounPhraseType()
ISyntaxArgDesc
ISyntaxArgDesc.getType()
method returns SyntaxArgType.NP
, this
method will return a noun phrase type. Otherwise it will return
null
.
getNounPhraseType
in interface ISyntaxArgDesc
null
if the type of the argument is not a noun
phrase; otherwise a noun phrase typepublic ISelRestrictions<? extends IRestrType> getSelRestrictions()
ISyntaxArgDesc
null
.
getSelRestrictions
in interface ISyntaxArgDesc
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |