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. |
19 * limitations under the License. |
19 * limitations under the License. |
20 */ |
20 */ |
21 |
21 |
22 package com.sun.org.apache.xerces.internal.jaxp.validation; |
22 package com.sun.org.apache.xerces.internal.jaxp.validation; |
23 |
23 |
24 import java.io.IOException; |
|
25 import java.util.Enumeration; |
|
26 |
|
27 import javax.xml.parsers.DocumentBuilder; |
|
28 import javax.xml.parsers.DocumentBuilderFactory; |
|
29 import javax.xml.parsers.ParserConfigurationException; |
|
30 import javax.xml.transform.Result; |
|
31 import javax.xml.transform.Source; |
|
32 import javax.xml.transform.dom.DOMResult; |
|
33 import javax.xml.transform.dom.DOMSource; |
|
34 |
|
35 import com.sun.org.apache.xerces.internal.impl.Constants; |
24 import com.sun.org.apache.xerces.internal.impl.Constants; |
36 import com.sun.org.apache.xerces.internal.impl.XMLErrorReporter; |
25 import com.sun.org.apache.xerces.internal.impl.XMLErrorReporter; |
37 import com.sun.org.apache.xerces.internal.impl.validation.EntityState; |
26 import com.sun.org.apache.xerces.internal.impl.validation.EntityState; |
38 import com.sun.org.apache.xerces.internal.impl.validation.ValidationManager; |
27 import com.sun.org.apache.xerces.internal.impl.validation.ValidationManager; |
39 import com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator; |
28 import com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator; |
46 import com.sun.org.apache.xerces.internal.xni.NamespaceContext; |
35 import com.sun.org.apache.xerces.internal.xni.NamespaceContext; |
47 import com.sun.org.apache.xerces.internal.xni.QName; |
36 import com.sun.org.apache.xerces.internal.xni.QName; |
48 import com.sun.org.apache.xerces.internal.xni.XMLString; |
37 import com.sun.org.apache.xerces.internal.xni.XMLString; |
49 import com.sun.org.apache.xerces.internal.xni.XNIException; |
38 import com.sun.org.apache.xerces.internal.xni.XNIException; |
50 import com.sun.org.apache.xerces.internal.xni.parser.XMLParseException; |
39 import com.sun.org.apache.xerces.internal.xni.parser.XMLParseException; |
|
40 import java.io.IOException; |
|
41 import java.util.Enumeration; |
|
42 import javax.xml.parsers.DocumentBuilder; |
|
43 import javax.xml.parsers.DocumentBuilderFactory; |
|
44 import javax.xml.parsers.ParserConfigurationException; |
|
45 import javax.xml.transform.Result; |
|
46 import javax.xml.transform.Source; |
|
47 import javax.xml.transform.dom.DOMResult; |
|
48 import javax.xml.transform.dom.DOMSource; |
51 import org.w3c.dom.Attr; |
49 import org.w3c.dom.Attr; |
52 import org.w3c.dom.CDATASection; |
50 import org.w3c.dom.CDATASection; |
53 import org.w3c.dom.Comment; |
51 import org.w3c.dom.Comment; |
54 import org.w3c.dom.Document; |
52 import org.w3c.dom.Document; |
55 import org.w3c.dom.DocumentType; |
53 import org.w3c.dom.DocumentType; |
540 |
538 |
541 public String getDeclaredPrefixAt(int index) { |
539 public String getDeclaredPrefixAt(int index) { |
542 return fNamespaceContext.getDeclaredPrefixAt(index); |
540 return fNamespaceContext.getDeclaredPrefixAt(index); |
543 } |
541 } |
544 |
542 |
545 public Enumeration getAllPrefixes() { |
543 public Enumeration<String> getAllPrefixes() { |
546 return fNamespaceContext.getAllPrefixes(); |
544 return fNamespaceContext.getAllPrefixes(); |
547 } |
545 } |
548 |
546 |
549 public void reset() { |
547 public void reset() { |
550 fDOMContextBuilt = false; |
548 fDOMContextBuilt = false; |