Package ch.hortis.sonar.model

Examples of ch.hortis.sonar.model.Parameter


    boolean hasErrors = false;
    boolean hasWarnings = false;

    for (RuleFailure failure : failuresForGivenLine) {
      Parameter column = failure.getParameter( "column" );
      String columnVal = "";
      if ( column != null ) {
        columnVal = "(col " + Integer.toString( column.getValue().intValue() ) + ") ";
      }
      StringBuffer toAppend = null;
      if ( failure.getLevel() == RuleFailureLevel.ERROR ) {
        toAppend = errorsMessages;
        hasErrors = true;
View Full Code Here


  private List<RuleFailure> getFailuresForGivenLine( File toHighlight, List<RuleFailure> failuresForFile, int lineNumber ) {
    List<RuleFailure> failuresForGivenLine = new ArrayList<RuleFailure>();
    if ( failuresForFile != null ) {
      for (Iterator<RuleFailure> i = failuresForFile.iterator(); i.hasNext();) {
        RuleFailure failure = i.next();
        Parameter lineParam = failure.getParameter( "line" );
        if ( lineParam.getValue().intValue() == lineNumber ) {
          failuresForGivenLine.add( failure );
          i.remove();
        }
      }
    }
View Full Code Here

  }

  private void deleteParameters( List<Parameter> params ) {
    // explicitly remove the parameters since it is not working with hibernate
    for ( Iterator<Parameter> iterParams = params.iterator(); iterParams.hasNext(); ) {
      Parameter param = iterParams.next();
      if ( LOG.isDebugEnabled() ) LOG.debug( "Removing Parameter " + param.getId() );
      getEntityManager().remove( param );
      iterParams.remove();
    }
  }
View Full Code Here

  }

  private void deleteParameters(List<Parameter> params) {
    // explicitly remove the parameters since it is not working with hibernate
    for (Iterator<Parameter> iterParams = params.iterator(); iterParams.hasNext();) {
      Parameter param = iterParams.next();
      getEntityManager().remove(param);
      iterParams.remove();
    }
  }
View Full Code Here

    boolean hasErrors = false;
    boolean hasWarnings = false;

    for (RuleFailure failure : failuresForGivenLine) {
      Parameter column = failure.getParameter("column");
      String columnVal = "";
      if (column != null) {
        columnVal = "(col " + Integer.toString(column.getValue().intValue()) + ") ";
      }
      StringBuffer toAppend = null;
      if (failure.getLevel() == RuleFailureLevel.ERROR) {
        toAppend = errorsMessages;
        hasErrors = true;
View Full Code Here

  private List<RuleFailure> getFailuresForGivenLine(File toHighlight, List<RuleFailure> failuresForFile, int lineNumber) {
    List<RuleFailure> failuresForGivenLine = new ArrayList<RuleFailure>();
    if (failuresForFile != null) {
      for (Iterator<RuleFailure> i = failuresForFile.iterator(); i.hasNext();) {
        RuleFailure failure = i.next();
        Parameter lineParam = failure.getParameter("line");
        if (lineParam.getValue().intValue() == lineNumber) {
          failuresForGivenLine.add(failure);
          i.remove();
        }
      }
    }
View Full Code Here

  }

  private void deleteParameters(List<Parameter> params) {
    // explicitly remove the parameters since it is not working with hibernate
    for (Iterator<Parameter> iterParams = params.iterator(); iterParams.hasNext();) {
      Parameter param = iterParams.next();
      getEntityManager().remove(param);
      iterParams.remove();
    }
  }
View Full Code Here

TOP

Related Classes of ch.hortis.sonar.model.Parameter

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.