/** * Is this expression the same as another expression? */ public boolean equals(Object other) { return other instanceof JAXPVariableReference && ((JAXPVariableReference)other).name.equals(name) && ((JAXPVariableReference)other).resolver == resolver; }
/** * Determine if this is the unnamed mode * * @return true if this is the unnamed mode */ public boolean isUnnamedMode() { return modeName.equals(UNNAMED_MODE_NAME); }
/** * Test whether two QNames are equal. This supports the * semantics of equality, which considers only the namespace URI and local name, and * not the prefix. * * @return true if the namespace URIs are equal and the local parts are equal, when * compared character-by-character. */ public boolean equals(Object other) { return other instanceof QName && sqName.equals(((QName) other).sqName); }
/** * Test whether this UseAttributeSets expression is equal to another * * @param obj the other expression */ public boolean equals(Object obj) { if (!(obj instanceof UseAttributeSet)) { return false; } return targetName.equals(((UseAttributeSet) obj).targetName); }
/** * Determine if two QName values are equal. This comparison ignores the prefix part * of the value. * * @throws ClassCastException if they are not comparable */ public boolean equals(/*@NotNull*/ Object other) { return other instanceof QNameValue && qName.equals(((QNameValue) other).qName); }
/** * Indicates whether some other object is "equal to" this one. */ @Override public boolean equals(Object obj) { return obj instanceof SymbolicName && ((SymbolicName) obj).kind == this.kind && ((SymbolicName) obj).name.equals(this.name); }
/** * Determine if two Notation values are equal. This comparison ignores the prefix part * of the value. * * @throws ClassCastException if they are not comparable * @throws IllegalStateException if the two QNames are in different name pools */ public boolean equals(/*@NotNull*/ Object other) { return other instanceof NotationValue && qName.equals(((NotationValue) other).qName); }
/** * Determine if two Notation values are equal. This comparison ignores the prefix part * of the value. * * @throws ClassCastException if they are not comparable * @throws IllegalStateException if the two QNames are in different name pools */ public boolean equals(/*@NotNull*/ Object other) { return other instanceof NotationValue && qName.equals(((NotationValue) other).qName); }
/** * Test whether two QNames are equal. This supports the * semantics of equality, which considers only the namespace URI and local name, and * not the prefix. * @return true if the namespace URIs are equal and the local parts are equal, when * compared character-by-character. */ public boolean equals(Object other) { return other instanceof QName && sqName.equals(((QName)other).sqName); }
/** * Determine if two Notation values are equal. This comparison ignores the prefix part * of the value. * @throws ClassCastException if they are not comparable * @throws IllegalStateException if the two QNames are in different name pools */ public boolean equals(Object other) { return qName.equals(((NotationValue)other).qName); }
/** * Ask whether this is a template rule with mode="#all */ public boolean isOmniMode() throws XPathException { for (StructuredQName name : getModeNames()) { if (name.equals(Mode.OMNI_MODE)) { return true; } } return false; }
/** * Ask whether this is a template rule with mode="#all */ public boolean isOmniMode() throws XPathException { for (StructuredQName name : getModeNames()) { if (name.equals(Mode.OMNI_MODE)) { return true; } } return false; }
/** * 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. In the case of a StructuredQName, the identity test compares * prefixes as well as the namespace URI and local name. * * @param other the value to be compared with * @return true if the two values are indentical, false otherwise */ public boolean isIdentical(IdentityComparable other) { return equals(other) && ((StructuredQName)other).getPrefix().equals(getPrefix()); }
/** * Test whether the NameTest matches a given QName * * @param qname the QName to be matched * @return true if the name matches */ public boolean matches(StructuredQName qname) { return NameOfNode.makeName(origin).getStructuredQName().equals(qname); }
/** * Mark tail-recursive calls on stylesheet functions. This marks the function call as tailRecursive if * if is a call to the containing function, and in this case it also returns "true" to the caller to indicate * that a tail call was found. */ public int markTailFunctionCalls(StructuredQName qName, int arity) { tailCall = true; return (getFunctionName().equals(qName) && arity == getNumberOfArguments() ? 2 : 1); }
/** * Determine whether this accumulator is compatible with one that it overrides * @param other the accumlator that this one overrides * @return true if they are compatible, as defined in the XSLT 3.0 specification */ public boolean isCompatible(Accumulator other) { return getAccumulatorName().equals(other.getAccumulatorName()); }
/** * Mark tail-recursive calls on stylesheet functions. This marks the function call as tailRecursive if * if is a call to the containing function, and in this case it also returns "true" to the caller to indicate * that a tail call was found. */ public int markTailFunctionCalls(StructuredQName qName, int arity) { tailCall = getFunctionName().equals(qName) && arity == getArity() ? SELF_TAIL_CALL : FOREIGN_TAIL_CALL; return tailCall; }
public XSLLocalParam getParam(StructuredQName name) { AxisIterator params = iterateAxis(AxisInfo.CHILD); NodeInfo param; while ((param = params.next()) != null) { if (param instanceof XSLLocalParam && name.equals(((XSLLocalParam) param).getObjectName())) { return (XSLLocalParam) param; } } return null; }
public void setVariableBinding(int role, LocalVariableBinding binding) throws XPathException { for (Iterator<LocalVariableBinding> iter = windowVars.valueIterator(); iter.hasNext(); ) { if (iter.next().getVariableQName().equals(binding.getVariableQName())) { throw new XPathException("Two variables in a window clause cannot have the same name (" + binding.getVariableQName().getDisplayName() + ")", "XQST0103"); } } windowVars.put(role, binding); }
/** * Check if parameter is compatible with another * * @param other - the LocalParam object to compare * @return result of the compatibility check */ public boolean isCompatible(LocalParam other) { return getVariableQName().equals(other.getVariableQName()) && getRequiredType().equals(other.getRequiredType()) && isTunnelParam() == other.isTunnelParam(); }