|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.mit.jverbnet.data.syntax.SyntaxArgDesc.SyntaxArgDescBuilder
public static class SyntaxArgDesc.SyntaxArgDescBuilder
Default implementation of syntax arg descriptor builder interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface edu.mit.jverbnet.data.syntax.ISyntaxArgDesc |
---|
ISyntaxArgDesc.ISyntaxArgDescBuilder |
Constructor Summary | |
---|---|
SyntaxArgDesc.SyntaxArgDescBuilder(SyntaxArgType type,
java.lang.String value,
INounPhraseType npType,
ISelRestrictions<? extends IRestrType> selRestrs)
Creates a new builder with the specified values. |
Method Summary | |
---|---|
ISyntaxArgDesc |
create(ISyntaxDesc parent)
Creates a syntax arg descriptor from the information contained in the builder. |
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. |
void |
setNounPhrasetype(INounPhraseType npType)
Sets the noun phrase type of the argument. |
void |
setSelRestrictions(ISelRestrictions<? extends IRestrType> restrs)
Sets the selectional restrictions for this argument |
void |
setType(SyntaxArgType type)
Sets the type of the syntactic argument. |
void |
setValue(java.lang.String value)
Sets 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.SyntaxArgDescBuilder(SyntaxArgType type, java.lang.String value, INounPhraseType npType, ISelRestrictions<? extends IRestrType> selRestrs)
null
on construction.
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
public void setType(SyntaxArgType type)
ISyntaxArgDesc.ISyntaxArgDescBuilder
setType
in interface ISyntaxArgDesc.ISyntaxArgDescBuilder
type
- the type of the syntactic argumentpublic void setValue(java.lang.String value)
ISyntaxArgDesc.ISyntaxArgDescBuilder
setValue
in interface ISyntaxArgDesc.ISyntaxArgDescBuilder
value
- the value of the syntactic argumentpublic void setNounPhrasetype(INounPhraseType npType)
ISyntaxArgDesc.ISyntaxArgDescBuilder
null
,
this argument also sets the type to SyntaxArgType.NP
.
setNounPhrasetype
in interface ISyntaxArgDesc.ISyntaxArgDescBuilder
npType
- the noun phrase type of the argumentpublic void setSelRestrictions(ISelRestrictions<? extends IRestrType> restrs)
ISyntaxArgDesc.ISyntaxArgDescBuilder
setSelRestrictions
in interface ISyntaxArgDesc.ISyntaxArgDescBuilder
restrs
- the selectional restrictions for this argumentpublic ISyntaxArgDesc create(ISyntaxDesc parent)
ISyntaxArgDesc.ISyntaxArgDescBuilder
create
in interface ISyntaxArgDesc.ISyntaxArgDescBuilder
parent
- the parent of the descriptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |