for (int i = 0; i < childs.length; i++) {
Object o = childs[i];
if (o instanceof XsEInclude) {
XsEInclude xsEInclude = (XsEInclude) o;
XsAnyURI schemaLocation = xsEInclude.getSchemaLocation();
includeSchema(pSyntaxSchema, xsEInclude,
getImportLocator(xsEInclude, pSchemaLocation),
schemaLocation == null ? null : schemaLocation.toString());
} else if (o instanceof XsERedefine) {
redefineSchema(pSyntaxSchema, (XsERedefine) o);
} else if (o instanceof XsEImport) {
XsEImport xsEImport = (XsEImport) o;
XsAnyURI namespace = xsEImport.getNamespace();
XsAnyURI schemaLocation = xsEImport.getSchemaLocation();
importSchema(pSyntaxSchema, namespace == null ? null : namespace.toString(),
schemaLocation == null ? null : schemaLocation.toString(),
getImportLocator(xsEImport, pSchemaLocation));
} else {
add(pSyntaxSchema, childs[i]);
}
}