/** * Construct "unresolved" URL: service.getBase() + getUrlPath() + service.getSuffix(). * It is not resolved, so it may be a reletive URL. * @return Unresolved Url as a String */ public String getUnresolvedUrlName() { return service.getBase() + getUrlPath() + service.getSuffix(); }
/** * Construct "unresolved" URL: service.getBase() + getUrlPath() + service.getSuffix(). * It is not resolved, so it may be a reletive URL. * @return Unresolved Url as a String */ public String getUnresolvedUrlName() { return service.getBase() + getUrlPath() + service.getSuffix(); }
/** * Construct "unresolved" URL: service.getBase() + getUrlPath() + service.getSuffix(). * It is not resolved, so it may be a reletive URL. * @return Unresolved Url as a String */ public String getUnresolvedUrlName() { return service.getBase() + getUrlPath() + service.getSuffix(); }
/** * Override Object.hashCode() to implement equals. */ public int hashCode() { if (hashCode == 0) { int result = 17; result = 37 * result + getName().hashCode(); result = 37 * result + getBase().hashCode(); result = 37 * result + getServiceType().hashCode(); if (null != getSuffix()) result = 37 * result + getSuffix().hashCode(); result = 37 * result + getProperties().hashCode(); result = 37 * result + nestedServices.hashCode(); hashCode = result; } return hashCode; }
/** * Override Object.hashCode() to implement equals. */ public int hashCode() { if (hashCode == 0) { int result = 17; result = 37 * result + getName().hashCode(); result = 37 * result + getBase().hashCode(); result = 37 * result + getServiceType().hashCode(); if (null != getSuffix()) result = 37 * result + getSuffix().hashCode(); result = 37 * result + getProperties().hashCode(); result = 37 * result + nestedServices.hashCode(); hashCode = result; } return hashCode; }
private Element writeService( InvService service) { Element serviceElem = new Element("service", defNS); serviceElem.setAttribute("name", service.getName()); serviceElem.setAttribute("serviceType", service.getServiceType().toString()); serviceElem.setAttribute("base", service.getBase()); if ((service.getSuffix() != null) && (service.getSuffix().length() > 0)) serviceElem.setAttribute("suffix", service.getSuffix()); // properties Iterator props = service.getProperties().iterator(); while ( props.hasNext()) { InvProperty p = (InvProperty) props.next(); serviceElem.addContent( writeProperty( p)); } // services Iterator services = service.getServices().iterator(); while ( services.hasNext()) { InvService nested = (InvService) services.next(); serviceElem.addContent( writeService( nested)); } // dataset roots if (raw) { Iterator iter = service.getDatasetRoots().iterator(); while ( iter.hasNext()) { InvProperty p = (InvProperty) iter.next(); serviceElem.addContent( writeDatasetRoot( p)); } } return serviceElem; }
public ResultService( InvService service, String accessPointHeader) { super( service.getName(), service.getServiceType().toString(), service.getBase(), service.getSuffix(), service.getDescription()); for ( Iterator it = service.getProperties().iterator(); it.hasNext(); ) { InvProperty prop = (InvProperty) it.next(); addProperty( new InvProperty( prop.getName(), prop.getValue())); // LOOK JC changed } if ( service.getServiceType() == ServiceType.COMPOUND) { for ( Iterator it = service.getServices().iterator(); it.hasNext(); ) { addService( (InvService) it.next() ); // LOOK JC changed } } this.accessPointHeader = accessPointHeader; }
public ResultService( InvService service, String accessPointHeader) { super( service.getName(), service.getServiceType().toString(), service.getBase(), service.getSuffix(), service.getDescription()); for ( Iterator it = service.getProperties().iterator(); it.hasNext(); ) { InvProperty prop = (InvProperty) it.next(); addProperty( new InvProperty( prop.getName(), prop.getValue())); // LOOK JC changed } if ( service.getServiceType() == ServiceType.COMPOUND) { for ( Iterator it = service.getServices().iterator(); it.hasNext(); ) { addService( (InvService) it.next() ); // LOOK JC changed } } this.accessPointHeader = accessPointHeader; }
public ResultService( InvService service, String accessPointHeader) { super( service.getName(), service.getServiceType().toString(), service.getBase(), service.getSuffix(), service.getDescription()); for ( Iterator it = service.getProperties().iterator(); it.hasNext(); ) { InvProperty prop = (InvProperty) it.next(); addProperty( new InvProperty( prop.getName(), prop.getValue())); // LOOK JC changed } if ( service.getServiceType() == ServiceType.COMPOUND) { for ( Iterator it = service.getServices().iterator(); it.hasNext(); ) { addService( (InvService) it.next() ); // LOOK JC changed } } this.accessPointHeader = accessPointHeader; }
private Element writeService(InvService service) { Element serviceElem = new Element("service", defNS); serviceElem.setAttribute("name", service.getName()); serviceElem.setAttribute("serviceType", service.getServiceType().toString()); serviceElem.setAttribute("base", service.getBase()); if ((service.getSuffix() != null) && (service.getSuffix().length() > 0)) serviceElem.setAttribute("suffix", service.getSuffix()); // properties for (InvProperty p : service.getProperties()) { serviceElem.addContent(writeProperty(p)); } // services for (InvService nested : service.getServices()) { serviceElem.addContent(writeService(nested)); } // dataset roots if (raw) { for (InvProperty p : service.getDatasetRoots()) { serviceElem.addContent(writeDatasetRoot(p)); } } return serviceElem; }
private Element writeService(InvService service) { Element serviceElem = new Element("service", defNS); serviceElem.setAttribute("name", service.getName()); serviceElem.setAttribute("serviceType", service.getServiceType().toString()); serviceElem.setAttribute("base", service.getBase()); if ((service.getSuffix() != null) && (service.getSuffix().length() > 0)) serviceElem.setAttribute("suffix", service.getSuffix()); // properties for (InvProperty p : service.getProperties()) { serviceElem.addContent(writeProperty(p)); } // services for (InvService nested : service.getServices()) { serviceElem.addContent(writeService(nested)); } // dataset roots if (raw) { for (InvProperty p : service.getDatasetRoots()) { serviceElem.addContent(writeDatasetRoot(p)); } } return serviceElem; }
public static InvService copyService( InvService service ) { if ( service == null ) throw new IllegalArgumentException( "Service may not be null."); InvService resultService = new InvService( service.getName(), service.getServiceType().toString(), service.getBase(), service.getSuffix(), service.getDescription() ); for ( InvService curService : service.getServices()) { resultService.addService( copyService( curService ) ); } for ( InvProperty curProperty : service.getProperties()) { resultService.addProperty( copyProperty( curProperty ) ); } for ( InvProperty curDatasetRoot : service.getDatasetRoots()) { resultService.addDatasetRoot( copyProperty( curDatasetRoot) ); } return resultService; }
public static InvService copyService( InvService service ) { if ( service == null ) throw new IllegalArgumentException( "Service may not be null."); InvService resultService = new InvService( service.getName(), service.getServiceType().toString(), service.getBase(), service.getSuffix(), service.getDescription() ); for ( InvService curService : service.getServices()) { resultService.addService( copyService( curService ) ); } for ( InvProperty curProperty : service.getProperties()) { resultService.addProperty( copyProperty( curProperty ) ); } for ( InvProperty curDatasetRoot : service.getDatasetRoots()) { resultService.addDatasetRoot( copyProperty( curDatasetRoot) ); } return resultService; }
public static InvService copyService( InvService service ) { if ( service == null ) throw new IllegalArgumentException( "Service may not be null."); InvService resultService = new InvService( service.getName(), service.getServiceType().toString(), service.getBase(), service.getSuffix(), service.getDescription() ); for ( InvService curService : service.getServices()) { resultService.addService( copyService( curService ) ); } for ( InvProperty curProperty : service.getProperties()) { resultService.addProperty( copyProperty( curProperty ) ); } for ( InvProperty curDatasetRoot : service.getDatasetRoots()) { resultService.addDatasetRoot( copyProperty( curDatasetRoot) ); } return resultService; }