public static final class DocumentFormat.Builder extends Object
DocumentFormat.DocumentFormat| Modifier and Type | Method and Description |
|---|---|
@NonNull DocumentFormat |
build()
Creates the converter that is specified by this builder.
|
@NonNull DocumentFormat.Builder |
extension(@NonNull String extension)
Specifies the extension associated with the document format.
|
@NonNull DocumentFormat.Builder |
from(@NonNull DocumentFormat sourceFormat)
Initializes the builder by copying the properties of the specified document format.
|
@NonNull DocumentFormat.Builder |
inputFamily(@Nullable DocumentFamily inputFamily)
Specifies the input (when a document is loaded) DocumentFamily associated with the document
format.
|
@NonNull DocumentFormat.Builder |
loadFilterName(@Nullable String value)
Sets the
FilterName property to the builder that will be applied when loading (open)
a document of this format. |
@NonNull DocumentFormat.Builder |
loadFilterOptions(@Nullable String value)
Sets the
FilterOptions property to the builder that will be applied when loading
(open) a document of this format. |
@NonNull DocumentFormat.Builder |
loadProperty(@NonNull String name,
@Nullable Object value)
Adds a property to the builder that will be applied when loading (open) a document of this
format.
|
@NonNull DocumentFormat.Builder |
mediaType(@NonNull String mediaType)
Specifies the media (mime) type of the document format.
|
@NonNull DocumentFormat.Builder |
name(@NonNull String name)
Specifies the name of the document format.
|
@NonNull DocumentFormat.Builder |
storeFilterName(@NonNull DocumentFamily documentFamily,
@Nullable String value)
Sets the
FilterName property that will be applied when storing (save) a document to
this format from a document of the specified family. |
@NonNull DocumentFormat.Builder |
storeFilterOptions(@NonNull DocumentFamily documentFamily,
@Nullable String value)
Sets the
FilterOptions property that will be applied when storing (save) a document
to this format from a document of the specified family. |
@NonNull DocumentFormat.Builder |
storeProperty(@NonNull DocumentFamily documentFamily,
@NonNull String name,
@Nullable Object value)
Adds a property to the builder that will be applied when storing (save) a document to this
format from a document of the specified family.
|
@NonNull DocumentFormat.Builder |
unmodifiable(boolean unmodifiable)
Specifies whether the document format is unmodifiable after creation.
|
public @NonNull DocumentFormat build()
public @NonNull DocumentFormat.Builder from(@NonNull DocumentFormat sourceFormat)
sourceFormat - The source document format, cannot be null.public @NonNull DocumentFormat.Builder extension(@NonNull String extension)
extension - The extension, cannot be null.public @NonNull DocumentFormat.Builder inputFamily(@Nullable DocumentFamily inputFamily)
inputFamily - The DocumentFamily, may be null.public @NonNull DocumentFormat.Builder loadProperty(@NonNull String name, @Nullable Object value)
name - The property name, cannot be null.value - The property value, may be null. If null, it will REMOVE the property from the
map.public @NonNull DocumentFormat.Builder loadFilterName(@Nullable String value)
FilterName property to the builder that will be applied when loading (open)
a document of this format.
value - The FilterName value, may be null. If null, it will REMOVE the FilterName from the map.public @NonNull DocumentFormat.Builder loadFilterOptions(@Nullable String value)
FilterOptions property to the builder that will be applied when loading
(open) a document of this format.value - The FilterOptions value, may be null. If null, it will REMOVE the FilterName from the map.public @NonNull DocumentFormat.Builder mediaType(@NonNull String mediaType)
mediaType - A string that represents the media type, cannot be null.public @NonNull DocumentFormat.Builder name(@NonNull String name)
name - The name of the document format, cannot be null.public @NonNull DocumentFormat.Builder unmodifiable(boolean unmodifiable)
true.unmodifiable - true if the created document format cannot be modified after
creation, false otherwise.public @NonNull DocumentFormat.Builder storeProperty(@NonNull DocumentFamily documentFamily, @NonNull String name, @Nullable Object value)
documentFamily - The document family of the source (loaded) document, cannot be null.name - The property name, cannot be null.value - The property value, may be null. If null, it will REMOVE the property from the
map.public @NonNull DocumentFormat.Builder storeFilterName(@NonNull DocumentFamily documentFamily, @Nullable String value)
FilterName property that will be applied when storing (save) a document to
this format from a document of the specified family.
documentFamily - The document family of the source (loaded) document, cannot be null.value - The FilterName value, may be null. If null, it will REMOVE the property
from the map.public @NonNull DocumentFormat.Builder storeFilterOptions(@NonNull DocumentFamily documentFamily, @Nullable String value)
FilterOptions property that will be applied when storing (save) a document
to this format from a document of the specified family.documentFamily - The document family of the source (loaded) document, cannot be null.value - The FilterOptions value, may be null. If null, it will REMOVE the
property from the map.Copyright © 2016 - present; JODConverter.org. All rights reserved.