1 16 package org.apache.wsdl.impl; 17 18 import org.apache.wsdl.ExtensibleComponent; 19 import org.apache.wsdl.WSDLFeature; 20 import org.apache.wsdl.WSDLProperty; 21 22 import java.util.LinkedList ; 23 import java.util.List ; 24 25 26 29 public class ExtensibleComponentImpl extends ComponentImpl 30 implements ExtensibleComponent { 31 34 private List features = null; 35 36 39 private List properties = null; 40 41 42 43 50 public void addFeature(WSDLFeature feature) { 51 if (null == this.features) { 52 this.features = new LinkedList (); 53 } 54 if (null == feature) { 55 return; 56 } 57 this.features.add(feature); 58 } 59 60 66 public List getFeatures() { 67 if (null == this.features) { 68 return new LinkedList (); 69 } 70 return this.features; 71 } 72 73 79 public void addProperty(WSDLProperty wsdlProperty) { 80 if (null == this.properties) { 81 this.properties = new LinkedList (); 82 } 83 if (null == wsdlProperty) { 84 return; 85 } 86 this.features.add(wsdlProperty); 87 } 88 89 94 public List getProperties() { 95 if (null == this.properties) { 96 return new LinkedList (); 97 } 98 return this.properties; 99 } 100 101 102 } 103 | Popular Tags |