org.kuali.rice.core.api.criteria
Class LessThanOrEqualPredicate

java.lang.Object
  extended by org.kuali.rice.core.api.criteria.AbstractPredicate
      extended by org.kuali.rice.core.api.criteria.LessThanOrEqualPredicate
All Implemented Interfaces:
Serializable, Predicate, PropertyPathPredicate, SingleValuedPredicate, ModelObjectBasic, ModelObjectComplete

public final class LessThanOrEqualPredicate
extends AbstractPredicate
implements SingleValuedPredicate

An immutable predicate which represents a "less than or equal to" statement which is evaluated the CriteriaValue of this predicate.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
for a convenient way to construct this class., Serialized Form

Nested Class Summary
(package private) static class LessThanOrEqualPredicate.Constants
          Defines some internal constants used on this class.
 
Field Summary
private  Collection<Element> _futureElements
           
private  String propertyPath
           
private static long serialVersionUID
           
private  CriteriaValue<?> value
           
 
Constructor Summary
private LessThanOrEqualPredicate()
          Should only be invoked by JAXB.
(package private) LessThanOrEqualPredicate(String propertyPath, CriteriaValue<?> value)
          Constructs a LessThanOrEqualPredicate for the given path and value.
 
Method Summary
 String getPropertyPath()
          Returns the property path for this predicate which represents the portion of the object model to which the predicate applies.
 CriteriaValue<?> getValue()
          Gets the criteria value for this predicate.
 String toString()
          This will return a proper string representation of the Model Object.
 
Methods inherited from class org.kuali.rice.core.api.criteria.AbstractPredicate
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectComplete
equals, hashCode
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

propertyPath

private final String propertyPath

value

private final CriteriaValue<?> value

_futureElements

private final Collection<Element> _futureElements
Constructor Detail

LessThanOrEqualPredicate

private LessThanOrEqualPredicate()
Should only be invoked by JAXB.


LessThanOrEqualPredicate

LessThanOrEqualPredicate(String propertyPath,
                         CriteriaValue<?> value)
Constructs a LessThanOrEqualPredicate for the given path and value. LessThanOrEqualPredicate supports the following CriteriaValue:

Parameters:
propertyPath - the property path for the predicate, must not be null or blank
value - the value to evaluation the path against, must not be null.
Throws:
IllegalArgumentException - if the propertyPath is null or blank
IllegalArgumentException - if the value is null
IllegalArgumentException - if this predicate does not support the given type of CriteriaValue
Method Detail

getPropertyPath

public String getPropertyPath()
Description copied from interface: PropertyPathPredicate
Returns the property path for this predicate which represents the portion of the object model to which the predicate applies.

Specified by:
getPropertyPath in interface PropertyPathPredicate
Returns:
the property path

getValue

public CriteriaValue<?> getValue()
Description copied from interface: SingleValuedPredicate
Gets the criteria value for this predicate.

Specified by:
getValue in interface SingleValuedPredicate
Returns:
the criteria value for this predicate

toString

public String toString()
Description copied from interface: ModelObjectBasic
This will return a proper string representation of the Model Object. All of the fields comprising the "public" api should be represented in the return value.

Specified by:
toString in interface ModelObjectBasic
Specified by:
toString in class AbstractPredicate
Returns:
the string representation


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.