FileDocCategorySizeDatePackage
SEIClassNameCheck.javaAPI DocGlassfish v2 API4284Fri May 04 22:34:16 BST 2007com.sun.enterprise.tools.verifier.tests.webservices

SEIClassNameCheck

public class SEIClassNameCheck extends WSTest implements WSCheck

Fields Summary
Constructors Summary
Methods Summary
public Resultcheck(WebServiceEndpoint wsdescriptor)

param
descriptor the WebServices descriptor
return
Result the results for this assertion


	Result result = getInitializedResult();
        ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();

        Class cl = loadSEIClass(wsdescriptor,result);
        if (cl == null) {
           result.addErrorDetails(smh.getLocalString ("tests.componentNameConstructor",
                                   "For [ {0} ]", new Object[] {compName.toString()}));
           result.failed(smh.getLocalString
                (getClass().getName() + ".failed",
                "The [{0}] Class [{1}] could not be Loaded.",
                 new Object[] {"SEI", wsdescriptor.getServiceEndpointInterface()}));

        }
        else {

            result.addGoodDetails(smh.getLocalString ("tests.componentNameConstructor",
                                   "For [ {0} ]", new Object[] {compName.toString()}));
            result.passed(smh.getLocalString (getClass().getName() + ".passed",
                          "The [{0}] Class [{1}] Loaded Successfully.",
                           new Object[] {"SEI",wsdescriptor.getServiceEndpointInterface()}));

        }

        return result;