@Repeatable(value=ConditionOnProperty.List.class) @Documented @Target(value={ANNOTATION_TYPE,FIELD,TYPE,METHOD}) @Retention(value=RUNTIME) public @interface ConditionOnProperty
cn.crane4j.core.condition.ConditionOnPropertyParser| 限定符和类型 | 可选元素和说明 |
|---|---|
boolean |
enableNull
Whether to enable apply operation when the property value is null.
|
String[] |
id
The id of operations which to bound.
|
boolean |
negate
Whether the current condition to be negated.
|
String |
property
The property name.
|
int |
sort
Get the order of the condition.
|
ConditionType |
type
The type of multi conditions.
|
String |
value
The expected property value.
|
Class<?> |
valueType
The type of expected property value.
|
public abstract String[] id
The id of operations which to bound.
If id is empty, the condition applies to all operations
what declared on the same element as annotated by current annotation.
public abstract ConditionType type
public abstract boolean negate
public abstract String property
The property name.
When this annotation is used on a field, the property name is the field name by default.
public abstract String value
public abstract Class<?> valueType
Copyright © 2024. All rights reserved.