public static final class JSXValidationError.Builder
extends java.lang.Object
JSXValidationError.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method | Description |
|---|---|---|
JSXValidationError |
build() |
Builds a new
JSXValidationError. |
JSXValidationError.Builder |
from(JSXValidationErrorType instance) |
Fill a builder with attribute values from the provided
JSXValidationErrorType instance. |
JSXValidationError.Builder |
setLex(com.io7m.jlexing.core.LexicalPositionType<java.nio.file.Path> lex) |
Initializes the value for the
lex attribute. |
JSXValidationError.Builder |
setMessage(java.lang.String message) |
Initializes the value for the
message attribute. |
public final JSXValidationError.Builder from(JSXValidationErrorType instance)
JSXValidationErrorType instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final JSXValidationError.Builder setLex(com.io7m.jlexing.core.LexicalPositionType<java.nio.file.Path> lex)
lex attribute.lex - The value for lexthis builder for use in a chained invocationpublic final JSXValidationError.Builder setMessage(java.lang.String message)
message attribute.message - The value for messagethis builder for use in a chained invocationpublic JSXValidationError build()
JSXValidationError.java.lang.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com