public enum PreservationMode extends java.lang.Enum<PreservationMode> implements DitaCompareDisplayable
Enum Constant and Description |
---|
AUTOMATIC
Chooses the most appropriate setting based on the output format.
|
DOC_AND_ATTRIB
Preserve document typing and original attribute information.
|
DOCUMENT
Preserve document typing information.
|
ENTITY_REF
Enhance round-trip processing by analysing entity contents.
|
NESTED_ENTITY_REF
Enhance round-trip processing by analysing both entity and nested entity contents.
|
ROUND_TRIP
Preserve document type, entity usage, and attribute usage data.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplayDescription()
Returns the user friendly String description of the PreservationMode.
|
java.lang.String |
getDisplayName()
Returns the user friendly String name of the PreservationMode.
|
static PreservationMode |
getPreservationMode(java.lang.String value)
Returns a PreservationMode object from the supplied String value if appropriate.
|
static PreservationMode |
parseValue(java.lang.String value)
Returns a PreservationMode object from the supplied String value if appropriate.
|
java.lang.String |
toString()
Returns a String representation of PreservationMode.
|
static PreservationMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PreservationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PreservationMode AUTOMATIC
public static final PreservationMode DOCUMENT
public static final PreservationMode DOC_AND_ATTRIB
public static final PreservationMode ROUND_TRIP
public static final PreservationMode ENTITY_REF
public static final PreservationMode NESTED_ENTITY_REF
public static PreservationMode[] values()
for (PreservationMode c : PreservationMode.values()) System.out.println(c);
public static PreservationMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDisplayName()
Returns the user friendly String name of the PreservationMode.
getDisplayName
in interface DitaCompareDisplayable
public java.lang.String getDisplayDescription()
Returns the user friendly String description of the PreservationMode.
getDisplayDescription
in interface DitaCompareDisplayable
public java.lang.String toString()
Returns a String representation of PreservationMode.
toString
in class java.lang.Enum<PreservationMode>
public static PreservationMode getPreservationMode(java.lang.String value)
Returns a PreservationMode object from the supplied String value if appropriate.
This method should not be used under normal circumstances, enum instance values should be used instead.
value
- a String representation of a PreservationMode valuepublic static PreservationMode parseValue(java.lang.String value) throws java.lang.IllegalArgumentException
Returns a PreservationMode object from the supplied String value if appropriate.
This method should not be used under normal circumstances, enum instance values should be used instead.
value
- a String representation of a PreservationMode valuejava.lang.IllegalArgumentException
- Whenever the provided string does not represent one of this enum'e enumerated values.Copyright © 2001-2016 DeltaXML Ltd. All Rights Reserved.