Coverage Report - org.apache.maven.scm.command.diff.DiffScmResult
 
Classes in this File Line Coverage Branch Coverage Complexity
DiffScmResult
0 %
0/15
N/A
1
 
 1  
 package org.apache.maven.scm.command.diff;
 2  
 
 3  
 /*
 4  
  * Licensed to the Apache Software Foundation (ASF) under one
 5  
  * or more contributor license agreements.  See the NOTICE file
 6  
  * distributed with this work for additional information
 7  
  * regarding copyright ownership.  The ASF licenses this file
 8  
  * to you under the Apache License, Version 2.0 (the
 9  
  * "License"); you may not use this file except in compliance
 10  
  * with the License.  You may obtain a copy of the License at
 11  
  *
 12  
  * http://www.apache.org/licenses/LICENSE-2.0
 13  
  *
 14  
  * Unless required by applicable law or agreed to in writing,
 15  
  * software distributed under the License is distributed on an
 16  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 17  
  * KIND, either express or implied.  See the License for the
 18  
  * specific language governing permissions and limitations
 19  
  * under the License.
 20  
  */
 21  
 
 22  
 import java.util.List;
 23  
 import java.util.Map;
 24  
 
 25  
 import org.apache.maven.scm.ScmFile;
 26  
 import org.apache.maven.scm.ScmResult;
 27  
 
 28  
 /**
 29  
  * @author <a href="mailto:brett@apache.org">Brett Porter</a>
 30  
  * @version $Id: DiffScmResult.java 1056981 2011-01-09 17:24:53Z olamy $
 31  
  */
 32  
 public class DiffScmResult
 33  
     extends ScmResult
 34  
 {
 35  
     private static final long serialVersionUID = 4036970486972633082L;
 36  
 
 37  
     private List<ScmFile> changedFiles;
 38  
 
 39  
     private Map<String,CharSequence> differences;
 40  
 
 41  
     private String patch;
 42  
 
 43  
     public DiffScmResult( String commandLine, List<ScmFile> changedFiles, Map<String,CharSequence> differences, String patch )
 44  
     {
 45  0
         this( commandLine, null, null, true );
 46  0
         this.changedFiles = changedFiles;
 47  0
         this.differences = differences;
 48  0
         this.patch = patch;
 49  0
     }
 50  
 
 51  
     public DiffScmResult( String commandLine, String providerMessage, String commandOutput, boolean success )
 52  
     {
 53  0
         super( commandLine, providerMessage, commandOutput, success );
 54  0
     }
 55  
 
 56  
     public DiffScmResult( List<ScmFile> changedFiles, Map<String,CharSequence> differences, String patch, ScmResult result )
 57  
     {
 58  0
         super( result );
 59  
 
 60  0
         this.changedFiles = changedFiles;
 61  
 
 62  0
         this.differences = differences;
 63  
 
 64  0
         this.patch = patch;
 65  0
     }
 66  
 
 67  
     public List<ScmFile> getChangedFiles()
 68  
     {
 69  0
         return changedFiles;
 70  
     }
 71  
 
 72  
     public Map<String,CharSequence> getDifferences()
 73  
     {
 74  0
         return differences;
 75  
     }
 76  
 
 77  
     public String getPatch()
 78  
     {
 79  0
         return patch;
 80  
     }
 81  
 }