Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ListScmResult |
|
| 1.0;1 |
1 | package org.apache.maven.scm.command.list; | |
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.ArrayList; | |
23 | import java.util.List; | |
24 | ||
25 | import org.apache.maven.scm.ScmFile; | |
26 | import org.apache.maven.scm.ScmResult; | |
27 | ||
28 | /** | |
29 | * Result of {@link org.apache.maven.scm.provider.ScmProvider#list(org.apache.maven.scm.repository.ScmRepository, | |
30 | * org.apache.maven.scm.ScmFileSet, boolean, org.apache.maven.scm.ScmVersion)} operation | |
31 | * | |
32 | * @author <a href="mailto:carlos@apache.org">Carlos Sanchez</a> | |
33 | * @version $Id: ListScmResult.java 1055646 2011-01-05 21:22:58Z olamy $ | |
34 | */ | |
35 | public class ListScmResult | |
36 | extends ScmResult | |
37 | { | |
38 | ||
39 | private static final long serialVersionUID = 5402161066844465281L; | |
40 | private List<ScmFile> files; | |
41 | ||
42 | public ListScmResult( String commandLine, String providerMessage, String commandOutput, boolean success ) | |
43 | { | |
44 | 0 | super( commandLine, providerMessage, commandOutput, success ); |
45 | ||
46 | 0 | files = new ArrayList<ScmFile>( 0 ); |
47 | 0 | } |
48 | ||
49 | public ListScmResult( String commandLine, List<ScmFile> files ) | |
50 | { | |
51 | 0 | super( commandLine, null, null, true ); |
52 | ||
53 | 0 | this.files = files; |
54 | 0 | } |
55 | ||
56 | public ListScmResult( List<ScmFile> files, ScmResult result ) | |
57 | { | |
58 | 0 | super( result ); |
59 | ||
60 | 0 | this.files = files; |
61 | 0 | } |
62 | ||
63 | public List<ScmFile> getFiles() | |
64 | { | |
65 | 0 | return files; |
66 | } | |
67 | ||
68 | } |