Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2006-2014 smartics, Kronseder & Reiner GmbH
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 package com.redhat.rcm.maven.plugin.buildmetadata.scm;

Stores the information about locally modified files.

Author(s):
Robert Reiner
Version:
$Revision:591 $
 
 public final class LocallyModifiedInfo
 {
   // ********************************* Fields *********************************
 
   // --- constants ------------------------------------------------------------
 
   // --- members --------------------------------------------------------------
 
  
The flag that shows whether the files are modified (true) or not (false).
 
   private final boolean locallyModified;

  
The list of files that where reported to be modified. This includes all files that are not in-sync with the trunk of the repository.
 
   private final String files;
 
   // ****************************** Initializer *******************************
 
   // ****************************** Constructors ******************************
 
  
Default constructor.

Parameters:
locallyModified the flag that shows whether the files are modified ( true) or not (false).
files the list of files that where reported to be modified.
 
   public LocallyModifiedInfo(final boolean locallyModifiedfinal String files)
   {
     this. = locallyModified;
     this. = normalize(files);
   }
 
   // ****************************** Inner Classes *****************************
 
   // ********************************* Methods ********************************
 
   // --- init -----------------------------------------------------------------
 
   private String normalize(final String files)
   {
     if (files == null)
     {
       return null;
     }
     return files.replace('\\''/');
   }
 
   // --- get&set --------------------------------------------------------------
 
  
Returns the flag that shows whether the files are modified ( true) or not (false).

Returns:
the flag that shows whether the files are modified ( true) or not (false).
 
   public boolean isLocallyModified()
   {
     return ;
   }

  
Returns the list of files that where reported to be modified. This includes all files that are not in-sync with the trunk of the repository.

Returns:
the list of files that where reported to be modified.
 
   public String getFiles()
   {
     return ;
   }
  // --- business -------------------------------------------------------------
  // --- object basics --------------------------------------------------------
New to GrepCode? Check out our FAQ X