2362N/A * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * This class provides a DOM-specific implementation of the 0N/A * {@link XMLCryptoContext} interface. It also includes additional 0N/A * methods that are specific to a DOM-based implementation for registering 0N/A * and retrieving elements that contain attributes of type ID. 0N/A * @author Sean Mullan 0N/A * @author JSR 105 Expert Group 0N/A * Default constructor. (For invocation by subclass constructors). 0N/A * This implementation uses an internal {@link HashMap} to get the prefix 0N/A * that the specified URI maps to. It returns the <code>defaultPrefix</code> 0N/A * if it maps to <code>null</code>. 0N/A * @throws NullPointerException {@inheritDoc} 0N/A * This implementation uses an internal {@link HashMap} to map the URI 0N/A * to the specified prefix. 0N/A * @throws NullPointerException {@inheritDoc} 0N/A * @throws IllegalArgumentException {@inheritDoc} 0N/A * This implementation uses an internal {@link HashMap} to get the object 0N/A * that the specified name maps to. 0N/A * @throws NullPointerException {@inheritDoc} 0N/A * This implementation uses an internal {@link HashMap} to map the name 0N/A * to the specified object. 0N/A * @throws NullPointerException {@inheritDoc} 0N/A * Returns the <code>Element</code> with the specified ID attribute value. 0N/A * <p>This implementation uses an internal {@link HashMap} to get the 0N/A * element that the specified attribute value maps to. 0N/A * @param idValue the value of the ID 0N/A * @return the <code>Element</code> with the specified ID attribute value, 0N/A * or <code>null</code> if none. 0N/A * @throws NullPointerException if <code>idValue</code> is <code>null</code> 0N/A * @see #setIdAttributeNS 0N/A * Registers the element's attribute specified by the namespace URI and 0N/A * local name to be of type ID. The attribute must have a non-empty value. 0N/A * <p>This implementation uses an internal {@link HashMap} to map the 0N/A * attribute's value to the specified element. 0N/A * @param element the element 0N/A * @param namespaceURI the namespace URI of the attribute (specify 0N/A * <code>null</code> if not applicable) 0N/A * @param localName the local name of the attribute 0N/A * @throws IllegalArgumentException if <code>localName</code> is not an 0N/A * attribute of the specified element or it does not contain a specific 0N/A * @throws NullPointerException if <code>element</code> or 0N/A * <code>localName</code> is <code>null</code> 0N/A * @see #getElementById 0N/A * Returns a read-only iterator over the set of Id/Element mappings of 0N/A * this <code>DOMCryptoContext</code>. Attempts to modify the set via the 0N/A * {@link Iterator#remove} method throw an 0N/A * <code>UnsupportedOperationException</code>. The mappings are returned 0N/A * in no particular order. Each element in the iteration is represented as a 0N/A * {@link java.util.Map.Entry}. If the <code>DOMCryptoContext</code> is 0N/A * modified while an iteration is in progress, the results of the 0N/A * iteration are undefined. 0N/A * @return a read-only iterator over the set of mappings 0N/A * This implementation uses an internal {@link HashMap} to get the object 0N/A * that the specified key maps to. 0N/A * This implementation uses an internal {@link HashMap} to map the key 0N/A * to the specified object. 0N/A * @throws IllegalArgumentException {@inheritDoc}