public class InRangeConstraint extends AbstractPropertyConstraint implements Serializable
Constructor and Description |
---|
InRangeConstraint() |
InRangeConstraint(List<String> inRange) |
Modifier and Type | Method and Description |
---|---|
String |
getRangeMaxValue() |
String |
getRangeMinValue() |
void |
initialize(ToscaType propertyType) |
void |
setRangeMaxValue(String maxValue) |
void |
setRangeMinValue(String minValue) |
void |
validate(Object propertyValue) |
validate
public void initialize(ToscaType propertyType) throws ConstraintValueDoNotMatchPropertyTypeException
initialize
in interface PropertyConstraint
ConstraintValueDoNotMatchPropertyTypeException
public void validate(Object propertyValue) throws ConstraintViolationException
validate
in interface PropertyConstraint
ConstraintViolationException
@NotNull public String getRangeMinValue()
public void setRangeMinValue(String minValue)
@NotNull public String getRangeMaxValue()
public void setRangeMaxValue(String maxValue)
Copyright © 2017. All rights reserved.