edu.mit.jverbnet.data
Class Member

java.lang.Object
  extended by edu.mit.jverbnet.data.Member
All Implemented Interfaces:
IMember

public class Member
extends java.lang.Object
implements IMember

Concrete, default implementation of the IMember interface.

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

Nested Class Summary
static class Member.MemberBuilder
          Default implementation of the IMemberBuilder interface.
 
Nested classes/interfaces inherited from interface edu.mit.jverbnet.data.IMember
IMember.IMemberBuilder
 
Constructor Summary
Member(IVerbClass verbCls, java.lang.String name, java.util.Map<IWordnetKey,java.lang.Boolean> keys, java.util.List<java.lang.String> groupings)
          Creates a new member with the specified name, keys, and groupings.
 
Method Summary
 java.util.List<java.lang.String> getGroupings()
          Returns a non-null, but possibly empty, list of Propbank ids.
 java.lang.String getName()
          Returns the name of this member.
 IVerbClass getVerbClass()
          Returns the verb class to which this member belongs
 java.util.Map<IWordnetKey,java.lang.Boolean> getWordnetTypes()
          Returns a non-null, but possibly empty, map of Wordnet types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Member

public Member(IVerbClass verbCls,
              java.lang.String name,
              java.util.Map<IWordnetKey,java.lang.Boolean> keys,
              java.util.List<java.lang.String> groupings)
Creates a new member with the specified name, keys, and groupings. The keys and groupings lists may not contain null, empty strings, or all whitespace strings.

Parameters:
name - the name; may not be null, empty, or all whitespace
keys - the keys map may be null or empty, but may not contain null
groupings - the groupings list may not be null, and may not contain null, empty, or all whitespace Strings
Throws:
java.lang.NullPointerException - if the name is null, or any list element is null
java.lang.IllegalArgumentException - if the name is empty or all whitespace, or the groupings list contains empty or all whitespace Strings
Since:
JVerbnet 1.1.0
Method Detail

getVerbClass

public IVerbClass getVerbClass()
Description copied from interface: IMember
Returns the verb class to which this member belongs

Specified by:
getVerbClass in interface IMember
Returns:
the verb class to which this member belongs

getName

public java.lang.String getName()
Description copied from interface: IMember
Returns the name of this member. Will not be null, empty, or all whitespace.

Specified by:
getName in interface IMember
Returns:
the name of this member

getWordnetTypes

public java.util.Map<IWordnetKey,java.lang.Boolean> getWordnetTypes()
Description copied from interface: IMember
Returns a non-null, but possibly empty, map of Wordnet types. Each wordnet type is mapped to a boolean which indicates if the wordnet key is prefixed with a question mark, '?'.

Specified by:
getWordnetTypes in interface IMember
Returns:
a non-null, but possibly empty, map of Wordnet types to question mark prefixes

getGroupings

public java.util.List<java.lang.String> getGroupings()
Description copied from interface: IMember
Returns a non-null, but possibly empty, list of Propbank ids.

Specified by:
getGroupings in interface IMember
Returns:
a non-null, but possibly empty, list of Propbank ids


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