Class InternalContract.Builder
- java.lang.Object
-
- org.daisy.braille.utils.impl.tools.embosser.InternalContract.Builder
-
- Enclosing class:
- InternalContract
public static class InternalContract.Builder extends Object
Provides a builder for Contract.
-
-
Constructor Summary
Constructors Constructor Description Builder()Creates a new Builder with no specified Contract properties.Builder(InternalContract contract)Creates a new Builder using the specification in the supplied contract.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InternalContract.BuilderaddRowGap(Integer value)Adds a row gap value to the builder.InternalContractbuild()Builds a new Contract based on this builders current configuration.InternalContract.BuildersetBrailleRange(InternalContract.BrailleRange value)Sets the braille range for Contracts created using this builder.InternalContract.BuildersetPages(Integer value)Sets the number of pages for Contracts created using this builder.
-
-
-
Constructor Detail
-
Builder
public Builder()
Creates a new Builder with no specified Contract properties.
-
Builder
public Builder(InternalContract contract)
Creates a new Builder using the specification in the supplied contract.- Parameters:
contract- the contract to use
-
-
Method Detail
-
setBrailleRange
public InternalContract.Builder setBrailleRange(InternalContract.BrailleRange value)
Sets the braille range for Contracts created using this builder.- Parameters:
value- the braille range- Returns:
- returns this object
-
setPages
public InternalContract.Builder setPages(Integer value)
Sets the number of pages for Contracts created using this builder.- Parameters:
value- the number of pages- Returns:
- returns this object
-
addRowGap
public InternalContract.Builder addRowGap(Integer value)
Adds a row gap value to the builder.- Parameters:
value- the value- Returns:
- returns the value
-
build
public InternalContract build()
Builds a new Contract based on this builders current configuration.- Returns:
- returns a new Contract
-
-