/* INLINE SCHEMA VALIDATOR */
if (definitions != null
&& definitions.getTypes() != null
&& definitions.getTypes().getExtensibilityElements() != null)
{
InlineSchemaValidator schemaValidator = new InlineSchemaValidator();
// Collecting schema's parent elements
List parents = new ArrayList(2);
parents.add(definitions.getTypes());
parents.add(definitions);
// Going through all the ExtensibilityElementS of wsdl:types
// since they are potential schemas
// See Java APIs for WSDL V1.0 (JSR110), section 4
Iterator i = this.definitions.getTypes().getExtensibilityElements().iterator();
while (i.hasNext())
{
ExtensibilityElement extEl = (ExtensibilityElement) i.next();
if (extEl.getElementType().equals(XMLTags.ELEM_XSD_SCHEMA))
{
Map map = null;
try
{
// Validating schema element
map = schemaValidator.validate(extEl, parents, fileName);
}
catch (Exception e)
{
// Adding an exception to the errors list
schemasValidationErrors.add(e.getMessage());