org.apache.wsif.schema
Class Parser

java.lang.Object
  extended by org.apache.wsif.schema.Parser

public class Parser
extends java.lang.Object

A class used for parsing the schema(s) defined in a Definition object. It does not provide full schema parsing. Its main purpose is to help in determining a list off all the types that are defined in schemas either inline in the wsdl document or imported xsd files.

Author:
Owen Burroughs

Constructor Summary
Parser()
           
 
Method Summary
static void getAllSchemaTypes(javax.wsdl.Definition def, java.util.List schemaTypes, javax.wsdl.xml.WSDLLocator loc)
          Populate a List with all the top level SchemaType objects (complexTypes, simpleTypes and elements) generated by parsing the schemas associated with a Definition object
static void getTypeMappings(javax.wsdl.Definition def, java.util.Map table)
          Deprecated. Use getAllSchemaTypes in combination with a WSIFMapper rather than this method
static void getTypeMappings(javax.wsdl.Definition def, java.util.Map table, boolean includeStandardMappings)
          Deprecated. Use getAllSchemaTypes in combination with a WSIFMapper rather than this method
static void getTypeMappings(javax.wsdl.Definition def, java.util.Map table, boolean includeStandardMappings, javax.wsdl.xml.WSDLLocator loc)
          Deprecated. Use getAllSchemaTypes in combination with a WSIFMapper rather than this method
static void getTypeMappings(javax.wsdl.Definition def, java.util.Map table, java.lang.ClassLoader loader)
          Deprecated. Use getAllSchemaTypes in combination with a WSIFMapper rather than this method
static void getTypeMappings(javax.wsdl.Definition def, java.util.Map table, java.lang.ClassLoader loader, boolean includeStandardMappings)
          Deprecated. Use getAllSchemaTypes in combination with a WSIFMapper rather than this method
static void getTypeMappings(javax.wsdl.Definition def, java.util.Map table, javax.wsdl.xml.WSDLLocator loc)
          Deprecated. Use getAllSchemaTypes in combination with a WSIFMapper rather than this method
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser()
Method Detail

getTypeMappings

public static void getTypeMappings(javax.wsdl.Definition def,
                                   java.util.Map table)
                            throws WSIFException
Deprecated. Use getAllSchemaTypes in combination with a WSIFMapper rather than this method

Given a Definition object, populate a Map with all the types defined in the schemas in the definition and their corresponding Java class names.

Parameters:
def - The Definition object representing the wsdl
table - The Map to proulate with xml type -> Java class name (QName -> String) mappings
Throws:
WSIFException

getTypeMappings

public static void getTypeMappings(javax.wsdl.Definition def,
                                   java.util.Map table,
                                   java.lang.ClassLoader loader)
                            throws WSIFException
Deprecated. Use getAllSchemaTypes in combination with a WSIFMapper rather than this method

Given a Definition object, populate a Map with all the types defined in the schemas in the definition and their corresponding Java class names.

Parameters:
def - The Definition object representing the wsdl
table - The Map to proulate with xml type -> Java class name (QName -> String) mappings
loader - A ClassLoader to use in resolving xsd locations
Throws:
WSIFException

getTypeMappings

public static void getTypeMappings(javax.wsdl.Definition def,
                                   java.util.Map table,
                                   java.lang.ClassLoader loader,
                                   boolean includeStandardMappings)
                            throws WSIFException
Deprecated. Use getAllSchemaTypes in combination with a WSIFMapper rather than this method

Given a Definition object, populate a Map with all the types defined in the schemas in the definition and their corresponding Java class names.

Parameters:
def - The Definition object representing the wsdl
table - The Map to proulate with xml type -> Java class name (QName -> String) mappings
loader - A ClassLoader to use in resolving xsd locations
includeStandardMappings - Flag to indicate whether or not standard xsd, soapenc and Apache SOAP mappings should be included in the table
Throws:
WSIFException

getTypeMappings

public static void getTypeMappings(javax.wsdl.Definition def,
                                   java.util.Map table,
                                   javax.wsdl.xml.WSDLLocator loc)
                            throws WSIFException
Deprecated. Use getAllSchemaTypes in combination with a WSIFMapper rather than this method

Given a Definition object, populate a Map with all the types defined in the schemas in the definition and their corresponding Java class names.

Parameters:
def - The Definition object representing the wsdl
table - The Map to proulate with xml type -> Java class name (QName -> String) mappings
loc - WSDLLocator equal or equivalent to that used to locate the original wsdl document
Throws:
WSIFException

getTypeMappings

public static void getTypeMappings(javax.wsdl.Definition def,
                                   java.util.Map table,
                                   boolean includeStandardMappings)
                            throws WSIFException
Deprecated. Use getAllSchemaTypes in combination with a WSIFMapper rather than this method

Given a Definition object, populate a Map with all the types defined in the schemas in the definition and their corresponding Java class names.

Parameters:
def - The Definition object representing the wsdl
table - The Map to proulate with xml type -> Java class name (QName -> String) mappings
includeStandardMappings - Flag to indicate whether or not standard xsd, soapenc and Apache SOAP mappings should be included in the table
Throws:
WSIFException

getTypeMappings

public static void getTypeMappings(javax.wsdl.Definition def,
                                   java.util.Map table,
                                   boolean includeStandardMappings,
                                   javax.wsdl.xml.WSDLLocator loc)
                            throws WSIFException
Deprecated. Use getAllSchemaTypes in combination with a WSIFMapper rather than this method

Given a Definition object, populate a Map with all the types defined in the schemas in the definition and their corresponding Java class names.

Parameters:
def - The Definition object representing the wsdl
table - The Map to proulate with xml type -> Java class name (QName -> String) mappings
includeStandardMappings - Flag to indicate whether or not standard xsd, soapenc and Apache SOAP mappings should be included in the table
loc - WSDLLocator equal or equivalent to that used to locate the original wsdl document
Throws:
WSIFException

getAllSchemaTypes

public static void getAllSchemaTypes(javax.wsdl.Definition def,
                                     java.util.List schemaTypes,
                                     javax.wsdl.xml.WSDLLocator loc)
                              throws WSIFException
Populate a List with all the top level SchemaType objects (complexTypes, simpleTypes and elements) generated by parsing the schemas associated with a Definition object

Parameters:
def - The Definition object representing the wsdl
schemaTypes - The List to proulate with the SchemaType objects
loc - WSDLLocator equal or equivalent to that used to locate the original wsdl document. This is required in order to resolve imported schemas.
Throws:
A - WSIFException is thrown if a problem occurs when parsing the schemas
WSIFException


Copyright ? 2002, 2006 Apache XML Project. All Rights Reserved.