public enum MetadataType extends Enum<MetadataType>
Example usage:
try (Comparer comparer = new Comparer(sourceFile)) {
comparer.add(targetFile);
SaveOptions saveOptions = new SaveOptions();
saveOptions.setCloneMetadataType(MetadataType.FILE_AUTHOR);
comparer.compare(resultFile, saveOptions);
}
Comparer,
SaveOptions| Enum Constant and Description |
|---|
DEFAULT
Metadata will be left as is.
|
FILE_AUTHOR
Metedata will be set by user.
|
SOURCE
Metedata will be taken from source document.
|
TARGET
Metedata will be taken from target document.
|
| Modifier and Type | Method and Description |
|---|---|
static MetadataType |
fromString(String toStringValue)
Parses string representation of MetadataType to get the enum constant.
|
String |
toString()
String representation of MetadataType.
|
static MetadataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetadataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetadataType DEFAULT
Metadata will be left as is.
public static final MetadataType FILE_AUTHOR
Metedata will be set by user.
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 MetadataType fromString(String toStringValue)
Parses string representation of MetadataType to get the enum constant.
toStringValue - The string representation of MetadataTypeIllegalArgumentException - if string is not one of MetadataType valuespublic String toString()
String representation of MetadataType.
toString in class Enum<MetadataType>public static MetadataType 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 MetadataType[] values()
for (MetadataType c : MetadataType.values()) System.out.println(c);
Copyright © 2024. All rights reserved.