1 22 package org.jboss.metadata; 23 24 import org.w3c.dom.Element ; 25 26 import org.jboss.deployment.DeploymentException; 27 28 44 public class SecurityRoleRefMetaData extends MetaData 45 { 46 48 private String name; 50 51 private String link; 52 53 private String description; 54 55 57 public SecurityRoleRefMetaData() 59 { 60 } 61 62 64 public String getDescription() 65 { 66 return description; 67 } 68 69 public void setDescription(String description) 70 { 71 this.description = description; 72 } 73 74 public String getLink() 75 { 76 return link; 77 } 78 79 public void setLink(String link) 80 { 81 this.link = link; 82 } 83 84 public String getName() 85 { 86 return name; 87 } 88 89 public void setName(String name) 90 { 91 this.name = name; 92 } 93 94 public void importEjbJarXml(Element element) throws DeploymentException 95 { 96 name = getElementContent(getUniqueChild(element, "role-name")); 97 link = getElementContent(getOptionalChild(element, "role-link")); 98 description = getElementContent(getOptionalChild(element, "description")); 99 } 100 101 } 102 | Popular Tags |