com.ibm.wsdl.tck.util
Class TCKUtils
java.lang.Object
com.ibm.wsdl.tck.util.TCKUtils
- public class TCKUtils
- extends java.lang.Object
This class implements static utility methods for use by the various
TCK tests.
- Author:
- Matthew J. Duftler (duftler@us.ibm.com)
Method Summary |
static javax.wsdl.extensions.ExtensibilityElement |
createExtension(javax.wsdl.extensions.ExtensionRegistry extReg,
java.lang.Class parentType,
javax.xml.namespace.QName elementType,
java.lang.Class extType)
|
static org.w3c.dom.Document |
getDocument(java.lang.String fileName)
|
static void |
walkDefinition(javax.wsdl.Definition definition)
|
static void |
walkDefinitionWithSchemas(javax.wsdl.Definition definition)
Added for the JWSDL 1.1 Maintenance Release. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TCKUtils
public TCKUtils()
walkDefinition
public static void walkDefinition(javax.wsdl.Definition definition)
throws javax.wsdl.WSDLException
- Throws:
javax.wsdl.WSDLException
walkDefinitionWithSchemas
public static void walkDefinitionWithSchemas(javax.wsdl.Definition definition)
throws javax.wsdl.WSDLException
- Added for the JWSDL 1.1 Maintenance Release.
This method walks a wsdl definition that includes nested xml schemas to
verify that the schema nesting is represented correctly in the object graph.
The numbering used to represent the schema nesting is as follows:
Top-level, inline within TravelCo.wsdl
"schema1"
¦
¦
------------------------------------------------------
¦ ¦ ¦
¦ ¦ ¦
Flight.xsd Hotel.xsd Address.xsd
"schema11" "schema12" "schema13"
¦ ¦
¦ ¦
Address.xsd Address.xsd
"schema111" "schema121"
Note: In the case where a schema does not contain any further nested schemas
JWSDL does not specify whether the getImports(), getIncludes() or
getRedefines() methods should return null or an empty set, so we should
allow for both in these tests.
- Throws:
javax.wsdl.WSDLException
getDocument
public static org.w3c.dom.Document getDocument(java.lang.String fileName)
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
- Throws:
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
createExtension
public static javax.wsdl.extensions.ExtensibilityElement createExtension(javax.wsdl.extensions.ExtensionRegistry extReg,
java.lang.Class parentType,
javax.xml.namespace.QName elementType,
java.lang.Class extType)
Copyright © 2003 IBM. All Rights Reserved.