equal
deleted
inserted
replaced
19 * KIND, either express or implied. See the License for the |
19 * KIND, either express or implied. See the License for the |
20 * specific language governing permissions and limitations |
20 * specific language governing permissions and limitations |
21 * under the License. |
21 * under the License. |
22 */ |
22 */ |
23 /* |
23 /* |
24 * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. |
24 * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. |
25 */ |
25 */ |
26 /* |
26 /* |
27 * $Id: ApacheNodeSetData.java 1203890 2011-11-18 22:47:56Z mullan $ |
27 * $Id: ApacheNodeSetData.java 1203890 2011-11-18 22:47:56Z mullan $ |
28 */ |
28 */ |
29 package org.jcp.xml.dsig.internal.dom; |
29 package org.jcp.xml.dsig.internal.dom; |
45 |
45 |
46 public ApacheNodeSetData(XMLSignatureInput xi) { |
46 public ApacheNodeSetData(XMLSignatureInput xi) { |
47 this.xi = xi; |
47 this.xi = xi; |
48 } |
48 } |
49 |
49 |
50 public Iterator iterator() { |
50 public Iterator<Node> iterator() { |
51 // If nodefilters are set, must execute them first to create node-set |
51 // If nodefilters are set, must execute them first to create node-set |
52 if (xi.getNodeFilters() != null && !xi.getNodeFilters().isEmpty()) { |
52 if (xi.getNodeFilters() != null && !xi.getNodeFilters().isEmpty()) { |
53 return Collections.unmodifiableSet |
53 return Collections.unmodifiableSet |
54 (getNodeSet(xi.getNodeFilters())).iterator(); |
54 (getNodeSet(xi.getNodeFilters())).iterator(); |
55 } |
55 } |