public static class ParseWarning.Builder extends Object
ParseWarning class.| Constructor and Description |
|---|
Builder()
Creates an empty builder.
|
Builder(ParseContext context)
Initializes the builder with data from the parse context.
|
| Modifier and Type | Method and Description |
|---|---|
ParseWarning |
build()
Builds the
ParseWarning object. |
ParseWarning.Builder |
lineNumber(Integer lineNumber)
Sets the line number that the warning occurred on.
|
ParseWarning.Builder |
message(CannotParseException exception)
Sets the warning message, based on the contents of a
CannotParseException. |
ParseWarning.Builder |
message(int code,
Object... args)
Sets the warning message.
|
ParseWarning.Builder |
message(String message)
Sets the warning message.
|
ParseWarning.Builder |
propertyName(String propertyName)
Sets the name of the property that the warning occurred on.
|
public Builder()
public Builder(ParseContext context)
context - the parse contextpublic ParseWarning.Builder propertyName(String propertyName)
propertyName - the property name (e.g. "DTSTART") or null if not
applicablepublic ParseWarning.Builder lineNumber(Integer lineNumber)
lineNumber - the line number or null if not applicablepublic ParseWarning.Builder message(int code, Object... args)
code - the message codeargs - the message argumentspublic ParseWarning.Builder message(String message)
message - the warning messagepublic ParseWarning.Builder message(CannotParseException exception)
CannotParseException.exception - the exceptionpublic ParseWarning build()
ParseWarning object.ParseWarning objectCopyright © 2012–2023 Michael Angstadt. All rights reserved.