public final static int getType(QName qname) throws XPathException { String uri = qname.getNamespaceURI(); if (uri.equals(Namespaces.SCHEMA_NS)) return getType("xs:" + qname.getLocalName()); else if (uri.equals(Namespaces.XPATH_DATATYPES_NS)) return getType("xdt:" + qname.getLocalName()); else return getType(qname.getLocalName());
public final static int getType(String name) throws XPathException { if (name.equals("node")) return NODE; int code = typeCodes.get(name); if (code == Object2IntHashMap.UNKNOWN_KEY) throw new XPathException("Type: " + name + " is not defined"); return code;
	public final static int getType(QName qname) throws XPathException {		String uri = qname.getNamespaceURI();		if (uri.equals(Namespaces.SCHEMA_NS))			return getType("xs:" + qname.getLocalName());		else if (uri.equals(Namespaces.XPATH_DATATYPES_NS))			return getType("xdt:" + qname.getLocalName());		else			return getType(qname.getLocalName());	}