1 22 package org.jboss.ejb3.metamodel; 23 24 import java.util.Collection ; 25 import java.util.HashSet ; 26 27 import org.jboss.metamodel.descriptor.InjectionTarget; 28 import org.jboss.metamodel.descriptor.NameValuePair; 29 30 31 36 public class XmlAnnotation 37 { 38 private InjectionTarget injectionTarget = null; 39 private String annotationClass = null; 40 private String annotationImplementationClass = null; 41 private Collection <NameValuePair> properties = new HashSet <NameValuePair>(); 42 43 public Collection <NameValuePair> getProperties() 44 { 45 return properties; 46 } 47 48 public void addProperty(NameValuePair property) 49 { 50 properties.add(property); 51 } 52 53 public String getAnnotationClass() 54 { 55 return annotationClass; 56 } 57 58 public void setAnnotationClass(String annotationClass) 59 { 60 this.annotationClass = annotationClass; 61 } 62 63 public String getAnnotationImplementationClass() 64 { 65 return annotationImplementationClass; 66 } 67 68 public void setAnnotationImplementationClass(String annotationImplementationClass) 69 { 70 this.annotationImplementationClass = annotationImplementationClass; 71 } 72 73 public InjectionTarget getInjectionTarget() 74 { 75 return injectionTarget; 76 } 77 78 public void setInjectionTarget(InjectionTarget injectionTarget) 79 { 80 this.injectionTarget = injectionTarget; 81 } 82 83 public String toString() 84 { 85 StringBuffer sb = new StringBuffer (100); 86 sb.append("["); 87 sb.append("annotationClass=").append(annotationClass); 88 sb.append(", injectionTarget=").append(injectionTarget); 89 sb.append("]"); 90 return sb.toString(); 91 } 92 93 } 94 | Popular Tags |