Collection<WSDataRef> refsToCheck = null; switch (xPathExpression.getType()) { case SIGNED: refsToCheck = signed; default: throw new IllegalStateException("Unexpected crypto type: " + xPathExpression.getType()); xpath, Arrays.asList(xPathExpression.getXPath()), xPathExpression.getType(), xPathExpression.getScope()); } catch (WSSecurityException e) { throw new SoapFault("No " + xPathExpression.getType() + " element found matching XPath " + xPathExpression.getXPath(), Fault.FAULT_CODE_CLIENT);
Collection<WSDataRef> refsToCheck = null; switch (xPathExpression.getType()) { case SIGNED: refsToCheck = signed; default: throw new IllegalStateException("Unexpected crypto type: " + xPathExpression.getType()); xpath, Arrays.asList(xPathExpression.getXPath()), xPathExpression.getType(), xPathExpression.getScope()); } catch (WSSecurityException e) { throw new SoapFault("No " + xPathExpression.getType() + " element found matching XPath " + xPathExpression.getXPath(), Fault.FAULT_CODE_CLIENT);
@Override public boolean equals(Object xpathObject) { if (!(xpathObject instanceof XPathExpression)) { return false; } if (xpathObject == this) { return true; } XPathExpression xpath = (XPathExpression)xpathObject; if (xpath.getScope() != getScope()) { return false; } if (xpath.getType() != getType()) { return false; } if (getXPath() == null && xpath.getXPath() != null) { return false; } else if (getXPath() != null && !getXPath().equals(xpath.getXPath())) { return false; } return true; }
@Override public boolean equals(Object xpathObject) { if (!(xpathObject instanceof XPathExpression)) { return false; } if (xpathObject == this) { return true; } XPathExpression xpath = (XPathExpression)xpathObject; if (xpath.getScope() != getScope()) { return false; } if (xpath.getType() != getType()) { return false; } if (getXPath() == null && xpath.getXPath() != null) { return false; } else if (getXPath() != null && !getXPath().equals(xpath.getXPath())) { return false; } return true; }