org.xwiki.diff.display
Enum InlineDiffChunk.Type

java.lang.Object
  extended by java.lang.Enum<InlineDiffChunk.Type>
      extended by org.xwiki.diff.display.InlineDiffChunk.Type
All Implemented Interfaces:
Serializable, Comparable<InlineDiffChunk.Type>
Enclosing class:
InlineDiffChunk<E>

public static enum InlineDiffChunk.Type
extends Enum<InlineDiffChunk.Type>

The possible types of chunks you can find within an in-line diff.


Enum Constant Summary
ADDED
          A chunk that has been added.
DELETED
          A chunk that has been removed.
UNMODIFIED
          A chunk that stays unmodified.
 
Method Summary
static InlineDiffChunk.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static InlineDiffChunk.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ADDED

public static final InlineDiffChunk.Type ADDED
A chunk that has been added. All the elements that form this chunk have been added.


DELETED

public static final InlineDiffChunk.Type DELETED
A chunk that has been removed. All the elements that form this chunk have been added.


UNMODIFIED

public static final InlineDiffChunk.Type UNMODIFIED
A chunk that stays unmodified. The elements of this chunk are neither added nor removed. They indicate the context where a change has been made.

Method Detail

values

public static InlineDiffChunk.Type[] 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 (InlineDiffChunk.Type c : InlineDiffChunk.Type.values())
    System.out.println(c);

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

valueOf

public static InlineDiffChunk.Type 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
NullPointerException - if the argument is null


Copyright © 2004-2013 XWiki. All Rights Reserved.