public static final class SMFFormatDescription.Builder extends Object
SMFFormatDescription.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
SMFFormatDescription |
build()
Builds a new
SMFFormatDescription. |
SMFFormatDescription.Builder |
from(SMFFormatDescriptionType instance)
Fill a builder with attribute values from the provided
SMFFormatDescriptionType instance. |
SMFFormatDescription.Builder |
setDescription(String description)
Initializes the value for the
description attribute. |
SMFFormatDescription.Builder |
setMimeType(String mimeType)
Initializes the value for the
mimeType attribute. |
SMFFormatDescription.Builder |
setName(String name)
Initializes the value for the
name attribute. |
SMFFormatDescription.Builder |
setRandomAccess(boolean randomAccess)
Initializes the value for the
randomAccess attribute. |
SMFFormatDescription.Builder |
setSuffix(String suffix)
Initializes the value for the
suffix attribute. |
public final SMFFormatDescription.Builder from(SMFFormatDescriptionType instance)
SMFFormatDescriptionType instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SMFFormatDescription.Builder setDescription(String description)
description attribute.description - The value for descriptionthis builder for use in a chained invocationpublic final SMFFormatDescription.Builder setSuffix(String suffix)
suffix attribute.suffix - The value for suffixthis builder for use in a chained invocationpublic final SMFFormatDescription.Builder setMimeType(String mimeType)
mimeType attribute.mimeType - The value for mimeTypethis builder for use in a chained invocationpublic final SMFFormatDescription.Builder setName(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic final SMFFormatDescription.Builder setRandomAccess(boolean randomAccess)
randomAccess attribute.randomAccess - The value for randomAccessthis builder for use in a chained invocationpublic SMFFormatDescription build()
SMFFormatDescription.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com