/** * Get the namespace URI of the QName. * * @return the URI. Returns the empty string to represent the no-namespace */ public String getURI() { return qName.getURI(); }
/** * The namespace URI of the QName. Returns "" (the zero-length string) if the * QName is not in a namespace. * * @return the namespace part of the QName, or "" for a name in no namespace */ public String getNamespaceURI() { return sqName.getURI(); }
/** * Get the namespace URI part of the name of the error code * * @return the namespace URI part of the name of the error code */ /*@Nullable*/ public String getErrorCodeNamespace() { return errorCode == null ? null : errorCode.getURI(); }
/** * Get the namespace part. Returns the empty string for a name in no namespace. * * @return the namespace URI component of the name, or "" for a no-namespace name */ /*@NotNull*/ public final String getNamespaceURI() { return qName.getURI(); }
/** * The namespace URI of the QName. Returns "" (the zero-length string) if the * QName is not in a namespace. * * @return the namespace part of the QName, or "" for a name in no namespace */ public String getNamespaceURI() { return sqName.getURI(); }
/** * Get the namespace part. Returns the empty string for a name in no namespace. * * @return the namespace URI component of the name, or "" for a no-namespace name */ /*@NotNull*/ public final String getNamespaceURI() { return qName.getURI(); }
/** * Get the namespace URI of the QName. * * @return the URI. Returns the empty string to represent the no-namespace */ public String getURI() { return qName.getURI(); }
/** * Get the namespace URI part of the name of the error code * * @return the namespace URI part of the name of the error code */ /*@Nullable*/ public String getErrorCodeNamespace() { return errorCode == null ? null : errorCode.getURI(); }
/** * Get the namespace name of the type (a system-allocated name if anonymous). Needed to implement the * DOM level 3 TypeInfo interface. */ public String getTypeNamespace() { return schemaType.getStructuredQName().getURI(); }
/** * Get the namespace name of the type (a system-allocated name if anonymous). Needed to implement the * DOM level 3 TypeInfo interface. */ public String getTypeNamespace() { return schemaType.getStructuredQName().getURI(); }
/** * Get the namespace-URI of a name, given its name code or fingerprint * * @param nameCode the name code or fingerprint of a name * @return the namespace URI corresponding to this name code. Returns "" for the * no-namespace. * @throws IllegalArgumentException if the nameCode is not known to the NamePool. */ /*@NotNull*/ public String getURI(int nameCode) { return getUnprefixedQName(nameCode).getURI(); }
/** * Test whether a function with a given name and arity is available * <p>This supports the function-available() function in XSLT.</p> * * @param functionName the qualified name of the function being called * @return true if a function of this name and arity is available for calling */ public boolean isAvailable(SymbolicName.F functionName) { return namespaces.contains(functionName.getComponentName().getURI()) && baseLibrary.isAvailable(functionName); } }
/** * Convert the StructuredQName to a javax.xml.namespace.QName * * @return an object of class javax.xml.namespace.QName representing this qualified name */ public QName toJaxpQName() { return new javax.xml.namespace.QName(getURI(), getLocalPart(), getPrefix()); }
/** * Convert the StructuredQName to a javax.xml.namespace.QName * * @return an object of class javax.xml.namespace.QName representing this qualified name */ public QName toJaxpQName() { return new javax.xml.namespace.QName(getURI(), getLocalPart(), getPrefix()); }
private void computeUriAndLocal() { if (uri == null || localName == null) { StructuredQName name = namePool.getUnprefixedQName(fingerprint); uri = name.getURI(); localName = name.getLocalPart(); } }
/** * Get the NamespaceBinding (prefix/uri pair) corresponding to this name * * @return a NamespaceBinding containing the prefix and URI present in this QName */ public NamespaceBinding getNamespaceBinding() { return NamespaceBinding.makeNamespaceBinding(getPrefix(), getURI()); }
/** * Get the NamespaceBinding (prefix/uri pair) corresponding to this name * * @return a NamespaceBinding containing the prefix and URI present in this QName */ public NamespaceBinding getNamespaceBinding() { return NamespaceBinding.makeNamespaceBinding(getPrefix(), getURI()); }
public FingerprintedQName(StructuredQName qName, NamePool pool) { this.qName = qName; this.fingerprint = pool.allocateFingerprint(qName.getURI(), qName.getLocalPart()); }
/** * Get the name in the form of a StructuredQName * * @return the name in the form of a StructuredQName */ public StructuredQName getStructuredQName() { StructuredQName qn = pool.getUnprefixedQName(fingerprint); if (prefix.isEmpty()) { return qn; } else { return new StructuredQName(prefix, qn.getURI(), qn.getLocalPart()); } }
/** * Test whether a function with a given name and arity is available * <p>This supports the function-available() function in XSLT.</p> * * @param functionName the qualified name of the function being called * @return true if a function of this name and arity is available for calling */ public boolean isAvailable(SymbolicName.F functionName) { return resolver != null && resolver.resolveFunction( new QName(functionName.getComponentName().getURI(), functionName.getComponentName().getLocalPart()), functionName.getArity()) != null; }