public class JSR303DemoModel extends Object
Constructor and Description |
---|
JSR303DemoModel() |
Modifier and Type | Method and Description |
---|---|
Integer |
getMaximum()
Gets the integer with a maximum value constraint.
|
Integer |
getMinimum()
Gets the integer with a minimum value constraint.
|
String |
getText()
Gets the text.
|
void |
setMaximum(Integer maximum)
Sets the integer with a maximum value constraint.
|
void |
setMinimum(Integer minimum)
Sets the integer with a minimum value constraint.
|
void |
setText(String text)
Sets the text.
|
@Min(value=1L) @NotNull public Integer getMinimum()
public void setMinimum(Integer minimum)
minimum
- The value for the integer with a minimum value constraint.@Max(value=10L) @NotNull public Integer getMaximum()
public void setMaximum(Integer maximum)
maximum
- The value for the integer with a maximum value constraint.public String getText()
public void setText(String text)
text
- The text to set.Copyright © 2008–2018. All rights reserved.