Package org.pentaho.di.ui.i18n
Class KeyOccurrence
- java.lang.Object
- 
- org.pentaho.di.ui.i18n.KeyOccurrence
 
- 
- All Implemented Interfaces:
- Comparable<KeyOccurrence>
 
 public class KeyOccurrence extends Object implements Comparable<KeyOccurrence> Contains the occurrence of a key in a java source code file- Since:
- 2007-09-29
- Author:
- matt
 
- 
- 
Constructor SummaryConstructors Constructor Description KeyOccurrence()KeyOccurrence(org.apache.commons.vfs2.FileObject fileObject, String sourceFolder, String messagesPackage, int row, int column, String key, String arguments, String sourceLine)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(KeyOccurrence occ)booleanequals(Object occ)StringgetArguments()intgetColumn()org.apache.commons.vfs2.FileObjectgetFileObject()StringgetKey()StringgetMessagesPackage()intgetOccurrences()intgetRow()StringgetSourceFolder()StringgetSourceLine()voidincrementOccurrences()Increment the number of occurrences with one.voidsetArguments(String arguments)voidsetColumn(int column)voidsetFileObject(org.apache.commons.vfs2.FileObject fileObject)voidsetKey(String key)voidsetMessagesPackage(String messagesPackage)voidsetOccurrences(int occurrences)voidsetRow(int row)voidsetSourceFolder(String sourceFolder)voidsetSourceLine(String sourceLine)StringtoString()
 
- 
- 
- 
Constructor Detail- 
KeyOccurrencepublic KeyOccurrence() 
 - 
KeyOccurrencepublic 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 file
- messagesPackage- The location of the messages file, derived from "^import .*Messages;"
- row- The row on which the occurrence takes place
- column- The column on which the occurrence takes place
- key- The i18n key
- arguments- The arguments from the source code
 
 
- 
 - 
Method Detail- 
compareTopublic int compareTo(KeyOccurrence occ) - Specified by:
- compareToin interface- Comparable<KeyOccurrence>
 
 - 
getFileObjectpublic org.apache.commons.vfs2.FileObject getFileObject() - Returns:
- The java source file
 
 - 
setFileObjectpublic void setFileObject(org.apache.commons.vfs2.FileObject fileObject) - Parameters:
- fileObject- The java source file
 
 - 
getMessagesPackagepublic String getMessagesPackage() - Returns:
- The location of the messages file
 
 - 
setMessagesPackagepublic void setMessagesPackage(String messagesPackage) - Parameters:
- messagesPackage- The location of the messages file
 
 - 
getSourceFolderpublic String getSourceFolder() 
 - 
setSourceFolderpublic void setSourceFolder(String sourceFolder) 
 - 
getRowpublic int getRow() - Returns:
- The row on which the occurrence takes place
 
 - 
setRowpublic void setRow(int row) - Parameters:
- row- The row on which the occurrence takes place
 
 - 
getColumnpublic int getColumn() - Returns:
- The column on which the occurrence takes place
 
 - 
setColumnpublic void setColumn(int column) - Parameters:
- column- The column on which the occurrence takes place
 
 - 
getKeypublic String getKey() - Returns:
- The i18n key
 
 - 
setKeypublic void setKey(String key) - Parameters:
- key- The i18n key
 
 - 
getArgumentspublic String getArguments() - Returns:
- The arguments from the source code
 
 - 
setArgumentspublic void setArguments(String arguments) - Parameters:
- arguments- The arguments from the source code
 
 - 
getOccurrencespublic int getOccurrences() - Returns:
- The number of occurrences
 
 - 
setOccurrencespublic void setOccurrences(int occurrences) - Parameters:
- occurrences- The number of occurrences
 
 - 
incrementOccurrencespublic void incrementOccurrences() Increment the number of occurrences with one.
 - 
getSourceLinepublic String getSourceLine() - Returns:
- the line of source code on which the key occurs.
 
 - 
setSourceLinepublic void setSourceLine(String sourceLine) - Parameters:
- sourceLine- the line of source code on which the key occurs.
 
 
- 
 
-