|
||||||||||
| 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 ISyntaxArgDescnull.public SyntaxArgType getType()
ISyntaxArgDescnull.
getType in interface ISyntaxArgDescnull type of the syntactic argumentpublic java.lang.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 ISyntaxArgDescpublic void setType(SyntaxArgType type)
ISyntaxArgDesc.ISyntaxArgDescBuilder
setType in interface ISyntaxArgDesc.ISyntaxArgDescBuildertype - the type of the syntactic argumentpublic void setValue(java.lang.String value)
ISyntaxArgDesc.ISyntaxArgDescBuilder
setValue in interface ISyntaxArgDesc.ISyntaxArgDescBuildervalue - the value of the syntactic argumentpublic void setNounPhrasetype(INounPhraseType npType)
ISyntaxArgDesc.ISyntaxArgDescBuildernull,
this argument also sets the type to SyntaxArgType.NP.
setNounPhrasetype in interface ISyntaxArgDesc.ISyntaxArgDescBuildernpType - the noun phrase type of the argumentpublic void setSelRestrictions(ISelRestrictions<? extends IRestrType> restrs)
ISyntaxArgDesc.ISyntaxArgDescBuilder
setSelRestrictions in interface ISyntaxArgDesc.ISyntaxArgDescBuilderrestrs - the selectional restrictions for this argumentpublic ISyntaxArgDesc create(ISyntaxDesc parent)
ISyntaxArgDesc.ISyntaxArgDescBuilder
create in interface ISyntaxArgDesc.ISyntaxArgDescBuilderparent - the parent of the descriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||