1 28 29 package com.caucho.soap.wsdl; 30 31 import javax.xml.bind.annotation.XmlAccessType; 32 import javax.xml.bind.annotation.XmlAccessorType; 33 import javax.xml.bind.annotation.XmlAnyAttribute; 34 import javax.xml.namespace.QName ; 35 import java.util.HashMap ; 36 import java.util.Map ; 37 38 41 @XmlAccessorType(XmlAccessType.FIELD) 42 public abstract class WSDLExtensibleAttributeDocumented { 43 @XmlAnyAttribute 44 private Map <QName ,Object > _attributes; 45 46 public Map <QName ,Object > getAttributes() 47 { 48 return _attributes; 49 } 50 51 public void putAttribute(QName key, Object value) 52 { 53 if (_attributes == null) 54 _attributes = new HashMap <QName ,Object >(); 55 56 _attributes.put(key, value); 57 } 58 } 59 | Popular Tags |