com.groupdocs.conversion.contracts

Class PossibleConversions

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


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

      • PossibleConversions

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

      • getLoadOptions

        public LoadOptions getLoadOptions()
        Predefined load options which could be used to convert from current type
        Returns:
        load options
      • getAll

        public Iterable<com.groupdocs.conversion.contracts.TargetConversion> getAll()
        All target file types and primary/secondary flag
        Returns:
        Iterable of TargetConversion
      • getTargetConversion

        public com.groupdocs.conversion.contracts.TargetConversion getTargetConversion(FileType target)
        Returns target conversion for specified target file type
        Parameters:
        target - target file type
        Returns:
        conversions
      • getTargetConversion

        public com.groupdocs.conversion.contracts.TargetConversion getTargetConversion(String extension)
      • 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