@Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER}) @Retention(value=RUNTIME) @Documented @Constraint(validatedBy={}) public @interface Pattern
CharSequence
must match the specified regular expression.
The regular expression follows the Java regular expression conventions
see Pattern
.
Accepts CharSequence
. null
elements are considered valid.Modifier and Type | Required Element and Description |
---|---|
Ciąg znaków |
regexp |
Modifier and Type | Optional Element and Description |
---|---|
Pattern.Flag[] |
flags |
Class>[] |
groups |
Ciąg znaków |
message |
Class extends Payload>[] |
payload |
public abstract String regexp
public abstract Pattern.Flag[] flags
Flag
s considered when resolving the regular expressionpublic abstract String message
public abstract Class>[] groups
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.