Top Description Inners Methods
org.hibernate.validator.constraints.ru

public @Interface INN

extends Annotation
Annotations
@Documented
@Constraint
validatedBy:
@Target:METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE
@Retention:RUNTIME
@Repeatable:List
@ReportAsSingleViolation
Static Imports
java.lang.annotation.ElementType.ANNOTATION_TYPE, .ElementType.CONSTRUCTOR, .ElementType.FIELD, .ElementType.METHOD, .ElementType.PARAMETER, .ElementType.TYPE_USE, .RetentionPolicy.RUNTIME

Checks that the annotated character sequence is a valid russian taxpayer identification number (INN in russian transliteration).
Author
Artem Boiarshinov
See Also
russian taxpayer identification number

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static @interface
INN.List

Defines several @INN annotations on the same element.

public static enum
INN.Type

Defines the INN length.

Method Summary

Modifier and TypeMethod and Description
public Class<?>[]
public String
public Class<? extends Payload>[]
public INN.Type
type()

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

groupsback to summary
public Class<?>[] groups()
messageback to summary
public String message()
payloadback to summary
public Class<? extends Payload>[] payload()
typeback to summary
public INN.Type type()
org.hibernate.validator.constraints.ru back to summary

public @Interface INN.List

extends Annotation
Annotations
@Target:METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE
@Retention:RUNTIME
@Documented

Defines several @INN annotations on the same element.

Method Summary

Modifier and TypeMethod and Description
public INN[]
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public INN[] value()
org.hibernate.validator.constraints.ru back to summary

public final Enum INN.Type

extends Enum<INN.Type>
Class Inheritance

Defines the INN length. Valid lengths of INN are 12 for individual usage and 10 for juridical which are represented as INN.Type#INDIVIDUAL and INN.Type#JURIDICAL respectively.

Using INN.Type#ANY allows to validate values that could either be personal or juridical. In such case, INN type would be determined by the length of the corresponding value.

Field Summary

Modifier and TypeField and Description
public static final INN.Type
public static final INN.Type
public static final INN.Type

Constructor Summary

AccessConstructor and Description
private
Type()

Method Summary

Modifier and TypeMethod and Description
public static INN.Type
public static INN.Type[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ANYback to summary
public static final INN.Type ANY
INDIVIDUALback to summary
public static final INN.Type INDIVIDUAL
JURIDICALback to summary
public static final INN.Type JURIDICAL

Constructor Detail

Typeback to summary
private Type()

Method Detail

valueOfback to summary
public static INN.Type valueOf(String name)
valuesback to summary
public static INN.Type[] values()