|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mit.jverbnet.data.selection.SelRestrictions<T>
T - the verbnet type found in this restriction objectpublic class SelRestrictions<T extends IVerbnetType>
A set of selectional restrictions.
| 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
|
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 |
|---|
public SelRestrictions(ISelRestrictions.Logic logic,
java.util.Map<T,java.lang.Boolean> typeRestrs,
java.util.List<ISelRestrictions<T>> subRestrs)
logic - the logic of the restriction; may be nulltypeRestrs - the individual type restrictionssubRestrs - the subrestrictions| Method Detail |
|---|
public static <T extends IVerbnetType> SelRestrictions<T> emptyRestrictions()
public ISelRestrictions.Logic getLogic()
ISelRestrictionsnull or the logic used to combine subelements
of this instance.
getLogic in interface ISelRestrictions<T extends IVerbnetType>public java.util.Map<T,java.lang.Boolean> getTypeRestrictions()
ISelRestrictions
getTypeRestrictions in interface ISelRestrictions<T extends IVerbnetType>null, but possibly empty map of type
restrictions for this instance.public java.util.List<ISelRestrictions<T>> getSubSelRestrictions()
ISelRestrictions
getSubSelRestrictions in interface ISelRestrictions<T extends IVerbnetType>null, but possibly empty list of sub
restrictions for this instance.public boolean isEmpty()
ISelRestrictionstrue if this restriction instance is equivalent to
the empty restriction instance; namely, it has no restrictions.
isEmpty in interface ISelRestrictions<T extends IVerbnetType>true if this instance imposes no restrictions
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||