Class FormatXML1RuntimeChildTags.Builder
- java.lang.Object
-
- com.io7m.coffeepick.runtime.format.xml.FormatXML1RuntimeChildTags.Builder
-
- Enclosing class:
- FormatXML1RuntimeChildTags
public static final class FormatXML1RuntimeChildTags.Builder extends java.lang.ObjectBuilds instances of typeFormatXML1RuntimeChildTags. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormatXML1RuntimeChildTags.BuilderaddAllTags(java.lang.Iterable<java.lang.String> elements)Adds elements totagsset.FormatXML1RuntimeChildTags.BuilderaddTags(java.lang.String element)Adds one element totagsset.FormatXML1RuntimeChildTags.BuilderaddTags(java.lang.String... elements)Adds elements totagsset.FormatXML1RuntimeChildTagsbuild()Builds a newFormatXML1RuntimeChildTags.FormatXML1RuntimeChildTags.Builderfrom(FormatXML1RuntimeChildType.FormatXML1RuntimeChildTagsType instance)Fill a builder with attribute values from the providedFormatXML1RuntimeChildTagsTypeinstance.FormatXML1RuntimeChildTags.BuildersetTags(java.lang.Iterable<java.lang.String> elements)Sets or replaces all elements fortagsset.
-
-
-
Method Detail
-
from
public final FormatXML1RuntimeChildTags.Builder from(FormatXML1RuntimeChildType.FormatXML1RuntimeChildTagsType instance)
Fill a builder with attribute values from the providedFormatXML1RuntimeChildTagsTypeinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addTags
public final FormatXML1RuntimeChildTags.Builder addTags(java.lang.String element)
Adds one element totagsset.- Parameters:
element- A tags element- Returns:
thisbuilder for use in a chained invocation
-
addTags
public final FormatXML1RuntimeChildTags.Builder addTags(java.lang.String... elements)
Adds elements totagsset.- Parameters:
elements- An array of tags elements- Returns:
thisbuilder for use in a chained invocation
-
setTags
public final FormatXML1RuntimeChildTags.Builder setTags(java.lang.Iterable<java.lang.String> elements)
Sets or replaces all elements fortagsset.- Parameters:
elements- An iterable of tags elements- Returns:
thisbuilder for use in a chained invocation
-
addAllTags
public final FormatXML1RuntimeChildTags.Builder addAllTags(java.lang.Iterable<java.lang.String> elements)
Adds elements totagsset.- Parameters:
elements- An iterable of tags elements- Returns:
thisbuilder for use in a chained invocation
-
build
public FormatXML1RuntimeChildTags build()
Builds a newFormatXML1RuntimeChildTags.- Returns:
- An immutable instance of FormatXML1RuntimeChildTags
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-
-