com.atlassian.confluence.diff
Enum DiffType

java.lang.Object
  extended by java.lang.Enum<DiffType>
      extended by com.atlassian.confluence.diff.DiffType
All Implemented Interfaces:
Serializable, Comparable<DiffType>

public enum DiffType
extends Enum<DiffType>

Holds all the different types of diffs and the styles applied to them This need to be available because some email clients don't support adding style classes to emails.


Enum Constant Summary
ADDED_CHARACTERS
           
ADDED_LINES
           
ADDED_WORDS
           
CHANGED_LINES
           
CHANGED_WORDS
           
DELETED_CHARACTERS
           
DELETED_LINES
           
DELETED_WORDS
           
SNIPPED_LINES
           
UNCHANGED
           
 
Method Summary
 String getClassName()
           
 String getStyle()
           
 boolean isChangedLineType()
           
static DiffType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DiffType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNCHANGED

public static final DiffType UNCHANGED

SNIPPED_LINES

public static final DiffType SNIPPED_LINES

ADDED_LINES

public static final DiffType ADDED_LINES

DELETED_LINES

public static final DiffType DELETED_LINES

CHANGED_LINES

public static final DiffType CHANGED_LINES

ADDED_WORDS

public static final DiffType ADDED_WORDS

DELETED_WORDS

public static final DiffType DELETED_WORDS

CHANGED_WORDS

public static final DiffType CHANGED_WORDS

ADDED_CHARACTERS

public static final DiffType ADDED_CHARACTERS

DELETED_CHARACTERS

public static final DiffType DELETED_CHARACTERS
Method Detail

values

public static final DiffType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(DiffType c : DiffType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static DiffType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name

getClassName

public String getClassName()

getStyle

public String getStyle()

isChangedLineType

public boolean isChangedLineType()


Confluence is developed by Atlassian.