/** * {identity-constraint definitions} A set of constraint definitions. */ public XSNamedMap getIdentityConstraints() { return new XSNamedMapImpl(fIDConstraints, fIDCPos); }
public boolean containsKey(Object key) { return (get(key) != null); }
public int size() { return getLength(); }
if (isEqual(namespace, fNamespaces[i])) {
public Object get(Object key) { if (key instanceof QName) { final QName name = (QName) key; String namespaceURI = name.getNamespaceURI(); if (XMLConstants.NULL_NS_URI.equals(namespaceURI)) { namespaceURI = null; } String localPart = name.getLocalPart(); return itemByName(namespaceURI, localPart); } return null; }
fGlobalComponents[objectType] = new XSNamedMapImpl(fNamespaces, tables, fGrammarCount);
/** * Returns the <code>index</code>th item in the collection or * <code>null</code> if <code>index</code> is greater than or equal to * the number of objects in the list. The index starts at 0. * @param index index into the collection. * @return The <code>XSObject</code> at the <code>index</code>th * position in the <code>XSObjectList</code>, or <code>null</code> if * the index specified is not valid. */ public synchronized XSObject item(int index) { if (fArray == null) { // calculate the total number of elements getLength(); fArray = new XSObject[fLength]; int pos = 0; // get components from all SymbolHashes for (int i = 0; i < fNSNum; i++) { pos += fMaps[i].getValues(fArray, pos); } } if (index < 0 || index >= fLength) { return null; } return fArray[index]; }
fComponents[objectType] = new XSNamedMapImpl(fTargetNamespace, table);
fNSComponents[i][objectType] = new XSNamedMapImpl(namespace, table);