| 1 19 package org.sample.registry.model.impl; 20 21 import org.sample.registry.model.RegistryVisitor; 22 import org.sample.registry.model.ServiceProvider; 23 import org.w3c.dom.Element ; 24 25 public class ServiceProviderImpl extends RegistryComponentImpl.Named implements ServiceProvider { 26 27 public ServiceProviderImpl(RegistryModelImpl model, Element e) { 28 super(model, e); 29 } 30 31 public ServiceProviderImpl(RegistryModelImpl model) { 32 this(model, createElementNS(model, RegistryQNames.SERVICE_PROVIDER)); 33 } 34 35 public String getURL() { 36 return getChildElementText(RegistryQNames.URL.getQName()); 37 } 38 39 public void setURL(String url) { 40 setChildElementText(URL_PROPERTY, url, RegistryQNames.URL.getQName()); 41 } 42 43 public void accept(RegistryVisitor visitor) { 44 visitor.visit(this); 45 } 46 } 47 | Popular Tags |