Examples of validate()


Examples of org.eclipse.jst.jsf.validation.internal.el.operators.BracketOperator.validate()

                    final int length = lastToken.endColumn - firstToken.beginColumn + 1;

                    final BracketOperator  bracketOperator = new BracketOperator(_diagnosticFactory, _targetFile, _symbolResolver);

                    final Diagnostic diagnostic =
                        bracketOperator.validate(symbolType,
                                (ValueType)subExprType);

                    if (diagnostic.getSeverity() != Diagnostic.OK)
                    {
                        _reporter.report(diagnostic, offset, length);
View Full Code Here

Examples of org.eclipse.jst.jsf.validation.internal.el.operators.DotOperator.validate()

                final DotOperator dotOp = new DotOperator(_diagnosticFactory, _targetFile, _symbolResolver);

                final StringLiteralType  suffixLiteral = new StringLiteralType(dotId.image);
                final Diagnostic diagnostic =
                    dotOp.validate(symbolType,
                            suffixLiteral);

                if (diagnostic.getSeverity() != Diagnostic.OK)
                {
                    _reporter.report(diagnostic, offset, length);
View Full Code Here

Examples of org.eclipse.jst.jsf.validation.internal.el.operators.TernaryChoiceOperator.validate()

        {
            final TernaryChoiceOperator operator =
                new TernaryChoiceOperator(_diagnosticFactory);

            final Diagnostic diagnostic =
                operator.validate(choiceArg/* whenTrueArg, whenFalseArg*/);

            if (diagnostic.getSeverity() != Diagnostic.OK)
            {
                final Token firstToken = node.getFirstToken();
                final int offset = _context.getDocumentPosition() + firstToken.beginColumn - 1;
View Full Code Here

Examples of org.eclipse.jst.jsf.validation.internal.el.operators.UnaryOperator.validate()

            if (UnaryOperator.isUnaryOperator(firstToken))
            {
                if (type instanceof ValueType)
                {
                    final UnaryOperator unaryOp = UnaryOperator.createUnaryOperator(firstToken, _diagnosticFactory);
                    final Diagnostic diagnostic = unaryOp.validate((ValueType)type);

                    if (diagnostic.getSeverity() != Diagnostic.OK)
                    {
                        final int offset = _context.getDocumentPosition() + firstToken.beginColumn - 1;
                        final int length = node.getLastToken().endColumn - firstToken.beginColumn+1;
View Full Code Here

Examples of org.eclipse.jst.jsf.validation.internal.strategy.AttributeValidatingStrategy.validate()

            for (final Region2AttrAdapter attrAdapter : regionAdapter
                    .getAttributes().values())
            {
                if (strategy.isInteresting(attrAdapter))
                {
                    strategy.validate(attrAdapter);
                }
            }
        }
        catch (NoElementException ne)
        {
View Full Code Here

Examples of org.eclipse.mylyn.internal.wikitext.core.validation.StandaloneMarkupValidator.validate()

    }
    log(MessageFormat.format(Messages.getString("MarkupTask.1"), source), Project.MSG_VERBOSE); //$NON-NLS-1$

    StandaloneMarkupValidator markupValidator = StandaloneMarkupValidator.getValidator(markupLanguage);

    List<ValidationProblem> problems = markupValidator.validate(markupContent);

    int errorCount = 0;
    int warningCount = 0;
    for (ValidationProblem problem : problems) {
      int messageLevel = Project.MSG_ERR;
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.data.validate.IDataValidator.validate()

            // process the tick update
            Object newValue = getNewCellValue(command, cell);
            // validate the value
            try {
                if (validator == null
                        || validator.validate(cell, configRegistry, newValue)) {
                    selectionLayer.doCommand(new UpdateDataCommand(
                            selectionLayer, selectedPosition.columnPosition,
                            selectedPosition.rowPosition, newValue));
                } else {
                    log.warn("Tick update failed for cell at " + selectedPosition + " and value " + newValue //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.AbstractValidator.JPQLQueryBNFValidator.validate()

   */
  protected boolean isValid(JPQLQueryBNF parentQueryBNF, JPQLQueryBNF queryBNF, boolean bypassCompound) {
    JPQLQueryBNFValidator validator = buildJPQLQueryBNFValidator(parentQueryBNF);
    try {
      validator.setBypassCompound(bypassCompound);
      validator.validate(queryBNF);
      return validator.isValid();
    }
    finally {
      validator.dispose();
    }
View Full Code Here

Examples of org.eclipse.persistence.platform.xml.XMLPlatform.validate()

            root.setLocalName(name);
           
            XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform();
            Document doc = xmlPlatform.createDocument();
            marshaller.marshal(root, doc);
            return xmlPlatform.validate(doc.getDocumentElement(), descriptor, getErrorHandler());
        } catch (XMLPlatformException e) {
            throw XMLMarshalException.validateException(e);
        }
    }
View Full Code Here

Examples of org.eclipse.php.internal.ui.wizards.CompositeFragment.validate()

    public void widgetSelected(SelectionEvent e) {
      CTabItem item = (CTabItem) e.item;
      CompositeFragment fragment = (CompositeFragment) item.getControl();
      setTitle(fragment.getTitle());
      fragment.validate();
    }

  }
}
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.