Package org.pentaho.di.ui.i18n
Class KeyOccurrence
java.lang.Object
org.pentaho.di.ui.i18n.KeyOccurrence
- All Implemented Interfaces:
Comparable<KeyOccurrence>
Contains the occurrence of a key in a java source code file
- Since:
- 2007-09-29
- Author:
- matt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(KeyOccurrence occ) booleanintorg.apache.commons.vfs2.FileObjectgetKey()intintgetRow()voidIncrement the number of occurrences with one.voidsetArguments(String arguments) voidsetColumn(int column) voidsetFileObject(org.apache.commons.vfs2.FileObject fileObject) voidvoidsetMessagesPackage(String messagesPackage) voidsetOccurrences(int occurrences) voidsetRow(int row) voidsetSourceFolder(String sourceFolder) voidsetSourceLine(String sourceLine) toString()
-
Constructor Details
-
KeyOccurrence
public KeyOccurrence() -
KeyOccurrence
public KeyOccurrence(org.apache.commons.vfs2.FileObject fileObject, String sourceFolder, String messagesPackage, int row, int column, String key, String arguments, String sourceLine) - Parameters:
fileObject- The java source filemessagesPackage- The location of the messages file, derived from "^import .*Messages;"row- The row on which the occurrence takes placecolumn- The column on which the occurrence takes placekey- The i18n keyarguments- The arguments from the source code
-
-
Method Details
-
toString
-
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<KeyOccurrence>
-
getFileObject
public org.apache.commons.vfs2.FileObject getFileObject()- Returns:
- The java source file
-
setFileObject
public void setFileObject(org.apache.commons.vfs2.FileObject fileObject) - Parameters:
fileObject- The java source file
-
getMessagesPackage
- Returns:
- The location of the messages file
-
setMessagesPackage
- Parameters:
messagesPackage- The location of the messages file
-
getSourceFolder
-
setSourceFolder
-
getRow
public int getRow()- Returns:
- The row on which the occurrence takes place
-
setRow
public void setRow(int row) - Parameters:
row- The row on which the occurrence takes place
-
getColumn
public int getColumn()- Returns:
- The column on which the occurrence takes place
-
setColumn
public void setColumn(int column) - Parameters:
column- The column on which the occurrence takes place
-
getKey
- Returns:
- The i18n key
-
setKey
- Parameters:
key- The i18n key
-
getArguments
- Returns:
- The arguments from the source code
-
setArguments
- Parameters:
arguments- The arguments from the source code
-
getOccurrences
public int getOccurrences()- Returns:
- The number of occurrences
-
setOccurrences
public void setOccurrences(int occurrences) - Parameters:
occurrences- The number of occurrences
-
incrementOccurrences
public void incrementOccurrences()Increment the number of occurrences with one. -
getSourceLine
- Returns:
- the line of source code on which the key occurs.
-
setSourceLine
- Parameters:
sourceLine- the line of source code on which the key occurs.
-