public enum ComparisonType extends Enum<ComparisonType>
Example usage:
try (Comparer comparer = new Comparer(sourceFile)) {
comparer.add(targetFile);
CompareOptions compareOptions = new CompareOptions();
compareOptions.setComparisonType(ComparisonType.CELLS);
comparer.compare(resultFile, compareOptions);
}
Comparer,
CompareOptions| Enum Constant and Description |
|---|
CELLS
Files must be compared as excel documents.
|
DIAGRAM
Files must be compared as diagram documents.
|
DIFFERENT
Files must be compared as documents in different formats.
|
EMAIL
Files must be compared as email documents.
|
HTML
Files must be compared as html documents.
|
IMAGING
Files must be compared as image documents.
|
NOTE
Files must be compared as note documents.
|
PDF
Files must be compared as pdf documents.
|
SLIDES
Files must be compared as presentation documents.
|
SVG
Files must be compared as svg documents.
|
TEXT
Files must be compared as text documents.
|
UNDEFINED
For internal use.
|
WORDS
Files must be compared as words documents.
|
| Modifier and Type | Method and Description |
|---|---|
static ComparisonType |
fromString(String toStringValue)
Parses string representation of ComparisonType to get the enum constant.
|
String |
toString()
String representation of ComparisonType.
|
static ComparisonType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComparisonType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComparisonType CELLS
public static final ComparisonType DIAGRAM
public static final ComparisonType DIFFERENT
public static final ComparisonType EMAIL
public static final ComparisonType HTML
public static final ComparisonType IMAGING
public static final ComparisonType NOTE
public static final ComparisonType PDF
public static final ComparisonType SLIDES
public static final ComparisonType SVG
public static final ComparisonType TEXT
public static final ComparisonType UNDEFINED
public static final ComparisonType WORDS
public static ComparisonType fromString(String toStringValue)
Parses string representation of ComparisonType to get the enum constant.
toStringValue - The string representation of ComparisonTypeIllegalArgumentException - if string is not one of ComparisonType valuespublic String toString()
String representation of ComparisonType.
toString in class Enum<ComparisonType>public static ComparisonType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ComparisonType[] values()
for (ComparisonType c : ComparisonType.values()) System.out.println(c);
Copyright © 2024. All rights reserved.