ComparisonType

Contents
[ ]

Inheritance: java.lang.Object, java.lang.Enum

public enum ComparisonType extends Enum<ComparisonType>

Represents the type of comparison to be performed.

Example usage:


 try (Comparer comparer = new Comparer(sourceFile)) {
    comparer.add(targetFile);

    CompareOptions compareOptions = new CompareOptions();
    compareOptions.setComparisonType(ComparisonType.CELLS);

    comparer.compare(resultFile, compareOptions);
 }
 

Fields

Field Description
TEXT Files must be compared as text documents.
SLIDES Files must be compared as presentation documents.
WORDS Files must be compared as words documents.
CELLS Files must be compared as excel documents.
PDF Files must be compared as pdf documents.
IMAGING Files must be compared as image documents.
EMAIL Files must be compared as email documents.
NOTE Files must be compared as note documents.
HTML Files must be compared as html documents.
DIAGRAM Files must be compared as diagram documents.
DIFFERENT Files must be compared as documents in different formats.
SVG Files must be compared as svg documents.
UNDEFINED For internal use.

Methods

Method Description
values()
valueOf(String name)
fromString(String toStringValue) Parses string representation of ComparisonType to get the enum constant.
toString() String representation of ComparisonType.

TEXT

public static final ComparisonType TEXT

Files must be compared as text documents.

SLIDES

public static final ComparisonType SLIDES

Files must be compared as presentation documents.

WORDS

public static final ComparisonType WORDS

Files must be compared as words documents.

CELLS

public static final ComparisonType CELLS

Files must be compared as excel documents.

PDF

public static final ComparisonType PDF

Files must be compared as pdf documents.

IMAGING

public static final ComparisonType IMAGING

Files must be compared as image documents.

EMAIL

public static final ComparisonType EMAIL

Files must be compared as email documents.

NOTE

public static final ComparisonType NOTE

Files must be compared as note documents.

HTML

public static final ComparisonType HTML

Files must be compared as html documents.

DIAGRAM

public static final ComparisonType DIAGRAM

Files must be compared as diagram documents.

DIFFERENT

public static final ComparisonType DIFFERENT

Files must be compared as documents in different formats.

SVG

public static final ComparisonType SVG

Files must be compared as svg documents.

UNDEFINED

public static final ComparisonType UNDEFINED

For internal use.

values()

public static ComparisonType[] values()

Returns: com.groupdocs.comparison.options.enums.ComparisonType[]

valueOf(String name)

public static ComparisonType valueOf(String name)

Parameters:

Parameter Type Description
name java.lang.String

Returns: ComparisonType

fromString(String toStringValue)

public static ComparisonType fromString(String toStringValue)

Parses string representation of ComparisonType to get the enum constant.

Parameters:

Parameter Type Description
toStringValue java.lang.String The string representation of ComparisonType

Returns: ComparisonType - ComparisonType enum constant associated with input string

toString()

public String toString()

String representation of ComparisonType.

Returns: java.lang.String - string value of enum constant