com.starbase.diff
Class BasicColumnMask

java.lang.Object
  |
  +--com.starbase.diff.BasicColumnMask
All Implemented Interfaces:
ColumnMask

public class BasicColumnMask
extends java.lang.Object
implements ColumnMask

This class implements the ColumnMask interface. It supports masks deinfed 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
BasicColumnMask(int first, int last, boolean numeric)
          Construct a new BasiColumn mask from first to last (inclusive).
 
Method Summary
 java.lang.String debugDump()
          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

BasicColumnMask

public BasicColumnMask(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.

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.

Specified by:
skipBy in interface ColumnMask

debugDump

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



StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.