Debian Codegraph @

resteasy-jaxrs/src/main/java/org/jboss/resteasy/spi/metadata/ResourceClass.java

raw symbols SCIP
1 package org.jboss.resteasy.spi.metadata;
2
3 /**
4 * @author <a href="mailto:[email protected]">Bill Burke</a>
5 * @version $Revision: 1 $
6 */
7 public class ResourceClass
8 {
9 private static final FieldParameter[] EMPTY_FIELD_PARAMS = {};
10 private static final SetterParameter[] EMPTY_SETTER_PARAMETERS = {};
11 private static final ResourceMethod[] EMPTY_RESOURCE_METHODS = {};
12 private static final ResourceLocator[] EMPTY_RESOURCE_LOCATORS = {};
13
14 protected Class<?> clazz;
15 protected FieldParameter[] fields = EMPTY_FIELD_PARAMS;
16 protected SetterParameter[] setters = EMPTY_SETTER_PARAMETERS;
17 protected ResourceMethod[] resourceMethods = EMPTY_RESOURCE_METHODS;
18 protected ResourceLocator[] resourceLocators = EMPTY_RESOURCE_LOCATORS;
19 protected ResourceConstructor constructor; // only one allowed
20 protected String path;
21
22 public ResourceClass(Class<?> clazz, String path)
23 {
24 this.clazz = clazz;
25 this.path = path;
26 }
27
28 public String getPath()
29 {
30 return path;
31 }
32
33 public Class<?> getClazz()
34 {
35 return clazz;
36 }
37
38 public ResourceConstructor getConstructor()
39 {
40 return constructor;
41 }
42
43 public FieldParameter[] getFields()
44 {
45 return fields;
46 }
47
48 public SetterParameter[] getSetters()
49 {
50 return setters;
51 }
52
53 public ResourceMethod[] getResourceMethods()
54 {
55 return resourceMethods;
56 }
57
58 public ResourceLocator[] getResourceLocators()
59 {
60 return resourceLocators;
61 }
62 }