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

E13403-04

oracle.javatools.patch
Class PatchHunkLine

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

public class PatchHunkLine
extends java.lang.Object

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

Since:
10.1.3.0.3

Field Summary
static int INDICATOR_ADDED
           
static int INDICATOR_COMMON
           
static int INDICATOR_REMOVED
           
 
Constructor Summary
PatchHunkLine(int indicator)
          Constructs a new PatchHunkLine with the given line indicator.
 
Method Summary
 int getIndicator()
          Gets the indicator for the patch hunk line (one of common, added, removed).
 java.lang.String getLineData()
          Gets the line data for the patch hunk line.
 boolean isNoNewlineAtEOF()
          Gets the flag for 'No newline at end of file'.
 void setLineData(java.lang.String lineData)
          Sets the line data for the patch hunk line.
 void setNoNewlineAtEOF(boolean noNewlineAtEof)
          Sets the flag for 'No newline at end of file'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INDICATOR_COMMON

public static final int INDICATOR_COMMON
See Also:
Constant Field Values

INDICATOR_ADDED

public static final int INDICATOR_ADDED
See Also:
Constant Field Values

INDICATOR_REMOVED

public static final int INDICATOR_REMOVED
See Also:
Constant Field Values
Constructor Detail

PatchHunkLine

public PatchHunkLine(int indicator)
Constructs a new PatchHunkLine with the given line indicator.

Parameters:
indicator - the line indicator.
Method Detail

getIndicator

public int getIndicator()
Gets the indicator for the patch hunk line (one of common, added, removed).

Returns:
the line indicator.

setLineData

public void setLineData(java.lang.String lineData)
Sets the line data for the patch hunk line.

Parameters:
lineData - the line data.

getLineData

public java.lang.String getLineData()
Gets the line data for the patch hunk line.

Returns:
the line data.

setNoNewlineAtEOF

public void setNoNewlineAtEOF(boolean noNewlineAtEof)
Sets the flag for 'No newline at end of file'.

Parameters:
noNewlineAtEof - true if EOF with no NL follows the line.

isNoNewlineAtEOF

public boolean isNoNewlineAtEOF()
Gets the flag for 'No newline at end of file'.

Returns:
true if EOF with no NL follows the line.

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

E13403-04

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