PossibleConversions
Inheritance: java.lang.Object, com.groupdocs.conversion.contracts.ValueObject
public final class PossibleConversions extends ValueObject
Represents a mapping what conversion pairs are supported for specific source file format
Constructors
Constructor | Description |
---|---|
PossibleConversions(FileType source) | Creates possible conversion list for specified source file format |
Fields
Field | Description |
---|---|
NULL |
Methods
Method | Description |
---|---|
getLoadOptions() | Predefined load options which could be used to convert from current type |
getAll() | All target file types and primary/secondary flag |
getTargetConversion(FileType target) | Returns target conversion for specified target file type |
getTargetConversion(String extension) | |
getPrimary() | Primary target file types |
getSecondary() | Secondary target file types |
add(ConversionPair pair) | Add conversion pair |
forTarget(FileType target) | Find conversion pair in current list for target file type |
getSource() | Source file formats |
PossibleConversions(FileType source)
public PossibleConversions(FileType source)
Creates possible conversion list for specified source file format
Parameters:
Parameter | Type | Description |
---|---|---|
source | FileType | source file type |
NULL
public static final PossibleConversions NULL
getLoadOptions()
public LoadOptions getLoadOptions()
Predefined load options which could be used to convert from current type
Returns: LoadOptions - load options
getAll()
public Iterable<TargetConversion> getAll()
All target file types and primary/secondary flag
Returns: java.lang.Iterable<com.groupdocs.conversion.contracts.TargetConversion> - Iterable of TargetConversion
getTargetConversion(FileType target)
public TargetConversion getTargetConversion(FileType target)
Returns target conversion for specified target file type
Parameters:
Parameter | Type | Description |
---|---|---|
target | FileType | target file type |
Returns: TargetConversion - conversions
getTargetConversion(String extension)
public TargetConversion getTargetConversion(String extension)
Parameters:
Parameter | Type | Description |
---|---|---|
extension | java.lang.String |
Returns: TargetConversion
getPrimary()
public Iterable<FileType> getPrimary()
Primary target file types
Returns: java.lang.Iterable<com.groupdocs.conversion.filetypes.FileType> - primary target file types
getSecondary()
public Iterable<FileType> getSecondary()
Secondary target file types
Returns: java.lang.Iterable<com.groupdocs.conversion.filetypes.FileType> - secondary target file types
add(ConversionPair pair)
public void add(ConversionPair pair)
Add conversion pair
Parameters:
Parameter | Type | Description |
---|---|---|
pair | ConversionPair | conversion pair |
forTarget(FileType target)
public ConversionPair forTarget(FileType target)
Find conversion pair in current list for target file type
Parameters:
Parameter | Type | Description |
---|---|---|
target | FileType | target file type |
Returns: ConversionPair - conversion pair
getSource()
public FileType getSource()
Source file formats
Returns: FileType - file formats