/** * Test assertion QName-resolution-1064 for an InterfaceFaultReference element. \ * A Description component must not contain broken QName references. * * @param faultReference The interface fault reference to check for a broken reference. * @param errorReporter An error reporter. * @return True if the assertion passes, false otherwise. * @throws WSDLException */ protected boolean testAssertionQNameResolution1064ForInterfaceFaultReference(InterfaceFaultReferenceElement faultReference, ErrorReporter errorReporter) throws WSDLException { QName ref = faultReference.getRef(); if(ref != null) { InterfaceFaultElement fault = faultReference.getInterfaceFaultElement(); if(fault == null) { errorReporter.reportError(new ErrorLocatorImpl(), "QName-resolution-1064", new Object[]{ref.toString(), "interface fault reference", "interface fault"}, ErrorReporter.SEVERITY_ERROR); return false; } } return true; } }
/** * Test assertion QName-resolution-1064 for an InterfaceFaultReference element. \ * A Description component must not contain broken QName references. * * @param faultReference The interface fault reference to check for a broken reference. * @param errorReporter An error reporter. * @return True if the assertion passes, false otherwise. * @throws WSDLException */ protected boolean testAssertionQNameResolution1064ForInterfaceFaultReference(InterfaceFaultReferenceElement faultReference, ErrorReporter errorReporter) throws WSDLException { QName ref = faultReference.getRef(); if(ref != null) { InterfaceFaultElement fault = faultReference.getInterfaceFaultElement(); if(fault == null) { errorReporter.reportError(new ErrorLocatorImpl(), "QName-resolution-1064", new Object[]{ref.toString(), "interface fault reference", "interface fault"}, ErrorReporter.SEVERITY_ERROR); return false; } } return true; } }