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; }
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; }