com.starteam.diff
Class ColumnMask

java.lang.Object
  extended by com.starteam.diff.ColumnMask

public final class ColumnMask
extends java.lang.Object

This class supports masks defined as a column range (e.g. columns 2-4) an optionally require the first character to be numeric. This is a common type of mask and is used by PVCS.


Constructor Summary
ColumnMask(int first, int last, boolean numeric)
          Construct a new BasiColumn mask from first to last (inclusive).
 
Method Summary
 java.lang.String getDebugString()
          Returns a string used for debugging and testing
 int skipBy(int column, CharSequence sequence)
          return distance to skip from column if this ColumnMask includes this column.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnMask

public ColumnMask(int first,
                  int last,
                  boolean numeric)
Construct a new BasiColumn mask from first to last (inclusive). If numeric is true then the column will only be masked if the character in the first column is a digit.

Parameters:
first - from the first column
last - to the last column
numeric - the type of mask
Method Detail

skipBy

public int skipBy(int column,
                  CharSequence sequence)
return distance to skip from column if this ColumnMask includes this column. Should return 0 if not skipped.

Parameters:
column - the column to skip
sequence - the char sequence to apply

getDebugString

public java.lang.String getDebugString()
Returns a string used for debugging and testing

Returns:
a string used for debugging


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.