| Package | Description |
|---|---|
| de.tsl2.nano.action |
| Modifier and Type | Method and Description |
|---|---|
<C extends IConstraint<T>> |
IConstraint.setBasicDef(int length,
boolean nullable,
Format format,
T defaultValue)
define some basic attribute definitions
|
<C extends IConstraint<T>> |
IConstraint.setDefault(T defaultValue) |
<C extends IConstraint<T>> |
IConstraint.setFormat(Format format)
define constraining text format. use RegularExpressionFormat to define a regexp pattern
|
<C extends IConstraint<T>> |
IConstraint.setLength(int length)
define maximum length
|
<C extends IConstraint<T>> |
IConstraint.setNullable(boolean nullable)
define nullable
|
<C extends IConstraint<T>> |
IConstraint.setNumberDef(int scale,
int precision)
define number definitions - if the attribute is a number
|
<C extends IConstraint<T>> |
IConstraint.setPrecision(int precision)
define precision
|
<C extends IConstraint<T>> |
IConstraint.setRange(Collection<T> allowedValues)
defines all allowed values - if you call
setRange(Comparable, Comparable), you shouldn't call this
method |
<C extends IConstraint<T>> |
IConstraint.setRange(Comparable<T> min,
Comparable<T> max)
defines a min/max range constraint. use
ValueCompare to compare on changing values |
<C extends IConstraint<T>> |
IConstraint.setScale(int scale)
define scale
|
<C extends IConstraint<T>> |
IConstraint.setType(Class<T> type)
define type
|
| Modifier and Type | Method and Description |
|---|---|
IConstraint<T> |
Parameter.getConstraint() |
| Modifier and Type | Method and Description |
|---|---|
void |
Parameter.setConstraint(IConstraint<T> constraint) |
| Constructor and Description |
|---|
Parameter(String name,
IConstraint<T> constraint,
T value)
constructor
|
Copyright © 2012–2018. All rights reserved.