Enum Class DiffGroup.GroupType

java.lang.Object
java.lang.Enum<DiffGroup.GroupType>
com.inet.pdfc.generator.model.DiffGroup.GroupType
All Implemented Interfaces:
com.inet.pdfc.config.ColorSetting, VisibilitySetting, Serializable, Comparable<DiffGroup.GroupType>, Constable
Enclosing class:
DiffGroup

public static enum DiffGroup.GroupType extends Enum<DiffGroup.GroupType> implements com.inet.pdfc.config.ColorSetting
Defines the type of a DiffGroup and thus how to interpret the content of the affected elements lists. The enumeration is ordered in descending order by severity. For further details about each type refer to the respective enum constant.
Since:
3.0
  • Enum Constant Details

    • AddedOrRemoved

      public static final DiffGroup.GroupType AddedOrRemoved
      Contains Modifications which describe a remove in the first document or an add in the second document.
      NOTE: There is no clear line between this type and 'Replaced'. The only difference is that this type is likely to contain mixed types of affected elements.
    • Replaced

      public static final DiffGroup.GroupType Replaced
      For this type, the Modifications contain elements of similar type and equal style(per side). This type is a special case of AddedOrRemoved. It is very likely but not guaranteed to be a content replacement.
    • Modified

      public static final DiffGroup.GroupType Modified
      The modified type indicates that the content in this group is similar on both documents but changed in style. As a result, both all Modification contain the same number of elements and each element is similar to it's counterpart in the other document.
    • ValidationError

      public static final DiffGroup.GroupType 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
    • MetadataChanged

      public static final DiffGroup.GroupType MetadataChanged
      This type occurs for changes in the meta data or a page or the whole document.
      NOTE: These elements in this group have artificial bounds to place them at least inside the document area. Their bounds do NOT necessarily represent the bounds of the references pages, the document, etc.
    • Sync

      public static final DiffGroup.GroupType Sync
      This is an optional type which is added by the generator at any identical locations in the document flow to help any graphical presenter to keep the presented pages in sync. If you don't need this feature, it's sufficient to ignore this type of groups
      The differences count of these groups will always yield zero.
  • Method Details

    • values

      public static DiffGroup.GroupType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DiffGroup.GroupType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isTypePainted

      public boolean isTypePainted()
      Indicates whether this group type is painted
      Returns:
      whether this group type is painted
    • valuesVisible

      public static DiffGroup.GroupType[] valuesVisible()
      Returns the groups which should be visible to the user by default. This excludes the sync-type for instance.
      Returns:
      the groups which should be visible to the user by default
    • getLocalizedName

      public String getLocalizedName()
      Returns the localized name for this type
      Returns:
      the localized name for this type
    • getTyp

      public String getTyp()
      Description copied from interface: VisibilitySetting
      The Visibility Type for this Setting (Enum)
      Specified by:
      getTyp in interface VisibilitySetting
      Returns:
      Type of Enum