FileDocCategorySizeDatePackage
WebModuleTest.javaAPI DocGlassfish v2 API3557Fri May 04 22:24:38 BST 2007com.sun.enterprise.config.serverbeans.validation.tests

WebModuleTest

public class WebModuleTest extends com.sun.enterprise.config.serverbeans.validation.GenericValidator

Fields Summary
static boolean
checked
Constructors Summary
public WebModuleTest(com.sun.enterprise.config.serverbeans.validation.ValidationDescriptor desc)

    
       
        super(desc);
    
Methods Summary
public com.sun.enterprise.config.serverbeans.validation.Resultvalidate(com.sun.enterprise.config.ConfigContextEvent cce)

        return super.validate(cce); 
    
public voidvalidateAttribute(java.lang.String name, java.lang.String value, com.sun.enterprise.config.serverbeans.WebModule web, com.sun.enterprise.config.serverbeans.validation.Result result)


        if (name.equals(ServerTags.CONTEXT_ROOT)) {
            if ((value == null) || (value.equals("")) || (value.length() < 1)) {
                result.failed(smh.getLocalString(getClass().getName() +
                                                 ".blankOrNullString",
                                                 "Attribute {0} : cannot be null or blank",
                                                 new Object[] {ServerTags.CONTEXT_ROOT}));
                return;
            }
        }