MetadataType
Leave feedback
On this page
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);
}
| 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. |
| Method | Description |
|---|---|
| values() | |
| valueOf(String name) | |
| fromString(String toStringValue) | Parses string representation of MetadataType to get the enum constant. |
| toString() | String representation of MetadataType. |
public static final MetadataType DEFAULT
Metadata will be left as is.
public static final MetadataType SOURCE
Metedata will be taken from source document.
public static final MetadataType TARGET
Metedata will be taken from target document.
public static final MetadataType FILE_AUTHOR
Metedata will be set by user.
public static MetadataType[] values()
Returns: com.groupdocs.comparison.options.enums.MetadataType[]
public static MetadataType valueOf(String name)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String |
Returns: MetadataType
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
public String toString()
String representation of MetadataType.
Returns: java.lang.String - string value of enum constant
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.