Package org.apache.hop.ui.i18n
Class KeyOccurrence
- java.lang.Object
-
- org.apache.hop.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
-
-
Constructor Summary
Constructors Constructor Description KeyOccurrence()KeyOccurrence(org.apache.commons.vfs2.FileObject fileObject, String sourceFolder, String messagesPackage, int fileIndex, String key, String arguments, String sourceLine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(KeyOccurrence occ)booleanequals(Object occ)StringgetArguments()intgetFileIndex()Gets fileIndexorg.apache.commons.vfs2.FileObjectgetFileObject()StringgetKey()StringgetMessagesPackage()intgetOccurrences()StringgetSourceFolder()StringgetSourceLine()voidincrementOccurrences()Increment the number of occurrences with one.voidsetArguments(String arguments)voidsetFileIndex(int fileIndex)voidsetFileObject(org.apache.commons.vfs2.FileObject fileObject)voidsetKey(String key)voidsetMessagesPackage(String messagesPackage)voidsetOccurrences(int occurrences)voidsetSourceFolder(String sourceFolder)voidsetSourceLine(String sourceLine)StringtoString()
-
-
-
Constructor Detail
-
KeyOccurrence
public KeyOccurrence()
-
KeyOccurrence
public KeyOccurrence(org.apache.commons.vfs2.FileObject fileObject, String sourceFolder, String messagesPackage, int fileIndex, String key, String arguments, String sourceLine)- Parameters:
fileObject- The java source filemessagesPackage- The location of the messages file, derived from "^import .*Messages;"fileIndex- The position in the filekey- The i18n keyarguments- The arguments from the source code
-
-
Method Detail
-
compareTo
public int compareTo(KeyOccurrence occ)
- 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
public String getMessagesPackage()
- Returns:
- The location of the messages file
-
setMessagesPackage
public void setMessagesPackage(String messagesPackage)
- Parameters:
messagesPackage- The location of the messages file
-
getSourceFolder
public String getSourceFolder()
-
setSourceFolder
public void setSourceFolder(String sourceFolder)
-
getFileIndex
public int getFileIndex()
Gets fileIndex- Returns:
- value of fileIndex
-
setFileIndex
public void setFileIndex(int fileIndex)
- Parameters:
fileIndex- The fileIndex to set
-
getKey
public String getKey()
- Returns:
- The i18n key
-
setKey
public void setKey(String key)
- Parameters:
key- The i18n key
-
getArguments
public String getArguments()
- Returns:
- The arguments from the source code
-
setArguments
public void setArguments(String arguments)
- 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
public String getSourceLine()
- Returns:
- the line of source code on which the key occurs.
-
setSourceLine
public void setSourceLine(String sourceLine)
- Parameters:
sourceLine- the line of source code on which the key occurs.
-
-