org.apache.cxf.tools.validator.internal
Class ValidatorUtil
java.lang.Object
org.apache.cxf.tools.validator.internal.ValidatorUtil
public final class ValidatorUtil
- extends java.lang.Object
Method Summary |
static java.util.Map<java.lang.String,org.w3c.dom.Document> |
getImportedWsdlMap(org.w3c.dom.Document document,
java.lang.String basePath)
Get a map of wsdls imported by the given wsdl. |
static SchemaCollection |
getSchema(javax.wsdl.Definition def)
|
static java.util.List<SchemaCollection> |
getSchemaList(org.w3c.dom.Document document,
java.lang.String baseURI)
Get a list of schemas found in a wsdl Document. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getSchema
public static SchemaCollection getSchema(javax.wsdl.Definition def)
getSchemaList
public static java.util.List<SchemaCollection> getSchemaList(org.w3c.dom.Document document,
java.lang.String baseURI)
throws java.io.IOException,
org.xml.sax.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:
java.io.IOException
org.xml.sax.SAXException
getImportedWsdlMap
public static java.util.Map<java.lang.String,org.w3c.dom.Document> getImportedWsdlMap(org.w3c.dom.Document document,
java.lang.String basePath)
throws java.io.IOException,
org.xml.sax.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:
java.io.IOException
org.xml.sax.SAXException
Apache CXF