Top Description Inners Methods
javax.annotation

public @Interface MatchesPattern

extends Annotation
Annotations
@Documented
@TypeQualifier
applicableTo:String
@Retention:RUNTIME
Imports
java.lang.annotation.Documented, .Retention, .RetentionPolicy, java.util.regex.Pattern, javax.annotation.meta.TypeQualifier, .TypeQualifierValidator, .When

This annotation is used to denote String values that should always match given pattern.

When this annotation is applied to a method it applies to the method return value.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Method Summary

Modifier and TypeMethod and Description
public int
public String
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

flagsback to summary
public int flags()
valueback to summary
public String value()
Annotations
@RegEx
javax.annotation back to summary

public Class MatchesPattern.Checker

extends Object
implements TypeQualifierValidator<MatchesPattern>
Class Inheritance
All Implemented Interfaces
javax.annotation.meta.TypeQualifierValidator

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public When
forConstantValue(MatchesPattern
the type qualifier
annotation
,
Object
the value to check
value
)

Implements javax.annotation.meta.TypeQualifierValidator.forConstantValue.

Given a type qualifier, check to see if a known specific constant value is an instance of the set of values denoted by the qualifier.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Checkerback to summary
public Checker()

Method Detail

forConstantValueback to summary
public When forConstantValue(MatchesPattern annotation, Object value)

Implements javax.annotation.meta.TypeQualifierValidator.forConstantValue.

Doc from javax.annotation.meta.TypeQualifierValidator.forConstantValue.

Given a type qualifier, check to see if a known specific constant value is an instance of the set of values denoted by the qualifier.

Parameters
annotation:MatchesPattern

the type qualifier

value:Object

the value to check

Returns:When

a value indicating whether or not the value is an member of the values denoted by the type qualifier