286N/A * reserved comment block 286N/A * DO NOT REMOVE OR ALTER! 286N/A * Copyright 2002,2004 The Apache Software Foundation. 286N/A * Licensed under the Apache License, Version 2.0 (the "License"); 286N/A * you may not use this file except in compliance with the License. 286N/A * You may obtain a copy of the License at 286N/A * Unless required by applicable law or agreed to in writing, software 286N/A * distributed under the License is distributed on an "AS IS" BASIS, 286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 286N/A * See the License for the specific language governing permissions and 286N/A * limitations under the License. 286N/A * Containts the map between qnames and XSObject's. 286N/A * @author Sandy Gao, IBM 286N/A * An immutable empty map. 286N/A // components of these namespaces are stored in this map 286N/A // number of namespaces 286N/A // each entry contains components in one namespace 286N/A // store all components from all namespace. 286N/A // used when this map is accessed as a list. 286N/A // store the number of components. 286N/A // used when this map is accessed as a list. 286N/A // Set of Map.Entry<QName,XSObject> for the java.util.Map methods 286N/A * Construct an XSNamedMap implementation for one namespace 286N/A * @param namespace the namespace to which the components belong 286N/A * @param map the map from local names to components 286N/A * Construct an XSNamedMap implementation for a list of namespaces 286N/A * @param namespaces the namespaces to which the components belong 286N/A * @param maps the maps from local names to components 286N/A * @param num the number of namespaces 286N/A * Construct an XSNamedMap implementation one namespace from an array 286N/A * @param array containing all components 286N/A * @param length number of components 286N/A // because all components are from the same target namesapce, 286N/A // get the namespace from the first one. 286N/A // copy elements to the Vector 286N/A * The number of <code>XSObjects</code> in the <code>XSObjectList</code>. 286N/A * The range of valid child object indices is 0 to <code>length-1</code> 286N/A * Retrieves an <code>XSObject</code> specified by local name and 286N/A * <br>Per XML Namespaces, applications must use the value <code>null</code> as the 286N/A * <code>namespace</code> parameter for methods if they wish to specify 286N/A * @param namespace The namespace URI of the <code>XSObject</code> to 286N/A * retrieve, or <code>null</code> if the <code>XSObject</code> has no 286N/A * @param localName The local name of the <code>XSObject</code> to 286N/A * @return A <code>XSObject</code> (of any type) with the specified local 286N/A * name and namespace URI, or <code>null</code> if they do not 286N/A * identify any object in this map. 286N/A // when this map is created from SymbolHash's 286N/A // get the component from SymbolHash 286N/A // Otherwise (it's created from an array) 286N/A // go through the array to find a matching name 286N/A * Returns the <code>index</code>th item in the collection or 286N/A * <code>null</code> if <code>index</code> is greater than or equal to 286N/A * the number of objects in the list. The index starts at 0. 286N/A * @param index index into the collection. 286N/A * @return The <code>XSObject</code> at the <code>index</code>th 286N/A * position in the <code>XSObjectList</code>, or <code>null</code> if 286N/A * the index specified is not valid. 286N/A // calculate the total number of elements 286N/A // get components from all SymbolHashes 286N/A * java.util.Map methods 286N/A // Defer creation of the entry set until it is actually needed. 286N/A // Create a view of this immutable map. 286N/A /** An entry in the XSNamedMap. **/ 286N/A}
// class XSNamedMapImpl