Package com.inet.pdfc.generator.model
Enum Modification.ModificationType
- java.lang.Object
-
- java.lang.Enum<Modification.ModificationType>
-
- com.inet.pdfc.generator.model.Modification.ModificationType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Modification.ModificationType>
- Enclosing class:
- Modification
public static enum Modification.ModificationType extends java.lang.Enum<Modification.ModificationType>
The type of the modification which side has modifications and whether the changes do apply- This is loosely coupled to the severity type ofDiffGroup
s.- Since:
- 3.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description add
There are only new affected elements in the second document.attributeDifference
There are affected elements in both documents and their number is equal as they are themselves basically equal.remove
There are only removed affected elements in the first document.replace
There are affected elements in both documents but their number may differ.validationError
A validation error is an indicator for a problem on a singular element.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Modification.ModificationType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Modification.ModificationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
add
public static final Modification.ModificationType add
There are only new affected elements in the second document. Attribute changes do not apply and are empty.
-
remove
public static final Modification.ModificationType remove
There are only removed affected elements in the first document. Attribute changes do not apply and are empty.
-
replace
public static final Modification.ModificationType replace
There are affected elements in both documents but their number may differ. Attribute changes do not apply and are empty.
-
attributeDifference
public static final Modification.ModificationType attributeDifference
There are affected elements in both documents and their number is equal as they are themselves basically equal. Since their style or other attributed where changed, the attribute-difference does apply to all elements in this modification.
-
validationError
public static final Modification.ModificationType validationError
A validation error is an indicator for a problem on a singular element. The Element will only be highlighted, but no grouped change should be displayed.- Since:
- 5.2
-
-
Method Detail
-
values
public static Modification.ModificationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Modification.ModificationType c : Modification.ModificationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Modification.ModificationType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-