Examples of validate()


Examples of org.powerbot.game.api.wrappers.widget.WidgetChild.validate()

        return false;
    }

    public static int getCurrentWorld() {
        final WidgetChild wc = Widgets.get(550, 18);
        if (wc.validate()) {
            final String[] desc = wc.getText().split(" ");
            return Integer.parseInt(desc[2]);
        }

        return 0;
View Full Code Here

Examples of org.quartz.spi.OperableTrigger.validate()

        } else if (!trigger.getJobKey().equals(jobDetail.getKey())) {
            throw new SchedulerException(
                "Trigger does not reference given job!");
        }

        trig.validate();

        Calendar cal = null;
        if (trigger.getCalendarName() != null) {
            cal = resources.getJobStore().retrieveCalendar(trigger.getCalendarName());
        }
View Full Code Here

Examples of org.raml.model.parameter.QueryParameter.validate()

        assertThat(nameParam.getExample(), is("two"));
        assertThat(nameParam.isRepeat(), is(false));
        assertThat(nameParam.isRequired(), is(false));
        assertThat(nameParam.getDefaultValue(), is("three"));

        assertThat(nameParam.validate("one"), is(true));
        assertThat(nameParam.validate("two"), is(true));
        assertThat(nameParam.validate("three"), is(true));
        assertThat(nameParam.validate("four"), is(false));
    }
View Full Code Here

Examples of org.restlet.ext.xml.DomRepresentation.validate()

        DomRepresentation configRepresentation = new DomRepresentation(
                new StringRepresentation(XML_WITH_XMLNS));

        try {
            configRepresentation.validate(schemaRepresentation);
            assertTrue(true);
        } catch (Exception x) {
            x.printStackTrace(System.err);
            fail(x.getLocalizedMessage());
        }
View Full Code Here

Examples of org.rhq.core.clientapi.agent.configuration.ConfigurationAgentService.validate()

                + "] does not have permission to view resource configuration for [" + resource + "]");
        }
        Agent agent = resource.getAgent();
        AgentClient agentClient = this.agentManager.getAgentClient(agent);
        ConfigurationAgentService configService = agentClient.getConfigurationAgentService();
        return configService.validate(configuration, resourceId, isStructured);
    }

    private boolean isStructuredAndRawSupported(int resourceId) {
        Resource resource = entityManager.find(Resource.class, resourceId);
        ConfigurationDefinition configDef = resource.getResourceType().getResourceConfigurationDefinition();
View Full Code Here

Examples of org.rhq.coregui.client.components.configuration.ConfigurationEditor.validate()

            if (dynamicForm.validate(false)) {
                // let's make sure the args can be validated successfully.
                // If there is no config editor, there are no parameters for this operation
                ConfigurationEditor configEditor = getConfigurationEditor();
                if (configEditor != null) {
                    if (!configEditor.validate()) {
                        callback.onFailure(null);
                        return;
                    }
                    // nothing else to store - our config editor directly edited our extraConfig already
                } else {
View Full Code Here

Examples of org.rhq.enterprise.agent.AgentUpdateDownload.validate()

            case 'o': {
                try {
                    AgentUpdateDownload aud = new AgentUpdateDownload(agent);
                    aud.download();
                    aud.validate();
                    out.println(MSG.getMsg(AgentI18NResourceKeys.UPDATE_DOWNLOADED, aud.getAgentUpdateBinaryFile()));
                } catch (Exception e) {
                    out.println(MSG.getMsg(AgentI18NResourceKeys.UPDATE_DOWNLOAD_FAILED, ThrowableUtil
                        .getAllMessages(e)));
                }
View Full Code Here

Examples of org.serviceconnector.cmd.ICommand.validate()

        // removes largeResponse - request is complete don't need to know preceding messages any more
        NettyResponderRequestHandlerTask.compositeRegistry.removeSCMPLargeRequest(sessionId);
      }
      // validate request and run command
      if (Constants.COMMAND_VALIDATION_ENABLED) {
        command.validate(request);
      }
      PerformanceLogger.beginThreadBound();
      command.run(request, response, this);
      PerformanceLogger.endThreadBound(command.getKey().getValue());
    } catch (HasFaultResponseException ex) {
View Full Code Here

Examples of org.slim3.controller.validator.Validators.validate()

    }
   
    protected boolean validate() {
        Validators v = new Validators(request);
        v.add(meta.content, v.required());
        return v.validate();
    }
}
View Full Code Here

Examples of org.springframework.batch.core.JobParametersValidator.validate()

  public void testValidatorAttribute() throws Exception {
    assertNotNull(job1);
    JobParametersValidator validator = (JobParametersValidator) ReflectionTestUtils.getField(job1,
        "jobParametersValidator");
    assertNotNull(validator);
    validator.validate(new JobParameters());
  }

  @Test(expected=JobParametersInvalidException.class)
  public void testValidatorRef() throws Exception {
    assertNotNull(job2);
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.