com.predic8.wsdl.Registry.groovy Maven / Gradle / Ivy
package com.predic8.wsdl
class Registry {
def wsdls = [:]
void add(Definitions definitions) {
if(wsdls[definitions.targetNamespace]) wsdls[definitions.targetNamespace] << definitions
else wsdls[definitions.targetNamespace] = [definitions]
}
List getWsdls(String ns) {
wsdls[ns]
}
List getAllWsdls() {
wsdls.values().flatten().unique()
}
String toString() {
wsdls.toString()
}
}