public class RangeConstraint extends AbstractDataConstraint
Title: Framework Support Library
Description: Defines a Numeric Range Constraint.
double
numbers and included in the range (
[minValue, maxValue]
).
Copyright: Copyright (c) 2011
Company: StreamScape Technologies
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MODEL |
DEFAULT_SERIAL_VERSION_ID
Constructor and Description |
---|
RangeConstraint(java.lang.String name,
java.lang.String description,
java.lang.Object minValue,
java.lang.Object maxValue) |
Modifier and Type | Method and Description |
---|---|
RangeConstraint |
clone()
Clones the object.
|
boolean |
equals(java.lang.Object other) |
java.lang.Object |
getMaxValue() |
java.lang.Object |
getMinValue() |
java.lang.String |
getModel()
Returns a model name of the constraint.
|
RangeConstraintType |
getType()
Returns a type of the range.
|
boolean |
matchesValue(java.lang.Object value)
Checks if the specified value matches the constraint.
|
void |
setBoundaryValues(java.lang.Object minValue,
java.lang.Object maxValue) |
void |
setMaxValue(java.lang.Object value) |
void |
setMinValue(java.lang.Object value) |
getDescription, setDescription
getSerialVersionUID
getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
public static final java.lang.String MODEL
public RangeConstraint(java.lang.String name, java.lang.String description, java.lang.Object minValue, java.lang.Object maxValue) throws EventDispatcherException
EventDispatcherException
public RangeConstraintType getType()
public java.lang.String getModel()
DataConstraint
public boolean matchesValue(java.lang.Object value)
DataConstraint
value
- the value to be checked.true
if the specified value matches the constraint, false
otherwise.public java.lang.Object getMinValue()
public void setMinValue(java.lang.Object value) throws EventDispatcherException
EventDispatcherException
public java.lang.Object getMaxValue()
public void setMaxValue(java.lang.Object value) throws EventDispatcherException
EventDispatcherException
public void setBoundaryValues(java.lang.Object minValue, java.lang.Object maxValue) throws EventDispatcherException
EventDispatcherException
public RangeConstraint clone()
CloneableDataObject
clone
in interface CloneableObject
clone
in class CloneableDataObject
public boolean equals(java.lang.Object other)
equals
in class com.streamscape.sdo.AbstractNamedObject
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.