edu.mit.jverbnet.data
Class ThematicRole.ThematicRoleBuilder

java.lang.Object
  extended by edu.mit.jverbnet.data.ThematicRole.ThematicRoleBuilder
All Implemented Interfaces:
IThematicRole, IThematicRole.IThematicRoleBuilder
Enclosing class:
ThematicRole

public static class ThematicRole.ThematicRoleBuilder
extends java.lang.Object
implements IThematicRole.IThematicRoleBuilder

Default implementation of the IThematicRoleBuilder interface.

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
 
Constructor Summary
ThematicRole.ThematicRoleBuilder()
           
 
Method Summary
 ThematicRole create(IVerbClass parent)
          Creates a thematic role from the information contained in the builder.
 ISelRestrictions<SemRestrType> getSelRestrictions()
          Returns the selectional restrictions of this thematic role.
 ThematicRoleType getType()
          Returns the type of this thematic role, never null.
 IVerbClass getVerbClass()
          Returns the verb class to which this thematic role belongs
 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThematicRole.ThematicRoleBuilder

public ThematicRole.ThematicRoleBuilder()
Method Detail

getVerbClass

public IVerbClass getVerbClass()
Description copied from interface: IThematicRole
Returns the verb class to which this thematic role belongs

Specified by:
getVerbClass in interface IThematicRole
Returns:
the verb class to which this thematic role belongs

getType

public ThematicRoleType getType()
Description copied from interface: IThematicRole
Returns the type of this thematic role, never null.

Specified by:
getType in interface IThematicRole
Returns:
the non-null type of this thematic role

getSelRestrictions

public ISelRestrictions<SemRestrType> getSelRestrictions()
Description copied from interface: IThematicRole
Returns the selectional restrictions of this thematic role. Will never be null.

Specified by:
getSelRestrictions in interface IThematicRole
Returns:
the non-null selectional restrictions of this thematic role

setType

public void setType(ThematicRoleType type)
Description copied from interface: IThematicRole.IThematicRoleBuilder
Sets the type for this thematic role.

Specified by:
setType in interface IThematicRole.IThematicRoleBuilder
Parameters:
type - the type for this thematic role

setSelRestrictions

public void setSelRestrictions(ISelRestrictions<SemRestrType> selRestrs)
Description copied from interface: IThematicRole.IThematicRoleBuilder
Sets the selectional restrictions for this thematic role

Specified by:
setSelRestrictions in interface IThematicRole.IThematicRoleBuilder
Parameters:
selRestrs - the selectional restrictions for this thematic role

create

public ThematicRole create(IVerbClass parent)
Description copied from interface: IThematicRole.IThematicRoleBuilder
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.

Specified by:
create in interface IThematicRole.IThematicRoleBuilder
Parameters:
parent - the parent of the thematic role
Returns:
the new thematic role, if it can be created


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