Package com.inet.pdfc.generator.model
Enum Class 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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionContainsModification
s 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'.This type occurs for changes in the meta data or a page or the whole document.The modified type indicates that the content in this group is similar on both documents but changed in style.For this type, theModification
s contain elements of similar type and equal style(per side).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.A validation error is an indicator for a problem on a singular element. -
Method Summary
Modifier and TypeMethodDescriptionReturns the localized name for this typegetTyp()
The Visibility Type for this Setting (Enum)boolean
Indicates whether this group type is paintedstatic DiffGroup.GroupType
Returns the enum constant of this class with the specified name.static DiffGroup.GroupType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.static DiffGroup.GroupType[]
Returns the groups which should be visible to the user by default.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.inet.pdfc.config.VisibilitySetting
getTranslationKey, name
-
Enum Constant Details
-
AddedOrRemoved
ContainsModification
s 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
For this type, theModification
s 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
The modified type indicates that the content in this group is similar on both documents but changed in style. As a result, both allModification
contain the same number of elements and each element is similar to it's counterpart in the other document. -
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
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
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
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
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 nameNullPointerException
- if the argument is null
-
isTypePainted
public boolean isTypePainted()Indicates whether this group type is painted- Returns:
- whether this group type is painted
-
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
Returns the localized name for this type- Returns:
- the localized name for this type
-
getTyp
Description copied from interface:VisibilitySetting
The Visibility Type for this Setting (Enum)- Specified by:
getTyp
in interfaceVisibilitySetting
- Returns:
- Type of Enum
-