public interface Field
Modifier and Type | Method and Description |
---|---|
void |
apply(String token,
EventBuilder builder)
Apply the field's value to the builder.
|
Set<Class<? extends EventBuilder>> |
getExpectedBuilderTypes()
Get the set of event builder types that this field can apply to.
|
boolean |
isOptional()
Query whether this field is optional.
|
boolean isOptional()
true
if the field is optional.void apply(String token, EventBuilder builder)
token
- The field value (or null
if this is a nonexistent optional field).builder
- The builder into which to set the value.Set<Class<? extends EventBuilder>> getExpectedBuilderTypes()