ConversionPair

Contents
[ ]

Inheritance: java.lang.Object, com.groupdocs.conversion.contracts.ValueObject

public class ConversionPair extends ValueObject

Represents conversion pair

Fields

Field Description
NULL

Methods

Method Description
createPrimary(FileType source, FileType target) Creates primary conversion pair
createPrimary(List<? extends FileType> sources, List<? extends FileType> targets) Creates primary conversion pairs
createPrimary(List<? extends FileType> sources, List<? extends FileType> targets, Pair<FileType,FileType>[] excludedPairs)
createSecondary(FileType source, FileType target) Creates secondary conversion pair
createSecondary(Iterable<? extends FileType> sources, Iterable<? extends FileType> targets) Creates secondary conversion pairs
getEqualityComponents() Equality components
toString() Conversion pair string representation
getSource() Source file format
getTarget() Target file format
isPrimary() Primary conversion pair or not

NULL

public static final ConversionPair NULL

createPrimary(FileType source, FileType target)

public static ConversionPair createPrimary(FileType source, FileType target)

Creates primary conversion pair

Parameters:

Parameter Type Description
source FileType source
target FileType target

Returns: ConversionPair - ConversionPair

createPrimary(List<? extends FileType> sources, List<? extends FileType> targets)

public static List<ConversionPair> createPrimary(List<? extends FileType> sources, List<? extends FileType> targets)

Creates primary conversion pairs

Parameters:

Parameter Type Description
sources java.util.List<? extends com.groupdocs.conversion.filetypes.FileType> sources file type
targets java.util.List<? extends com.groupdocs.conversion.filetypes.FileType> targets file type

Returns: java.util.List<com.groupdocs.conversion.contracts.ConversionPair> - primary conversion pairs

createPrimary(List<? extends FileType> sources, List<? extends FileType> targets, Pair<FileType,FileType>[] excludedPairs)

public static List<ConversionPair> createPrimary(List<? extends FileType> sources, List<? extends FileType> targets, Pair<FileType,FileType>[] excludedPairs)

Parameters:

Parameter Type Description
sources java.util.List<? extends com.groupdocs.conversion.filetypes.FileType>
targets java.util.List<? extends com.groupdocs.conversion.filetypes.FileType>
excludedPairs com.groupdocs.conversion.contracts.Pair<com.groupdocs.conversion.filetypes.FileType,com.groupdocs.conversion.filetypes.FileType>[]

Returns: java.util.List<com.groupdocs.conversion.contracts.ConversionPair>

createSecondary(FileType source, FileType target)

public static ConversionPair createSecondary(FileType source, FileType target)

Creates secondary conversion pair

Parameters:

Parameter Type Description
source FileType source file type
target FileType target file type

Returns: ConversionPair - secondary conversion pair

createSecondary(Iterable<? extends FileType> sources, Iterable<? extends FileType> targets)

public static List<ConversionPair> createSecondary(Iterable<? extends FileType> sources, Iterable<? extends FileType> targets)

Creates secondary conversion pairs

Parameters:

Parameter Type Description
sources java.lang.Iterable<? extends com.groupdocs.conversion.filetypes.FileType> sources file type
targets java.lang.Iterable<? extends com.groupdocs.conversion.filetypes.FileType> targets file type

Returns: java.util.List<com.groupdocs.conversion.contracts.ConversionPair> - secondary conversion pairs

getEqualityComponents()

public System.Collections.Generic.IGenericEnumerable getEqualityComponents()

Equality components

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerable - equality components

toString()

public String toString()

Conversion pair string representation

Returns: java.lang.String - string

getSource()

public FileType getSource()

Source file format

Returns: FileType - source file format

getTarget()

public FileType getTarget()

Target file format

Returns: FileType - target file format

isPrimary()

public boolean isPrimary()

Primary conversion pair or not

Returns: boolean - true if primary, else if not