edu.mit.jverbnet.data.syntax
Interface ISyntaxArgDesc.ISyntaxArgDescBuilder

All Superinterfaces:
ISyntaxArgDesc
All Known Implementing Classes:
SyntaxArgDesc.SyntaxArgDescBuilder
Enclosing interface:
ISyntaxArgDesc

public static interface ISyntaxArgDesc.ISyntaxArgDescBuilder
extends ISyntaxArgDesc

Allows an immutable syntax argument to constructed piece by piece, and then instantiated with an argument to its parent.

Since:
JVerbnet 1.2.0
Version:
1.2.0
Author:
Mark A. Finlayson

Nested Class Summary
 
Nested classes/interfaces inherited from interface edu.mit.jverbnet.data.syntax.ISyntaxArgDesc
ISyntaxArgDesc.ISyntaxArgDescBuilder
 
Method Summary
 ISyntaxArgDesc create(ISyntaxDesc parent)
          Creates a syntax arg descriptor from the information contained in the builder.
 void setNounPhrasetype(INounPhraseType type)
          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 interface edu.mit.jverbnet.data.syntax.ISyntaxArgDesc
getNounPhraseType, getParent, getSelRestrictions, getType, getValue
 

Method Detail

setType

void setType(SyntaxArgType type)
Sets the type of the syntactic argument.

Parameters:
type - the type of the syntactic argument
Since:
JVerbnet 1.2.0

setValue

void setValue(java.lang.String value)
Sets the value of the syntactic argument

Parameters:
value - the value of the syntactic argument
Since:
JVerbnet 1.2.0

setNounPhrasetype

void setNounPhrasetype(INounPhraseType type)
Sets the noun phrase type of the argument. If non-null, this argument also sets the type to SyntaxArgType.NP.

Parameters:
type - the noun phrase type of the argument
Since:
JVerbnet 1.2.0

setSelRestrictions

void setSelRestrictions(ISelRestrictions<? extends IRestrType> restrs)
Sets the selectional restrictions for this argument

Parameters:
restrs - the selectional restrictions for this argument
Since:
JVerbnet 1.2.0

create

ISyntaxArgDesc create(ISyntaxDesc parent)
Creates a syntax arg descriptor from the information contained in the builder. If the builder does not have enough information to construct a complete descriptor, it will thrown an exception.

Parameters:
parent - the parent of the descriptor
Returns:
the new descriptor, if it can be created
Since:
JVerbnet 1.2.0


Copyright © 2012 ${project.organization.name}. All Rights Reserved.