Examples of validate()


Examples of org.camunda.bpm.engine.impl.form.validator.RequiredValidator.validate()

  }

  public void testRequiredValidator() {
    RequiredValidator validator = new RequiredValidator();

    assertTrue(validator.validate("test", null));
    assertTrue(validator.validate(1, null));
    assertTrue(validator.validate(true, null));

    // empty string and 'null' are invalid
    assertFalse(validator.validate("", null));
View Full Code Here

Examples of org.carrot2.labs.smartsprites.SmartSpritesParameters.validate()

        final FailureDetectorMessageSink failureDetectorMessageSink = new FailureDetectorMessageSink();
        MessageLog log = new MessageLog(new AntLogMessageSink(),
            failureDetectorMessageSink);

        if (parameters.validate(log))
        {
            try
            {
                new SpriteBuilder(parameters, log).buildSprites();
            }
View Full Code Here

Examples of org.cipres.treebase.domain.matrix.RowSegment.validate()

    if (request.getParameter(ACTION_DELETE) != null) {
      mRowSegmentService.deleteRowSegment(aRowSegment);
    } else {
      System.out.println("MARTIX ROW ID In Submit Button: " + matrixRowId.toString());
      ExecutionResult executionResult = new ExecutionResult();
      boolean test = aRowSegment.validate(executionResult);
      if (test) {
        if (request.getParameter(ACTION_SUBMIT) != null) {
          matrixRow.addSegment(aRowSegment);
          mMatrixRowService.update(matrixRow);
        } else if (request.getParameter(ACTION_UPDATE) != null) {
View Full Code Here

Examples of org.cishell.reference.gui.guibuilder.swt.builder.GUIComponent.validate()

            component.createGUI(this.parameterArea, style);
            this.idToComponentMap.put(attribute.getID(), component);
            component.addUpdateListener(this);
           
            Object value = component.getValue();
            String valid = component.validate();
           
            if ((value != null) && ((valid == null) || (valid.length() == 0))) {
                this.enteredResponses.put(component.getAttributeDefinition().getID(), value);   
            }
        }
View Full Code Here

Examples of org.codehaus.aspectwerkz.definition.DefinitionValidator.validate()

     */
    private static void validate(final AspectWerkzDefinition definition) {
        if (System.getProperty("aspectwerkz.definition.validate", "false").equals("true")) {
            // validate the definition
            DefinitionValidator validator = new DefinitionValidator(definition);
            validator.validate();

            // handle errors in definition
            List errors = validator.getErrorMessages();
            for (Iterator i = errors.iterator(); i.hasNext();) {
                String errorMsg = (String)i.next();
View Full Code Here

Examples of org.codehaus.aspectwerkz.xmldef.definition.DefinitionValidator.validate()

     */
    private static void validate(final AspectWerkzDefinitionImpl definition) {
        if (System.getProperty("aspectwerkz.definition.validate", "false").equals("true")) {
            // validate the definition
            DefinitionValidator validator = new DefinitionValidator(definition);
            validator.validate();

            // handle errors in definition
            List errors = validator.getErrorMessages();
            for (Iterator i = errors.iterator(); i.hasNext();) {
                String errorMsg = (String)i.next();
View Full Code Here

Examples of org.codehaus.plexus.formica.validation.Validator.validate()

                    Validator validator = getValidator( v.getId() );

                    String elementData = (String) data.get( element.getId() );

                    boolean valid = validator.validate( elementData );

                    if ( valid )
                    {
                        result.addElementValidationResult( element.getId(), valid, null );
                    }
View Full Code Here

Examples of org.codehaus.plexus.formica.validation.group.GroupValidator.validate()

        {
            ElementGroup group = (ElementGroup) i.next();

            GroupValidator validator = getGroupValidator( group.getValidator() );

            boolean valid = validator.validate( group, data );

            String errorMessage = null;

            if ( !valid )
            {
View Full Code Here

Examples of org.codehaus.plexus.scheduler.CronExpressionValidator.validate()

        {
            addFieldError( "repository.id", "Unable to add new repository with id [" + repoId
               + "], that id already exists as a repository group." );
        }
       
        if ( !validator.validate( repository.getRefreshCronExpression() ) )
        {
            addFieldError( "repository.refreshCronExpression", "Invalid cron expression." );
        }

        // trim all unecessary trailing/leading white-spaces; always put this statement before the closing braces(after all validation).
View Full Code Here

Examples of org.codehaus.redback.components.scheduler.CronExpressionValidator.validate()

    @Override
    public void validate()
    {
        CronExpressionValidator validator = new CronExpressionValidator();

        if ( !validator.validate( repository.getCronExpression() ) )
        {
            addFieldError( "repository.cronExpression", "Invalid cron expression." );
        }

        trimAllRequestParameterValues();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.