edu.mit.jverbnet.data
Interface IThematicRole.IThematicRoleBuilder

All Superinterfaces:
IThematicRole
All Known Implementing Classes:
ThematicRole.ThematicRoleBuilder
Enclosing interface:
IThematicRole

public static interface IThematicRole.IThematicRoleBuilder
extends IThematicRole

An object allows an immutable member object to built up and then created.

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface edu.mit.jverbnet.data.IThematicRole
IThematicRole.IThematicRoleBuilder
 
Method Summary
 IThematicRole create(IVerbClass parent)
          Creates a thematic role from the information contained in the builder.
 void setSelRestrictions(ISelRestrictions<SemRestrType> selRestrs)
          Sets the selectional restrictions for this thematic role
 void setType(ThematicRoleType type)
          Sets the type for this thematic role.
 
Methods inherited from interface edu.mit.jverbnet.data.IThematicRole
getSelRestrictions, getType, getVerbClass
 

Method Detail

setType

void setType(ThematicRoleType type)
Sets the type for this thematic role.

Parameters:
type - the type for this thematic role
Since:
JVerbnet 1.0.0

setSelRestrictions

void setSelRestrictions(ISelRestrictions<SemRestrType> selRestrs)
Sets the selectional restrictions for this thematic role

Parameters:
selRestrs - the selectional restrictions for this thematic role
Since:
JVerbnet 1.0.0

create

IThematicRole create(IVerbClass parent)
Creates a thematic role from the information contained in the builder. If the builder does not have enough information to construct a complete thematic role, will thrown an exception.

Parameters:
parent - the parent of the thematic role
Returns:
the new thematic role, if it can be created
Since:
JVerbnet 1.0.0


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