/** * Get a hashCode that offers the guarantee that if A.isIdentical(B), then A.identityHashCode() == B.identityHashCode() * * @return a hashCode suitable for use when testing for identity. */ public int identityHashCode() { return hashCode() ^ getPrefix().hashCode(); } }
/** * Get a hashCode that offers the guarantee that if A.isIdentical(B), then A.identityHashCode() == B.identityHashCode() * * @return a hashCode suitable for use when testing for identity. */ public int identityHashCode() { return hashCode() ^ getPrefix().hashCode(); } }
/** * Determine whether two IdentityComparable objects are identical. This is a stronger * test than equality (even schema-equality); for example two dateTime values are not identical unless * they are in the same timezone. * * @param other * @return true if the two values are indentical, false otherwise */ public boolean isIdentical(IdentityComparable other) { return other instanceof NodeName && this.equals(other) && this.getPrefix().equals(((NodeName) other).getPrefix()); }
/** * Determine whether two IdentityComparable objects are identical. This is a stronger * test than equality (even schema-equality); for example two dateTime values are not identical unless * they are in the same timezone. * * @param other * @return true if the two values are indentical, false otherwise */ public boolean isIdentical(IdentityComparable other) { return other instanceof NodeName && this.equals(other) && this.getPrefix().equals(((NodeName) other).getPrefix()); }
/** * Get a {@link net.sf.saxon.om.NamespaceBinding} whose (prefix, uri) pair are the prefix and URI of this * node name * * @return the corresponding NamespaceBinding */ public NamespaceBinding getNamespaceBinding() { return NamespaceBinding.makeNamespaceBinding(getPrefix(), getURI()); }
/** * Get a {@link net.sf.saxon.om.NamespaceBinding} whose (prefix, uri) pair are the prefix and URI of this * node name * * @return the corresponding NamespaceBinding */ public NamespaceBinding getNamespaceBinding() { return NamespaceBinding.makeNamespaceBinding(getPrefix(), getURI()); }
/** * Get the name in the form of a StructuredQName * * @return the name in the form of a StructuredQName */ public StructuredQName getStructuredQName() { return new StructuredQName(getPrefix(), getURI(), getLocalPart()); }
/** * Get the name in the form of a StructuredQName * * @return the name in the form of a StructuredQName */ public StructuredQName getStructuredQName() { return new StructuredQName(getPrefix(), getURI(), getLocalPart()); }