src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/dtd/XMLDTDValidator.java
changeset 47359 e1a6c0168741
parent 47216 71c04702a3d5
child 47712 bde0215f1f70
equal deleted inserted replaced
47358:d07d5f7cab35 47359:e1a6c0168741
     1 /*
     1 /*
     2  * reserved comment block
     2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT REMOVE OR ALTER!
     3  * @LastModified: Oct 2017
     4  */
     4  */
     5 /*
     5 /*
     6  * Licensed to the Apache Software Foundation (ASF) under one or more
     6  * Licensed to the Apache Software Foundation (ASF) under one or more
     7  * contributor license agreements.  See the NOTICE file distributed with
     7  * contributor license agreements.  See the NOTICE file distributed with
     8  * this work for additional information regarding copyright ownership.
     8  * this work for additional information regarding copyright ownership.
  2020             // Check after document is fully parsed
  2020             // Check after document is fully parsed
  2021             // (1) check that there was an element with a matching id for every
  2021             // (1) check that there was an element with a matching id for every
  2022             //   IDREF and IDREFS attr (V_IDREF0)
  2022             //   IDREF and IDREFS attr (V_IDREF0)
  2023             //
  2023             //
  2024             if (fPerformValidation) {
  2024             if (fPerformValidation) {
  2025                 Iterator invIdRefs = fValidationState.checkIDRefID();
  2025                 Iterator<String> invIdRefs = fValidationState.checkIDRefID();
  2026                 if (invIdRefs != null) {
  2026                 if (invIdRefs != null) {
  2027                     while (invIdRefs.hasNext()) {
  2027                     while (invIdRefs.hasNext()) {
  2028                         fErrorReporter.reportError( XMLMessageFormatter.XML_DOMAIN,
  2028                         fErrorReporter.reportError( XMLMessageFormatter.XML_DOMAIN,
  2029                                 "MSG_ELEMENT_WITH_ID_REQUIRED",
  2029                                 "MSG_ELEMENT_WITH_ID_REQUIRED",
  2030                                 new Object[]{invIdRefs.next()},
  2030                                 new Object[]{invIdRefs.next()},