title: How to add restriction to Annotation?
body: <p>Java annotation</p>
  
  <pre><code>@Retention(RetentionPolicy.RUNTIME)
  @Target(ElementType.TYPE)
  public @interface OneAnnotation{
      String aNumber();        
  }
  </code></pre>
  
  <p>say I wanna only permit those string format which matches("[\d]+"), other string will be "failed" by either a complier error or some other notification.
  Is there any of doing this---add restriction on returned value on annotation's method.</p>
  
  <p>valid:</p>
  
  <pre><code>@OneAnnotation(aNumber = “1234”)
  </code></pre>
  
  <p>invalid:</p>
  
  <pre><code>@OneAnnotation(aNumber = “XXXX”)
  </code></pre>