private ElementPSVImpl savePsviInfoWithUntypingOfAssertRoot(ElementPSVI elemPsvi, boolean isSetXsAny) { ElementPSVImpl assertRootPsvi = new ElementPSVImpl(true, elemPsvi); fAssertRootTypeDef = assertRootPsvi.getTypeDefinition(); if (isSetXsAny) { assertRootPsvi.fTypeDecl = new SchemaGrammar.XSAnyType(); ((PSVIElementNSImpl)fCurrentAssertDomNode).setPSVI(assertRootPsvi); } return assertRootPsvi; } // savePsviInfoWithUntypingOfAssertRoot
private List getAssertsForEvaluation(QName element, XMLAttributes attributes) { List assertionList = null; XSTypeDefinition typeDefn = fXmlSchemaValidator.fCurrentPSVI.getTypeDefinition(); if (typeDefn != null) { if (typeDefn.getTypeCategory() == XSTypeDefinition.COMPLEX_TYPE) { // if element's schema type is a "complex type" XSObjectListImpl complexTypeAsserts = getAssertsFromComplexType((XSComplexTypeDefinition) typeDefn, attributes); if (complexTypeAsserts.size() > 0) { assertionList = complexTypeAsserts; } } else { // if element's schema type is a "simple type" assertionList = getAssertsFromSimpleType((XSSimpleTypeDefinition) typeDefn); } } return assertionList; } // getAssertsForEvaluation