/** * Create a df service description. * @param name The name. * @param type The type. * @param ownership The ownership. * @param languages The languages. * @param ontologies The ontologies. * @param protocols The protocols. * @param properties The properties. * @return The service description. */ public IDFServiceDescription createDFServiceDescription(String name, String type, String ownership, String[] languages, String[] ontologies, String[] protocols, IProperty[] properties) { DFServiceDescription ret = new DFServiceDescription(name, type, ownership); for(int i=0; languages!=null && i<languages.length; i++) ret.addLanguage(languages[i]); for(int i=0; ontologies!=null && i<ontologies.length; i++) ret.addOntology(ontologies[i]); for(int i=0; protocols!=null && i<protocols.length; i++) ret.addProtocol(protocols[i]); for(int i=0; properties!=null && i<properties.length; i++) ret.addProperty(properties[i]); return ret; }
/** * Create a df service description. * @param name The name. * @param type The type. * @param ownership The ownership. * @param languages The languages. * @param ontologies The ontologies. * @param protocols The protocols. * @param properties The properties. * @return The service description. */ public IDFServiceDescription createDFServiceDescription(String name, String type, String ownership, String[] languages, String[] ontologies, String[] protocols, IProperty[] properties) { DFServiceDescription ret = new DFServiceDescription(name, type, ownership); for(int i=0; languages!=null && i<languages.length; i++) ret.addLanguage(languages[i]); for(int i=0; ontologies!=null && i<ontologies.length; i++) ret.addOntology(ontologies[i]); for(int i=0; protocols!=null && i<protocols.length; i++) ret.addProtocol(protocols[i]); for(int i=0; properties!=null && i<properties.length; i++) ret.addProperty(properties[i]); return ret; }
/** * Create a df service description. * @param name The name. * @param type The type. * @param ownership The ownership. * @param languages The languages. * @param ontologies The ontologies. * @param protocols The protocols. * @param properties The properties. * @return The service description. */ public IDFServiceDescription createDFServiceDescription(String name, String type, String ownership, String[] languages, String[] ontologies, String[] protocols, IProperty[] properties) { DFServiceDescription ret = new DFServiceDescription(name, type, ownership); for(int i=0; languages!=null && i<languages.length; i++) ret.addLanguage(languages[i]); for(int i=0; ontologies!=null && i<ontologies.length; i++) ret.addOntology(ontologies[i]); for(int i=0; protocols!=null && i<protocols.length; i++) ret.addProtocol(protocols[i]); for(int i=0; properties!=null && i<properties.length; i++) ret.addProperty(properties[i]); return ret; }