Examples of validate()


Examples of net.fortuna.ical4j.model.Component.validate()

            }
            getAlarms(workEffort, alarms);
        }
        if (Debug.verboseOn()) {
            try {
                result.validate(true);
                Debug.logVerbose("iCalendar component passes validation", module);
            } catch (ValidationException e) {
                Debug.logVerbose(e, "iCalendar component fails validation: ", module);
            }
        }
View Full Code Here

Examples of net.fortuna.ical4j.model.component.VAlarm.validate()

                alarmProps.add(Action.DISPLAY);
                alarmProps.add(description);
            }
            if (Debug.verboseOn()) {
                try {
                    alarm.validate(true);
                    Debug.logVerbose("iCalendar alarm passes validation", module);
                } catch (ValidationException e) {
                    Debug.logVerbose("iCalendar alarm fails validation: " + e, module);
                }
            }
View Full Code Here

Examples of net.fortuna.ical4j.model.property.RRule.validate()

    public DataValidatorBuilder isValidRecurringRule(final String recurringRule) {
        if (StringUtils.isNotBlank(recurringRule)) {
            try {
                final RRule rRule = new RRule(recurringRule);
                rRule.validate();
            } catch (final ValidationException e) {
                final ApiParameterError error = ApiParameterError.parameterError("validation.msg.invalid.recurring.rule",
                        "The Recurring Rule value: " + recurringRule + " is not valid.", this.parameter, recurringRule);
                this.dataValidationErrors.add(error);
                return this;
View Full Code Here

Examples of net.hamnaberg.json.Collection.validate()

        throw new ParseException("Missing \"collection\" property");
    }

    private Collection parseCollection(JsonNode collectionNode) {
        Collection c = objectFactory.createCollection((ObjectNode) collectionNode);
        c.validate();
        return c;
    }

    private Template parseTemplate(JsonNode collectionNode) throws ParseException {
        JsonNode node = collectionNode.get("template");
View Full Code Here

Examples of net.java.quickcheck.characteristic.ClassificationExpectation.validate()

          .gathered();
      if (expectation != null) {

        Classification classification = Classification.gathered();
        Assert.assertEquals(format("expected %s but was %s",
            expectation, classification), true, expectation
            .validate(classification));

      }
    } finally {
      clearExpectations();
View Full Code Here

Examples of net.minecraft.tileentity.TileEntity.validate()

                worldObj.setBlock(targetX, yCoord + 1, targetZ, worldObj.getBlock(xCoord, yCoord + 1, zCoord), worldObj.getBlockMetadata(xCoord, yCoord + 1, zCoord), 3);
                passenger.invalidate();
                worldObj.setBlockToAir(xCoord, yCoord + 1, zCoord);
                api.registries().moveable().getHandler(passenger).moveTile(passenger, worldObj, targetX, yCoord + 1, targetZ);
                api.registries().moveable().doneMoving(passenger);
                passenger.validate();
              }

              //Handler IMovableTiles and vanilla TEs without AE
            } else if (passenger instanceof IMovableTile || passenger.getClass().getName().startsWith("net.minecraft.tileentity")) {
              boolean imovable = passenger instanceof IMovableTile;
View Full Code Here

Examples of net.rim.device.api.ui.text.TextFilter.validate()

        if(pin == null || pin.length() != pinLength) {
            return false;
        } else {
            pin = pin.toUpperCase();
            TextFilter pinFilter = TextFilter.get(TextFilter.PIN_ADDRESS);
            return pinFilter.validate(AbstractStringWrapper.createInstance(pin));
        }
    }

    public static void dispatchCallback(final ScriptableFunction function, final Object[] args) {
        Dispatcher.getInstance().dispatch(new DispatchableEvent(null) {
View Full Code Here

Examples of net.sf.antcontrib.antserver.Command.validate()

        Enumeration e = commands.elements();
        Command c = null;
        while (e.hasMoreElements())
        {
            c = (Command)e.nextElement();
            c.validate(getProject());
        }

        Client client = new Client(getProject(), machine, port);

        try
View Full Code Here

Examples of net.sf.graphiti.model.IValidator.validate()

   */
  private void validate() {
    removeMarkers();
    IFile file = ((IFileEditorInput) getEditorInput()).getFile();
    IValidator validator = graph.getConfiguration().getValidator();
    if (!validator.validate(graph, file)) {
      // activate problems view
      IWorkbenchPage page = PlatformUI.getWorkbench()
          .getActiveWorkbenchWindow().getActivePage();
      try {
        page.showView(IPageLayout.ID_PROBLEM_VIEW);
View Full Code Here

Examples of net.sf.jasperreports.engine.JRChartDataset.validate()

    {
      addBrokenRule("Chart dataset missing.", chart);
    }
    else
    {
      dataset.validate(this);
    }
  }


  private void verifyCellContents(JRCellContents contents, String cellText)
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.