1 package com.bm.ejb3metadata.annotations.impl;
2
3 import java.util.ArrayList;
4 import java.util.List;
5
6
7
8
9
10 public abstract class JInterface {
11
12
13
14
15 private List<String> interfaces = null;
16
17
18
19
20 public JInterface() {
21 interfaces = new ArrayList<String>();
22 }
23
24
25
26
27
28 public void addInterface(final String itf) {
29 interfaces.add(itf);
30 }
31
32
33
34
35 public List<String> getInterfaces() {
36 return interfaces;
37 }
38
39
40
41
42
43 public boolean contains(final String itf) {
44 return interfaces.contains(itf);
45 }
46
47
48
49
50 @Override
51 public String toString() {
52 StringBuilder sb = new StringBuilder();
53
54 sb.append(this.getClass().getName().substring(this.getClass().getPackage().getName().length() + 1));
55
56
57 sb.append(interfaces);
58 return sb.toString();
59 }
60 }