edu.mit.jverbnet.data.selection
Interface ISelRestrictions<T extends IVerbnetType>

All Known Implementing Classes:
SelRestrictions

public interface ISelRestrictions<T extends IVerbnetType>

Represents a set of selection restrictions. Selection restrictions may operate over any type extending IVerbnetType. However, in the canonical verbnet, they operate only over objects that implement IRestrType.

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

Nested Class Summary
static class ISelRestrictions.Logic
          The two different kinds of combination logic that may be used in a restriction object.
 
Method Summary
 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.
 

Method Detail

getLogic

ISelRestrictions.Logic getLogic()
Returns either null or the logic used to combine subelements of this instance.

Returns:
the logic used to combine subelements of this description.
Since:
JVerbnet 1.0.0

getTypeRestrictions

java.util.Map<T,java.lang.Boolean> getTypeRestrictions()
Returns a map of type restrictions for this instance.

Returns:
a non-null, but possibly empty map of type restrictions for this instance.
Since:
JVerbnet 1.0.0

getSubSelRestrictions

java.util.List<ISelRestrictions<T>> getSubSelRestrictions()
Returns a list of sub restrictions for this instance.

Returns:
a non-null, but possibly empty list of sub restrictions for this instance.
Since:
JVerbnet 1.0.0

isEmpty

boolean isEmpty()
Returns true if this restriction instance is equivalent to the empty restriction instance; namely, it has no restrictions.

Returns:
true if this instance imposes no restrictions
Since:
JVerbnet 1.0.0


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