Java Doc for Difference.java in  » IDE-Netbeans » diff » org » netbeans » api » diff » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » diff » org.netbeans.api.diff 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.api.diff.Difference

Difference
public class Difference extends Object implements Serializable(Code)
This class represents a single difference between two files.
author:
   Martin Entlicher

Inner Class :final public static class Part extends Object implements Serializable

Field Summary
final public static  intADD
    
final public static  intCHANGE
    
final public static  intDELETE
    

Constructor Summary
public  Difference(int type, int firstStart, int firstEnd, int secondStart, int secondEnd)
     Creates a new instance of Difference
Parameters:
  type - The type of the difference.
public  Difference(int type, int firstStart, int firstEnd, int secondStart, int secondEnd, String firstText, String secondText)
     Creates a new instance of Difference
Parameters:
  type - The type of the difference.
public  Difference(int type, int firstStart, int firstEnd, int secondStart, int secondEnd, String firstText, String secondText, Difference.Part[] firstLineDiffs, Difference.Part[] secondLineDiffs)
     Creates a new instance of Difference
Parameters:
  type - The type of the difference.

Method Summary
public  intgetFirstEnd()
     Get the line number on which the difference ends in the first file.
public  Difference.Part[]getFirstLineDiffs()
     The list of differences on lines in the first file.
public  intgetFirstStart()
     Get the line number on which the difference starts in the first file.

For ADD changes it returns previous line number e.g.

public  StringgetFirstText()
     Get the text content of the difference in the first file.
public  intgetSecondEnd()
     Get the line number on which the difference ends in the second file.
public  Difference.Part[]getSecondLineDiffs()
     The list of differences on lines in the second file.
public  intgetSecondStart()
     Get the line number on which the difference starts in the second file.
public  StringgetSecondText()
     Get the text content of the difference in the second file.
public  intgetType()
     Get the difference type.
public  StringtoString()
    

Field Detail
ADD
final public static int ADD(Code)
Add type of difference - a portion of a file was added in the other



CHANGE
final public static int CHANGE(Code)
Change type of difference - a portion of a file was changed in the other



DELETE
final public static int DELETE(Code)
Delete type of difference - a portion of a file was removed in the other




Constructor Detail
Difference
public Difference(int type, int firstStart, int firstEnd, int secondStart, int secondEnd)(Code)
Creates a new instance of Difference
Parameters:
  type - The type of the difference. Must be one of the DELETE,ADD or CHANGE
Parameters:
  firstStart - The line number on which the difference starts in the first file.
Parameters:
  firstEnd - The line number on which the difference ends in the first file.
Parameters:
  secondStart - The line number on which the difference starts in the second file.
Parameters:
  secondEnd - The line number on which the difference ends in the second file.



Difference
public Difference(int type, int firstStart, int firstEnd, int secondStart, int secondEnd, String firstText, String secondText)(Code)
Creates a new instance of Difference
Parameters:
  type - The type of the difference. Must be one of the DELETE,ADD or CHANGE
Parameters:
  firstStart - The line number on which the difference starts in the first file.
Parameters:
  firstEnd - The line number on which the difference ends in the first file.
Parameters:
  secondStart - The line number on which the difference starts in the second file.
Parameters:
  secondEnd - The line number on which the difference ends in the second file.
Parameters:
  firstText - The text content of the difference in the first file.
Parameters:
  secondText - The text content of the difference in the second file.



Difference
public Difference(int type, int firstStart, int firstEnd, int secondStart, int secondEnd, String firstText, String secondText, Difference.Part[] firstLineDiffs, Difference.Part[] secondLineDiffs)(Code)
Creates a new instance of Difference
Parameters:
  type - The type of the difference. Must be one of the DELETE,ADD or CHANGE
Parameters:
  firstStart - The line number on which the difference starts in the first file.
Parameters:
  firstEnd - The line number on which the difference ends in the first file.
Parameters:
  secondStart - The line number on which the difference starts in the second file.
Parameters:
  secondEnd - The line number on which the difference ends in the second file.
Parameters:
  firstText - The text content of the difference in the first file.
Parameters:
  secondText - The text content of the difference in the second file.
Parameters:
  firstLineDiffs - The list of differences on lines in the first file.The list contains instances of Difference.Part.Can be null when there are no line differences.
Parameters:
  secondLineDiffs - The list of differences on lines in the second file.The list contains instances of Difference.Part.Can be null when there are no line differences.




Method Detail
getFirstEnd
public int getFirstEnd()(Code)
Get the line number on which the difference ends in the first file.

Does not have any meaning for ADD changes.




getFirstLineDiffs
public Difference.Part[] getFirstLineDiffs()(Code)
The list of differences on lines in the first file. The list contains instances of Difference.Part . Can be null when there are no line differences.



getFirstStart
public int getFirstStart()(Code)
Get the line number on which the difference starts in the first file.

For ADD changes it returns previous line number e.g. 0 for add file start.




getFirstText
public String getFirstText()(Code)
Get the text content of the difference in the first file.



getSecondEnd
public int getSecondEnd()(Code)
Get the line number on which the difference ends in the second file.

Does not have any meaning for DELETE changes.




getSecondLineDiffs
public Difference.Part[] getSecondLineDiffs()(Code)
The list of differences on lines in the second file. The list contains instances of Difference.Part . Can be null when there are no line differences.



getSecondStart
public int getSecondStart()(Code)
Get the line number on which the difference starts in the second file.



getSecondText
public String getSecondText()(Code)
Get the text content of the difference in the second file.



getType
public int getType()(Code)
Get the difference type. It's one of DELETE, ADD or CHANGE meaning respective change in second source.



toString
public String toString()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.