|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ksu.cis.projects.bogor.util.FileMessage
public class FileMessage
This class is used as a message related to a file position. Immutable.
| Constructor Summary | |
|---|---|
protected |
FileMessage(int line,
int column,
String key,
String text,
String pattern)
|
protected |
FileMessage(String key,
String text,
String pattern)
|
| Method Summary | |
|---|---|
static FileMessage |
buildMessage(int line,
int column,
String pattern,
String[] args)
Builds message using MessageFormat with line and column numbers info. |
static FileMessage |
buildMessage(int line,
int column,
String key,
String pattern,
String[] args)
Builds message using MessageFormat with line and column numbers info. |
static FileMessage |
buildMessage(String pattern,
String[] args)
Builds message using MessageFormat. |
static FileMessage |
buildMessage(String key,
String pattern,
String[] args)
Builds message using MessageFormat. |
int |
compareTo(Object o)
|
int |
getColumn()
Gets the column number. |
int |
getLine()
Gets the line number. |
String |
getOptionalKey()
|
String |
getPattern()
|
String |
getText()
Gets the text. |
boolean |
hasLocation()
Determines whether this message has a location info. |
String |
toString()
Returns the string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected FileMessage(int line,
int column,
String key,
String text,
String pattern)
protected FileMessage(String key,
String text,
String pattern)
| Method Detail |
|---|
public int getColumn()
public int getLine()
public String getText()
public static FileMessage buildMessage(String pattern,
String[] args)
pattern - The pattern for MessageFormat. Must be non-null.args - The arguments for the pattern. Must be non-null.
Each element must be non-null.
public static FileMessage buildMessage(String key,
String pattern,
String[] args)
key - The identifier of a particular property (e.g., a configuration
option) to which this error applies.pattern - The pattern for MessageFormat. Must be non-null.args - The arguments for the pattern. Must be non-null.
Each element must be non-null.
public static FileMessage buildMessage(int line,
int column,
String key,
String pattern,
String[] args)
key - The identifier of a particular property (e.g., a configuration
option) to which this error applies.line - The line number associated to the message.column - The column number associated to the message.pattern - The pattern for MessageFormat. Must be non-null.args - The arguments for the pattern. Must be non-null.
Each element must be non-null.
public static FileMessage buildMessage(int line,
int column,
String pattern,
String[] args)
key - The identifier of a particular property (e.g., a configuration
option) to which this error applies.line - The line number associated to the message.column - The column number associated to the message.pattern - The pattern for MessageFormat. Must be non-null.args - The arguments for the pattern. Must be non-null.
Each element must be non-null.
public int compareTo(Object o)
compareTo in interface Comparablepublic boolean hasLocation()
public String toString()
toString in class Objectpublic String getOptionalKey()
public String getPattern()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||