Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.javatools.patch
Class PatchHunk

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

public class PatchHunk
extends java.lang.Object

This class is the model class for data in a patch hunk, owned by a PatchEntry.

Since:
10.1.3.0.3

Constructor Summary
PatchHunk()
           
 
Method Summary
 void addLine(PatchHunkLine line)
          Adds a PatchHunkLine instance to the patch hunk.
 int getFromFileLineCount()
          Gets the from-file line count for the patch hunk.
 int getFromFileLineNumber()
          Gets the from-file line number for the patch hunk.
 PatchHunkLine[] getLines()
          Gets all PatchHunkLine instances in the patch hunk.
 int getToFileLineCount()
          Gets the to-file line count for the patch hunk.
 int getToFileLineNumber()
          Gets the to-file line number for the patch hunk.
 void setFromFileLineCount(int fromFileLineCount)
          Sets the from-file line count for the patch hunk.
 void setFromFileLineNumber(int fromFileLineNumber)
          Sets the from-file line number for the patch hunk.
 void setToFileLineCount(int toFileLineCount)
          Sets the to-file line count for the patch hunk.
 void setToFileLineNumber(int toFileLineNumber)
          Sets the to-file line number for the patch hunk.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PatchHunk

public PatchHunk()
Method Detail

setFromFileLineNumber

public void setFromFileLineNumber(int fromFileLineNumber)
Sets the from-file line number for the patch hunk.

Parameters:
fromFileLineNumber - the from-file line number.

getFromFileLineNumber

public int getFromFileLineNumber()
Gets the from-file line number for the patch hunk.

Returns:
the from-file line number.

setFromFileLineCount

public void setFromFileLineCount(int fromFileLineCount)
Sets the from-file line count for the patch hunk.

Parameters:
fromFileLineCount - the from-file line count.

getFromFileLineCount

public int getFromFileLineCount()
Gets the from-file line count for the patch hunk.

Returns:
the from-file line count.

setToFileLineNumber

public void setToFileLineNumber(int toFileLineNumber)
Sets the to-file line number for the patch hunk.

Parameters:
toFileLineNumber - the to-file line number.

getToFileLineNumber

public int getToFileLineNumber()
Gets the to-file line number for the patch hunk.

Returns:
the to-file line number.

setToFileLineCount

public void setToFileLineCount(int toFileLineCount)
Sets the to-file line count for the patch hunk.

Parameters:
toFileLineCount - the to-file line count.

getToFileLineCount

public int getToFileLineCount()
Gets the to-file line count for the patch hunk.

Returns:
the to-file line count.

addLine

public void addLine(PatchHunkLine line)
Adds a PatchHunkLine instance to the patch hunk.

Parameters:
line - the patch hunk line.

getLines

public PatchHunkLine[] getLines()
Gets all PatchHunkLine instances in the patch hunk.

Returns:
an array of all patch hunk lines.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

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