@Target(value={FIELD,METHOD}) @Retention(value=RUNTIME) public @interface ConstraintWeight
2soft
,
a constraint match penalization with weightMultiplier 3
will result in a Score
of -6soft
.
It is specified on a getter of a java bean property (or directly on a field) of a ConstraintConfiguration
class.
Modifier and Type | Required Element and Description |
---|---|
String |
value
The constraint name.
|
Modifier and Type | Optional Element and Description |
---|---|
String |
constraintPackage
The constraint package is the namespace of the constraint.
|
public abstract String value
The constraint id is the constraint package
concatenated with "/" and this constraint name.
public abstract String constraintPackage
The constraint id is this constraint package
concatenated with "/" and the constraint name
.
ConstraintConfiguration.constraintPackage()
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.