Look up ncname and add it to the prefix map if necessary

        @param ncname: name to add
509875
def add_prefix(self, ncname: str) -> None:
        
        if ncname not in self.prefixmap:
            uri = cu.expand_uri(ncname + ':', self.curi_maps)
            if uri and '://' in uri:
                self.prefixmap[ncname] = uri
            else:
                print(f"Unrecognized prefix: {ncname}", file=sys.stderr)
                self.prefixmap[ncname] = f"http://example.org/unknown/{ncname}/"
751887
private int insertName(final String pName) throws TTException {
        final String string = (pName == null ? "" : pName);
        final int nameKey = NamePageHash.generateHashForString(string);
        NodeMetaPageFactory.MetaKey key = new NodeMetaPageFactory.MetaKey(nameKey);
        NodeMetaPageFactory.MetaValue value = new NodeMetaPageFactory.MetaValue(string);
        getPageWtx().getMetaBucket().put(key, value);
        return nameKey;
    }
1362921
private void addAllNamesIntoTrie() {
        for (Map.Entry<String, ZNames> entry : _tzNamesMap.entrySet()) {
            entry.getValue().addAsTimeZoneIntoTrie(entry.getKey(), _namesTrie);
        }
        for (Map.Entry<String, ZNames> entry : _mzNamesMap.entrySet()) {
            entry.getValue().addAsMetaZoneIntoTrie(entry.getKey(), _namesTrie);
        }
    }
939088
public void extendWith(Namespace ns) {
	if (ns==null) return;
	if (ns.getDefaultNamespace()!=null) {
	    registerDefault(ns.getDefaultNamespace());
	}
	for (String prefix: ns.prefixes.keySet()) {
	    register(prefix, ns.prefixes.get(prefix));
	}
    }
1248455
protected String lookupNamespaceURIImpl(String name) {
        String prefix = getPrefixFromQualifiedName(name);
        String namespaceURI = this.xmlNode.lookupNamespaceURI(prefix);
        return namespaceURI;
    }
598747
private void setName(String newName)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "setName", newName);

        this._name = newName;

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "setName");
    }
1325532
public static final void nodeName(String name)
    {
        if (tc.isEntryEnabled())
            Tr.entry(tc, "nodeName", name);

        _nodeName = name;

        if (tc.isEntryEnabled())
            Tr.exit(tc, "nodeName");
    }
603986
public void setNamespaceAlias(NamespaceAlias na)
  {

    if (m_prefix_aliases == null)
      m_prefix_aliases = new Vector();

    m_prefix_aliases.addElement(na);
  }
950027
def LookupNamespace(self, prefix):
        
        ret = libxml2mod.xmlTextReaderLookupNamespace(self._o, prefix)
        return ret
805191
public void add(String prefix, String uri) {
        if (uri == null) {
            namespaces.remove(prefix);
        } else {
            if (namespaces.containsKey(prefix)) {
                String currentUri = namespaces.get(prefix);
                if (!currentUri.equals(uri)) {
                    throw new FitFailureException(
                                String.format("The prefix %s is already mapped to %s",
                                                prefix, currentUri));
                }
            } else {
                namespaces.put(prefix, uri);
            }
        }
    }
43236
public void addNsBinding(String prefix, String uri)
    {
        // Unbind? (xml 1.1...)
        if ((uri == null) || (uri.length() == 0)) {
            uri = null;
        }

        // Default ns declaration?
        if ((prefix == null) || (prefix.length() == 0)) {
            prefix = null;
            mCurrElement.mDefaultNsURI = uri;
        }
        mNamespaces.addStrings(prefix, uri);
    }
1224611
private void addNamespace(String prefix, String uri) {
        prefixToURI.put(prefix, uri);
        uriToPrefix.put(uri, prefix);
    }
468007
@Override
	public void setPrefix(final String prefixString) {
		lock.writeLock().lock();
		try {
			if (prefixString == null || StringUtils.isBlank(prefixString)) {
				localPrefix.remove();
			} else {
				if (prefixes != null) {
					if (!prefixes.contains(prefixString)) {
						throw new IllegalArgumentException("The given prefix is not part of the prefixes.");
					}
				}
				localPrefix.set(prefixString);
			}
		} finally {
			lock.writeLock().unlock();
		}
	}
515374
public void addActivationName(String name)
    {
        if (sealed) onSealedMutation();
        if (activationNames == null)
            activationNames = new HashSet<String>();
        activationNames.add(name);
    }
517516
public String lookupNamespace(final String prefix) {
        Object namespace = namespaceMap.get(prefix);
        if (namespace != null) {
            return namespace.toString();
        }
        return this.namespaceTagHints.isEmpty() ? prefix : this.namespaceTagHints.get(prefix);
    }
271988
def add_prefix(network):
    
    p = new_prefix()
    p.prefix = str(network['network'])
    p.type = "assignment"
    p.description = network['description']
    p.tags = ['ipplan-import']
    p.comment = ""

    if 'additional' in network:
        p.comment += network['additional']
    if len(network['comment']) > 0:
        p.comment += network['comment']
    return p
1131054
public void setHostName(String hostName) {
        requireArgument(hostName != null && !hostName.isEmpty(), "Hostname cannot be null or empty.");
        this.hostName = hostName;
    }