1 57 58 package org.apache.wsif.schema; 59 60 import java.io.Serializable ; 61 import java.util.Hashtable ; 62 63 import javax.xml.namespace.QName ; 64 65 import org.w3c.dom.Element ; 66 67 72 public class Attribute implements Serializable { 73 74 static final long serialVersionUID = 1L; 75 76 Hashtable attributes = new Hashtable (); 77 78 82 Attribute(Element el, String tns) { 83 SchemaType.getAllAttributes(el, null, attributes); 84 } 85 86 91 QName getXMLAttribute(String name) { 92 return (QName ) attributes.get(new QName (name)); 93 } 94 95 101 QName getXMLAttribute(QName name) { 102 return (QName ) attributes.get(name); 103 } 104 } 105 | Popular Tags |