Package org.daisy.dotify.api.formatter
Class SpanProperties.Builder
- java.lang.Object
-
- org.daisy.dotify.api.formatter.SpanProperties.Builder
-
- Enclosing class:
- SpanProperties
public static class SpanProperties.Builder extends Object
Provides a builder for span properties.
-
-
Constructor Summary
Constructors Constructor Description Builder()Creates a new empty builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpanPropertiesbuild()Builds span properties based on the current state of the builder.SpanProperties.Builderidentifier(String value)Sets an identifier.
-
-
-
Method Detail
-
identifier
public SpanProperties.Builder identifier(String value)
Sets an identifier.- Parameters:
value- the identifier- Returns:
- returns this object
- Throws:
NullPointerException- if value is null
-
build
public SpanProperties build()
Builds span properties based on the current state of the builder.- Returns:
- returns new span properties
-
-