public class AbstractStructuredOutput.TagBuilder extends Object
AbstractStructuredOutput.beginObject(String, Attribute...)
.Constructor and Description |
---|
TagBuilder(String name)
Creates a new TabBuilder with the given tag name
|
Modifier and Type | Method and Description |
---|---|
AbstractStructuredOutput.TagBuilder |
addAttribute(String name,
String value)
Adds an attribute to the tag
|
void |
build()
Finally creates the tag or object with the given name and attributes.
|
public TagBuilder(String name)
name
- the name of the resulting tagpublic AbstractStructuredOutput.TagBuilder addAttribute(@Nonnull String name, @Nullable String value)
name
- the name of the attribute to addvalue
- the value of the attribute to addpublic void build()
Copyright © 2018. All rights reserved.