public ItemPSVI constant() { if (isConstant()) { return this; } return new ElementPSVImpl(true, this); }
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
public ItemPSVI constant() { return new ElementPSVImpl(true, this); }
Augmentations getEmptyAugs(Augmentations augs) { if (augs == null) { augs = fAugmentations; augs.removeAllItems(); } augs.putItem(Constants.ELEMENT_PSVI, fCurrentPSVI); fCurrentPSVI.reset(); return augs; }
fErrors = (elementPSVIImpl.fErrors != null) ? (String[]) elementPSVIImpl.fErrors.clone() : null; elementPSVIImpl.copySchemaInformationTo(this);
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
private void assertionValidatorEndElementDelegate(QName element) { // initialize augmentation information to be passed to assertions processor Augmentations assertAugs = new AugmentationsImpl(); ElementPSVImpl assertElemPSVI = new ElementPSVImpl(); assertElemPSVI.fDeclaration = fCurrentElemDecl; assertElemPSVI.fTypeDecl = fCurrentType; assertElemPSVI.fNotation = fNotation; assertElemPSVI.fGrammars = fGrammarBucket.getGrammars(); assertAugs.putItem(Constants.ELEMENT_PSVI, assertElemPSVI); assertAugs.putItem(XSAssertConstants.isAssertProcNeededForUnionElem, Boolean.valueOf(fIsAssertProcessingNeededForSTUnionElem)); fAssertionValidator.handleEndElement(element, assertAugs); fFailedAssertions = assertElemPSVI.fFailedAssertions; if (fAugPSVI && fIsAssertProcessingNeededForSTUnionElem) { // update PSVI fValidatedInfo.memberType = assertElemPSVI.fValue.memberType; } fIsAssertProcessingNeededForSTUnionElem = true; } // assertionValidatorEndElementDelegate