public class KeyOccurrence extends Object implements Comparable<KeyOccurrence>
Constructor and Description |
---|
KeyOccurrence() |
KeyOccurrence(org.apache.commons.vfs.FileObject fileObject,
String sourceFolder,
String messagesPackage,
int row,
int column,
String key,
String arguments,
String sourceLine) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(KeyOccurrence occ) |
boolean |
equals(Object occ) |
String |
getArguments() |
int |
getColumn() |
org.apache.commons.vfs.FileObject |
getFileObject() |
String |
getKey() |
String |
getMessagesPackage() |
int |
getOccurrences() |
int |
getRow() |
String |
getSourceFolder() |
String |
getSourceLine() |
void |
incrementOccurrences()
Increment the number of occurrences with one.
|
void |
setArguments(String arguments) |
void |
setColumn(int column) |
void |
setFileObject(org.apache.commons.vfs.FileObject fileObject) |
void |
setKey(String key) |
void |
setMessagesPackage(String messagesPackage) |
void |
setOccurrences(int occurrences) |
void |
setRow(int row) |
void |
setSourceFolder(String sourceFolder) |
void |
setSourceLine(String sourceLine) |
String |
toString() |
public KeyOccurrence()
public KeyOccurrence(org.apache.commons.vfs.FileObject fileObject, String sourceFolder, String messagesPackage, int row, int column, String key, String arguments, String sourceLine)
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 codepublic int compareTo(KeyOccurrence occ)
compareTo
in interface Comparable<KeyOccurrence>
public org.apache.commons.vfs.FileObject getFileObject()
public void setFileObject(org.apache.commons.vfs.FileObject fileObject)
fileObject
- The java source filepublic String getMessagesPackage()
public void setMessagesPackage(String messagesPackage)
messagesPackage
- The location of the messages filepublic String getSourceFolder()
public void setSourceFolder(String sourceFolder)
public int getRow()
public void setRow(int row)
row
- The row on which the occurrence takes placepublic int getColumn()
public void setColumn(int column)
column
- The column on which the occurrence takes placepublic String getKey()
public void setKey(String key)
key
- The i18n keypublic String getArguments()
public void setArguments(String arguments)
arguments
- The arguments from the source codepublic int getOccurrences()
public void setOccurrences(int occurrences)
occurrences
- The number of occurrencespublic void incrementOccurrences()
public String getSourceLine()
public void setSourceLine(String sourceLine)
sourceLine
- the line of source code on which the key occurs.