1 25 26 package org.objectweb.easybeans.deployment.annotations.impl; 27 28 import java.util.ArrayList ; 29 import java.util.List ; 30 31 35 public abstract class JInterface { 36 37 40 private List <String > interfaces = null; 41 42 45 public JInterface() { 46 interfaces = new ArrayList <String >(); 47 } 48 49 53 public void addInterface(final String itf) { 54 interfaces.add(itf); 55 } 56 57 60 public List <String > getInterfaces() { 61 return interfaces; 62 } 63 64 68 public boolean contains(final String itf) { 69 return interfaces.contains(itf); 70 } 71 72 75 @Override 76 public String toString() { 77 StringBuilder sb = new StringBuilder (); 78 sb.append(this.getClass().getName().substring(this.getClass().getPackage().getName().length() + 1)); 80 81 sb.append(interfaces); 83 return sb.toString(); 84 } 85 } 86 | Popular Tags |