Examples of IMessageAcceptor


Examples of com.puppetlabs.geppetto.pp.dsl.linking.IMessageAcceptor

   *
   * @param mon
   */
  protected void performPPLinking(CancelIndicator mon) {
    final ListBasedDiagnosticConsumer diagnosticsConsumer = new ListBasedDiagnosticConsumer();
    IMessageAcceptor acceptor = new DiagnosticConsumerBasedMessageAcceptor(diagnosticsConsumer);
    EObject model = this.getParseResult().getRootASTElement();
    documentationAssociator.validateDocumentation(model, acceptor);
    resourceLinker.link(model, acceptor, false);

    if(!isValidationDisabled()) {
View Full Code Here

Examples of com.puppetlabs.geppetto.pp.dsl.linking.IMessageAcceptor

      if(ppResourceServiceProvider.canHandle(resource.getURI())) {
        // The PP resource linking (normally done by PP Linker (but
        // without documentation association)
        //
        final ListBasedDiagnosticConsumer consumer = new ListBasedDiagnosticConsumer();
        IMessageAcceptor acceptor = new DiagnosticConsumerBasedMessageAcceptor(consumer);
        resourceLinker.link(
          ((LazyLinkingResource) resource).getParseResult().getRootASTElement(), acceptor, profileThis);
        resource.getErrors().addAll(consumer.getResult(Severity.ERROR));
        resource.getWarnings().addAll(consumer.getResult(Severity.WARNING));
      }
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.