edu.mit.jverbnet.data.semantics
Class PredicateDesc

java.lang.Object
  extended by edu.mit.jverbnet.data.semantics.PredicateDesc
All Implemented Interfaces:
IPredicateDesc

public class PredicateDesc
extends java.lang.Object
implements IPredicateDesc

Default implementation of IPredicateDesc.

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

Constructor Summary
PredicateDesc(PredicateType value, boolean bool, java.util.List<ISemanticArgType> argTypes)
          Creates a new predicate description with the specified parameters
 
Method Summary
 java.util.List<ISemanticArgType> getArgumentTypes()
          Returns a list of semantic arguments, which will never be null, never contain null, and will always have at least one element.
 boolean getBool()
          Returns the boolean value of this predicate.
 PredicateType getValue()
          The type of the predicate.
 java.lang.String toString()
           
static java.lang.String toString(IPredicateDesc pred)
          Produces a standard string format for a predicate descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PredicateDesc

public PredicateDesc(PredicateType value,
                     boolean bool,
                     java.util.List<ISemanticArgType> argTypes)
Creates a new predicate description with the specified parameters

Parameters:
value - the type of this predicate
bool - the boolean value for this predicate
argTypes - may not be null, may not contain null, and must have at least one element
Since:
JVerbnet 1.0.0
Method Detail

getValue

public PredicateType getValue()
Description copied from interface: IPredicateDesc
The type of the predicate. Will never return null.

Specified by:
getValue in interface IPredicateDesc
Returns:
the non-null type of the predicate

getBool

public boolean getBool()
Description copied from interface: IPredicateDesc
Returns the boolean value of this predicate.

Specified by:
getBool in interface IPredicateDesc
Returns:
the boolean value of this predicate

getArgumentTypes

public java.util.List<ISemanticArgType> getArgumentTypes()
Description copied from interface: IPredicateDesc
Returns a list of semantic arguments, which will never be null, never contain null, and will always have at least one element.

Specified by:
getArgumentTypes in interface IPredicateDesc
Returns:
the list of semantic arguments

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public static java.lang.String toString(IPredicateDesc pred)
Produces a standard string format for a predicate descriptor.

Parameters:
pred - the predicate for which the string should be constructed
Returns:
the string representing the predicate
Throws:
java.lang.NullPointerException - if the specified predicate is null
Since:
JVerbnet 1.2.0


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