JBoss Logging I18n Annotation Processor 1.1.0.Final

org.jboss.logging.annotations
Annotation Type ValidIdRange


@Target(value=TYPE)
@Retention(value=CLASS)
@Documented
public @interface ValidIdRange

Sets a range of valid id's allowed on the message id. Both Message.INHERIT and Message.NONE are ignored when validating.

          @MessageLogger(projectCode = "EXAMPLE")
          @ValidIdRange(min = 100, max = 200)
          public interface ExampleLogger {

              @LogMessage
              @Message(id = 100, value = "Example message")
              void example();
          }
 

Author:
James R. Perkins

Optional Element Summary
 int max
          The maximum id allowed in the message id.
 int min
          The minimum id allowed in the message id.
 

min

public abstract int min
The minimum id allowed in the message id. Both Message.INHERIT and Message.NONE are ignored when validating.

Returns:
the minimum id allowed
Default:
1

max

public abstract int max
The maximum id allowed in the message id. Both Message.INHERIT and Message.NONE are ignored when validating.

Returns:
the maximum id allowed
Default:
999999

JBoss Logging I18n Annotation Processor 1.1.0.Final

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.