1 16 package org.apache.wsdl.impl; 17 18 import org.apache.wsdl.Component; 19 import org.apache.wsdl.WSDLConstants; 20 import org.apache.wsdl.WSDLExtensibilityAttribute; 21 import org.apache.wsdl.WSDLExtensibilityElement; 22 import org.w3c.dom.Document ; 23 24 import java.util.HashMap ; 25 import java.util.LinkedList ; 26 import java.util.List ; 27 28 31 public class ComponentImpl implements WSDLConstants, Component { 32 35 protected HashMap componentProperties = new HashMap (); 36 37 40 protected List elments; 41 42 45 protected Document documentation = null; 46 47 50 private List elements = null; 51 52 56 private List attributes = null; 57 58 63 public Document getDocumentation() { 64 return documentation; 65 } 66 67 73 public void setDocumentation(Document documentation) { 74 this.documentation = documentation; 75 } 76 77 82 public HashMap getComponentProperties() { 83 return componentProperties; 84 } 85 86 91 public void setComponentProperties(HashMap properties) { 92 this.componentProperties = properties; 93 } 94 95 103 public void setComponentProperty(Object key, Object obj) { 104 this.componentProperties.put(key, obj); 105 } 106 107 114 public Object getComponentProperty(Object key) { 115 return this.componentProperties.get(key); 116 } 117 118 123 public void addExtensibilityElement(WSDLExtensibilityElement element) { 124 if (null == this.elements) { 125 this.elements = new LinkedList (); 126 } 127 if (null == element) 128 return; 129 this.elements.add(element); 130 131 } 132 133 138 public List getExtensibilityElements() { 139 if (null == this.elements) { 140 this.elements = new LinkedList (); 141 } 142 return this.elements; 143 } 144 145 150 public void addExtensibleAttributes(WSDLExtensibilityAttribute attribute) { 151 if (null == this.attributes) { 152 this.attributes = new LinkedList (); 153 } 154 if (null == attribute) 155 return; 156 this.attributes.add(attribute); 157 } 158 159 163 public List getExtensibilityAttributes() { 164 if (null == this.attributes) { 165 this.attributes = new LinkedList (); 166 } 167 return this.attributes; 168 } 169 } | Popular Tags |