Class ValidatorUtil
java.lang.Object
org.apache.cxf.tools.validator.internal.ValidatorUtil
-
Method Summary
Modifier and TypeMethodDescriptiongetImportedWsdlMap(Document document, String basePath) Get a map of wsdls imported by the given wsdl.static org.apache.cxf.common.xmlschema.SchemaCollectiongetSchema(javax.wsdl.Definition def) static List<org.apache.cxf.common.xmlschema.SchemaCollection>getSchemaList(Document document, String baseURI) Get a list of schemas found in a wsdl Document.
-
Method Details
-
getSchema
public static org.apache.cxf.common.xmlschema.SchemaCollection getSchema(javax.wsdl.Definition def) -
getSchemaList
public static List<org.apache.cxf.common.xmlschema.SchemaCollection> getSchemaList(Document document, String baseURI) throws IOException, SAXException Get a list of schemas found in a wsdl Document. The list will include any schemas from imported wsdls.- Parameters:
document- The wsdl Document.baseURI- The URI of the wsdl. Allows schemas with relative paths to be resolved.- Returns:
- XmlSchemaCollection list
- Throws:
IOExceptionSAXException
-
getImportedWsdlMap
public static Map<String,Document> getImportedWsdlMap(Document document, String basePath) throws IOException, SAXException Get a map of wsdls imported by the given wsdl. Keys in the map are the imported namespaces. Values are the imported wsdl Documents.- Parameters:
document- The wsdl DocumentbasePath- The path of the wsdl- Returns:
- map of imported wsdls
- Throws:
IOExceptionSAXException
-