MetadataType

Contents
[ ]

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

public enum MetadataType extends Enum<MetadataType>

Determines from where the result document will take metadata information.

Example usage:


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

    SaveOptions saveOptions = new SaveOptions();
    saveOptions.setCloneMetadataType(MetadataType.FILE_AUTHOR);

    comparer.compare(resultFile, saveOptions);
 }
 

Fields

Field Description
DEFAULT Metadata will be left as is.
SOURCE Metedata will be taken from source document.
TARGET Metedata will be taken from target document.
FILE_AUTHOR Metedata will be set by user.

Methods

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

DEFAULT

public static final MetadataType DEFAULT

Metadata will be left as is.

SOURCE

public static final MetadataType SOURCE

Metedata will be taken from source document.

TARGET

public static final MetadataType TARGET

Metedata will be taken from target document.

FILE_AUTHOR

public static final MetadataType FILE_AUTHOR

Metedata will be set by user.

values()

public static MetadataType[] values()

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

valueOf(String name)

public static MetadataType valueOf(String name)

Parameters:

Parameter Type Description
name java.lang.String

Returns: MetadataType

fromString(String toStringValue)

public static MetadataType fromString(String toStringValue)

Parses string representation of MetadataType to get the enum constant.

Parameters:

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

Returns: MetadataType - MetadataType enum constant associated with input string

toString()

public String toString()

String representation of MetadataType.

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