View Javadoc

1    /****************************************************************************
2    * Copyright (c) 2005, 2006, 2007, 2008, 2009 Imola Informatica.
3    * All rights reserved. This program and the accompanying materials
4    * are made available under the terms of the LGPL License v2.1
5    * which accompanies this distribution, and is available at
6    * http://www.gnu.org/licenses/lgpl.html
7    ****************************************************************************/
8   package it.imolinfo.jbi4corba.webservice.generator.bcm;
9   
10  import java.util.ArrayList;
11  import java.util.List;
12  
13  import org.apache.commons.lang.builder.ReflectionToStringBuilder;
14  
15  /**
16   * XXX javadoc.
17   */
18  public class AnnotationValue {
19  
20      public static final int ANNOTATION_VISIT = 0;
21      public static final int ANNOTATION_VISIT_ANNOTATION = 1;
22      public static final int ANNOTATION_VISIT_ARRAY = 2;
23      public static final int ANNOTATION_VISIT_ENUM = 3;
24  
25      public int type;
26      public String name;
27      public String desc;
28      public Object value;
29  
30      List<AnnotationValue> nestedAnnotationValue = new ArrayList<AnnotationValue>();
31  
32      /**
33       * @param type  The type
34       */
35      public AnnotationValue(int type) {
36        this.type = type;
37      }
38  
39      /**
40       * @return  The return
41       */
42      @Override
43      public String toString() {
44        return ReflectionToStringBuilder.toString(this);
45      }
46  }