com.atlassian.confluence.diff
Class LineChunk

java.lang.Object
  extended by com.atlassian.confluence.diff.LineChunk

public class LineChunk
extends java.lang.Object

Represents one or more lines of diffed text. Lines may be added, deleted, changed, context, snipped or unchanged.


Constructor Summary
LineChunk(DiffType type, java.util.List<com.atlassian.confluence.diff.DiffLine> lines)
           
 
Method Summary
 java.lang.String getJoinedStringLines(java.lang.String separator)
           
 java.util.List<com.atlassian.confluence.diff.DiffLine> getLines()
           
 java.lang.String getText()
           
 DiffType getType()
           
 boolean isChangedChunk()
           
 void setType(DiffType type)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LineChunk

public LineChunk(DiffType type,
                 java.util.List<com.atlassian.confluence.diff.DiffLine> lines)
Method Detail

getType

public DiffType getType()

getText

public java.lang.String getText()

toString

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

getLines

public java.util.List<com.atlassian.confluence.diff.DiffLine> getLines()

isChangedChunk

public boolean isChangedChunk()

getJoinedStringLines

public java.lang.String getJoinedStringLines(java.lang.String separator)

setType

public void setType(DiffType type)


Copyright © 2003-2009 Atlassian Pty Ltd. All Rights Reserved.