|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jet.ContextLogEntry.Builder
public static final class ContextLogEntry.Builder
Builder for ContextLogEntry
entities
Constructor Summary | |
---|---|
ContextLogEntry.Builder(ContextLogEntry[] children)
Create a ContextLogEntry Builder that summarizes a collection of other ContextLog Entries. |
|
ContextLogEntry.Builder(int severity)
Create a ContextLogEntry Builder for a single entry with the indicated severity |
Method Summary | |
---|---|
ContextLogEntry |
build()
Construct the ContextLogEntry based on information provided in the builder. |
ContextLogEntry.Builder |
exception(java.lang.Throwable exception)
Specify an exception for the ContextLogEntry. |
int |
getSeverity()
Returnt the severity for the log entry |
ContextLogEntry.Builder |
location(int line,
int col)
Specify the template line and column for the entry. |
ContextLogEntry.Builder |
message(java.lang.String message)
Specify an option message for the ContextLogEntry. |
ContextLogEntry.Builder |
tagInfo(TagInfo tagInfo)
Specify the JET tag information for this entry. |
ContextLogEntry.Builder |
templatePath(java.lang.String templatePath)
Specify the template path where the entry originates Note that this replaces any previously specified templatePath for the entry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContextLogEntry.Builder(ContextLogEntry[] children)
children
- a non-null list of ContextLogEntries
java.lang.NullPointerException
- if children is null
or an array entry is null
public ContextLogEntry.Builder(int severity)
severity
- one of ContextLogEntry.OK
, ContextLogEntry.INFO
,
ContextLogEntry.WARNING
, ContextLogEntry.ERROR
or ContextLogEntry.CANCEL
java.lang.IllegalArgumentException
- if severity is not a valid valueMethod Detail |
---|
public ContextLogEntry.Builder message(java.lang.String message)
message
- a message, possibly null
public ContextLogEntry.Builder exception(java.lang.Throwable exception)
exception
- an exception, possibly null
public ContextLogEntry.Builder templatePath(java.lang.String templatePath)
templatePath
- a template path
public ContextLogEntry.Builder location(int line, int col)
line
- the linecol
- the column
public ContextLogEntry.Builder tagInfo(TagInfo tagInfo)
tagInfo
- a tag information object
java.lang.NullPointerException
- if tagInfo is nullpublic ContextLogEntry build()
public int getSeverity()
ContextLogEntry.OK
, ContextLogEntry.INFO
, ContextLogEntry.WARNING
, ContextLogEntry.ERROR
, ContextLogEntry.CANCEL
.
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |