Package com.puppetlabs.geppetto.pp.dsl.linking

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


   *
   * @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


      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

Related Classes of com.puppetlabs.geppetto.pp.dsl.linking.DiagnosticConsumerBasedMessageAcceptor

Copyright © 2018 www.massapicom. 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.