edu.mit.jverbnet.data.selection
Class SelRestrictions<T extends IVerbnetType>

java.lang.Object
  extended by edu.mit.jverbnet.data.selection.SelRestrictions<T>
Type Parameters:
T - the verbnet type found in this restriction object
All Implemented Interfaces:
ISelRestrictions<T>

public class SelRestrictions<T extends IVerbnetType>
extends java.lang.Object
implements ISelRestrictions<T>

A set of selectional restrictions.

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface edu.mit.jverbnet.data.selection.ISelRestrictions
ISelRestrictions.Logic
 
Constructor Summary
SelRestrictions(ISelRestrictions.Logic logic, java.util.Map<T,java.lang.Boolean> typeRestrs, java.util.List<ISelRestrictions<T>> subRestrs)
          Creates a new set of selectional restrictions with the specified arguments.
 
Method Summary
static
<T extends IVerbnetType>
SelRestrictions<T>
emptyRestrictions()
          Returns the default empty selection restriction object.
 ISelRestrictions.Logic getLogic()
          Returns either null or the logic used to combine subelements of this instance.
 java.util.List<ISelRestrictions<T>> getSubSelRestrictions()
          Returns a list of sub restrictions for this instance.
 java.util.Map<T,java.lang.Boolean> getTypeRestrictions()
          Returns a map of type restrictions for this instance.
 boolean isEmpty()
          Returns true if this restriction instance is equivalent to the empty restriction instance; namely, it has no restrictions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelRestrictions

public SelRestrictions(ISelRestrictions.Logic logic,
                       java.util.Map<T,java.lang.Boolean> typeRestrs,
                       java.util.List<ISelRestrictions<T>> subRestrs)
Creates a new set of selectional restrictions with the specified arguments.

Parameters:
logic - the logic of the restriction; may be null
typeRestrs - the individual type restrictions
subRestrs - the subrestrictions
Since:
JVerbnet 1.0.0
Method Detail

emptyRestrictions

public static <T extends IVerbnetType> SelRestrictions<T> emptyRestrictions()
Returns the default empty selection restriction object.

Returns:
the default empty selection restriction object.
Since:
JVerbnet 1.0.0

getLogic

public ISelRestrictions.Logic getLogic()
Description copied from interface: ISelRestrictions
Returns either null or the logic used to combine subelements of this instance.

Specified by:
getLogic in interface ISelRestrictions<T extends IVerbnetType>
Returns:
the logic used to combine subelements of this description.

getTypeRestrictions

public java.util.Map<T,java.lang.Boolean> getTypeRestrictions()
Description copied from interface: ISelRestrictions
Returns a map of type restrictions for this instance.

Specified by:
getTypeRestrictions in interface ISelRestrictions<T extends IVerbnetType>
Returns:
a non-null, but possibly empty map of type restrictions for this instance.

getSubSelRestrictions

public java.util.List<ISelRestrictions<T>> getSubSelRestrictions()
Description copied from interface: ISelRestrictions
Returns a list of sub restrictions for this instance.

Specified by:
getSubSelRestrictions in interface ISelRestrictions<T extends IVerbnetType>
Returns:
a non-null, but possibly empty list of sub restrictions for this instance.

isEmpty

public boolean isEmpty()
Description copied from interface: ISelRestrictions
Returns true if this restriction instance is equivalent to the empty restriction instance; namely, it has no restrictions.

Specified by:
isEmpty in interface ISelRestrictions<T extends IVerbnetType>
Returns:
true if this instance imposes no restrictions


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