com.eviware.soapui.impl.wsdl.support.xsd
Class SchemaUtils

java.lang.Object
  extended by com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils

public class SchemaUtils
extends java.lang.Object

XML-Schema related tools

Author:
Ole.Matzura

Constructor Summary
SchemaUtils()
           
 
Method Summary
static org.apache.xmlbeans.SchemaTypeSystem buildSchemaTypes(java.util.List<org.apache.xmlbeans.XmlObject> schemas)
           
static java.util.Collection<java.lang.String> extractNamespaces(org.apache.xmlbeans.SchemaTypeSystem schemaTypes, boolean removeDefault)
          Extracts namespaces - used in tool integrations for mapping..
static java.util.Map<java.lang.String,org.apache.xmlbeans.XmlObject> getDefinitionParts(SchemaLoader loader)
          Returns a map mapping urls to corresponding XmlObjects for the specified wsdlUrl
static void getDefinitionParts(java.lang.String origWsdlUrl, java.util.Map<java.lang.String,org.apache.xmlbeans.XmlObject> existing, SchemaLoader loader)
           
static java.lang.String getDocumentation(org.apache.xmlbeans.SchemaType schemaType)
           
static java.lang.String[] getEnumerationValues(org.apache.xmlbeans.SchemaType schemaType, boolean addNull)
           
static java.util.Collection<? extends javax.xml.namespace.QName> getExcludedTypes()
           
static void getSchemas(java.lang.String wsdlUrl, java.util.Map<java.lang.String,org.apache.xmlbeans.XmlObject> existing, SchemaLoader loader, java.lang.String tns)
          Returns a map mapping urls to corresponding XmlSchema XmlObjects for the specified wsdlUrl
static java.util.Map<java.lang.String,org.apache.xmlbeans.XmlObject> getSchemas(java.lang.String wsdlUrl, SchemaLoader loader)
           
static java.lang.String getTargetNamespace(org.apache.xmlbeans.XmlObject s)
           
static void initDefaultSchemas()
           
static boolean isAnyType(org.apache.xmlbeans.SchemaType schemaType)
           
static boolean isBinaryType(org.apache.xmlbeans.SchemaType schemaType)
           
static boolean isInstanceOf(org.apache.xmlbeans.SchemaType schemaType, org.apache.xmlbeans.SchemaType baseType)
           
static org.apache.xmlbeans.SchemaTypeSystem loadSchemaTypes(java.lang.String wsdlUrl, SchemaLoader loader)
           
static void removeImports(org.apache.xmlbeans.XmlObject xmlObject)
          Used when creating a TypeSystem from a complete collection of SchemaDocuments so that referenced types are not downloaded (again)
static boolean toNextContainer(org.apache.xmlbeans.XmlCursor cursor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaUtils

public SchemaUtils()
Method Detail

initDefaultSchemas

public static void initDefaultSchemas()

loadSchemaTypes

public static org.apache.xmlbeans.SchemaTypeSystem loadSchemaTypes(java.lang.String wsdlUrl,
                                                                   SchemaLoader loader)
                                                            throws SchemaException
Throws:
SchemaException

buildSchemaTypes

public static org.apache.xmlbeans.SchemaTypeSystem buildSchemaTypes(java.util.List<org.apache.xmlbeans.XmlObject> schemas)
                                                             throws SchemaException
Throws:
SchemaException

toNextContainer

public static boolean toNextContainer(org.apache.xmlbeans.XmlCursor cursor)

getTargetNamespace

public static java.lang.String getTargetNamespace(org.apache.xmlbeans.XmlObject s)

getSchemas

public static java.util.Map<java.lang.String,org.apache.xmlbeans.XmlObject> getSchemas(java.lang.String wsdlUrl,
                                                                                       SchemaLoader loader)
                                                                                throws SchemaException
Throws:
SchemaException

getSchemas

public static void getSchemas(java.lang.String wsdlUrl,
                              java.util.Map<java.lang.String,org.apache.xmlbeans.XmlObject> existing,
                              SchemaLoader loader,
                              java.lang.String tns)
                       throws SchemaException
Returns a map mapping urls to corresponding XmlSchema XmlObjects for the specified wsdlUrl

Throws:
SchemaException

getDefinitionParts

public static java.util.Map<java.lang.String,org.apache.xmlbeans.XmlObject> getDefinitionParts(SchemaLoader loader)
                                                                                        throws java.lang.Exception
Returns a map mapping urls to corresponding XmlObjects for the specified wsdlUrl

Throws:
java.lang.Exception

getDefinitionParts

public static void getDefinitionParts(java.lang.String origWsdlUrl,
                                      java.util.Map<java.lang.String,org.apache.xmlbeans.XmlObject> existing,
                                      SchemaLoader loader)
                               throws java.lang.Exception
Throws:
java.lang.Exception

extractNamespaces

public static java.util.Collection<java.lang.String> extractNamespaces(org.apache.xmlbeans.SchemaTypeSystem schemaTypes,
                                                                       boolean removeDefault)
Extracts namespaces - used in tool integrations for mapping..


removeImports

public static void removeImports(org.apache.xmlbeans.XmlObject xmlObject)
                          throws org.apache.xmlbeans.XmlException
Used when creating a TypeSystem from a complete collection of SchemaDocuments so that referenced types are not downloaded (again)

Throws:
org.apache.xmlbeans.XmlException

isInstanceOf

public static boolean isInstanceOf(org.apache.xmlbeans.SchemaType schemaType,
                                   org.apache.xmlbeans.SchemaType baseType)

isBinaryType

public static boolean isBinaryType(org.apache.xmlbeans.SchemaType schemaType)

getDocumentation

public static java.lang.String getDocumentation(org.apache.xmlbeans.SchemaType schemaType)

getEnumerationValues

public static java.lang.String[] getEnumerationValues(org.apache.xmlbeans.SchemaType schemaType,
                                                      boolean addNull)

getExcludedTypes

public static java.util.Collection<? extends javax.xml.namespace.QName> getExcludedTypes()

isAnyType

public static boolean isAnyType(org.apache.xmlbeans.SchemaType schemaType)


Copyright © 2005-2010 eviware.com. All Rights Reserved.