com.groupdocs.conversion.contracts

Class PossibleConversions

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<ValueObject>


    public final class PossibleConversions
    extends ValueObject
    Represents a mapping what conversion pairs are supported for specific source file format
    • Constructor Detail

      • PossibleConversions

        public PossibleConversions(FileType source)
        Creates possible conversion list for specified source file format
        Parameters:
        source - source file type
    • Method Detail

      • getAll

        public Iterable<com.groupdocs.conversion.contracts.Pair<FileType,Boolean>> getAll()
        All target file types and primary/secondary flag
        Returns:
        target file types
      • getPrimary

        public Iterable<FileType> getPrimary()
        Primary target file types
        Returns:
        primary target file types
      • getSecondary

        public Iterable<FileType> getSecondary()
        Secondary target file types
        Returns:
        secondary target file types
      • add

        public void add(ConversionPair pair)
        Add conversion pair
        Parameters:
        pair - conversion pair
      • forTarget

        public ConversionPair forTarget(FileType target)
        Find conversion pair in current list for target file type
        Parameters:
        target - target file type
        Returns:
        conversion pair
      • getSource

        public FileType getSource()
        Source file formats
        Returns:
        file formats