Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.javatools.patch
Class PatchMatchOptions

java.lang.Object
  extended by oracle.javatools.patch.PatchMatchOptions

public class PatchMatchOptions
extends java.lang.Object

This class represents options controlling the matching of a patch to a context.

Since:
10.1.3.0.3
See Also:
PatchEngine.matchModel(oracle.javatools.patch.PatchModel, oracle.javatools.patch.PatchMatchOptions)

Constructor Summary
PatchMatchOptions()
           
 
Method Summary
 int getMaximumFuzzFactor()
          Gets the maximum fuzz factor for matching patch hunks.
 int getPrefixSlashNumber()
          Gets the number of prefix slashes to strip from each file name.
 boolean isIgnoreWhitespace()
          Gets the option to ignore whitespace when comparing lines.
 void setIgnoreWhitespace(boolean ignoreWhitespace)
          Sets the option to ignore whitespace when comparing lines.
 void setMaximumFuzzFactor(int maximumFuzzFactor)
          Sets the maximum fuzz factor for matching patch hunks.
 void setPrefixSlashNumber(int prefixSlashNumber)
          Sets the number of prefix slashes to strip from each file name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatchMatchOptions

public PatchMatchOptions()
Method Detail

setIgnoreWhitespace

public void setIgnoreWhitespace(boolean ignoreWhitespace)
Sets the option to ignore whitespace when comparing lines.

Parameters:
ignoreWhitespace - true if whitespace will be ignored.

isIgnoreWhitespace

public boolean isIgnoreWhitespace()
Gets the option to ignore whitespace when comparing lines.

Returns:
true if whitespace will be ignored.

setMaximumFuzzFactor

public void setMaximumFuzzFactor(int maximumFuzzFactor)
Sets the maximum fuzz factor for matching patch hunks.

Parameters:
maximumFuzzFactor - the number of contextual lines used to match a hunk.

getMaximumFuzzFactor

public int getMaximumFuzzFactor()
Gets the maximum fuzz factor for matching patch hunks.

Returns:
the number of contextual lines used to match a hunk.

setPrefixSlashNumber

public void setPrefixSlashNumber(int prefixSlashNumber)
Sets the number of prefix slashes to strip from each file name.

Parameters:
prefixSlashNumber - the number of prefix slashes to strip.

getPrefixSlashNumber

public int getPrefixSlashNumber()
Gets the number of prefix slashes to strip from each file name.

Returns:
the number of prefix slashes to strip.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.