org.jenkinsci.plugins.darcs
Enum DarcsXmlSanitizer.State

java.lang.Object
  extended by java.lang.Enum<DarcsXmlSanitizer.State>
      extended by org.jenkinsci.plugins.darcs.DarcsXmlSanitizer.State
All Implemented Interfaces:
Serializable, Comparable<DarcsXmlSanitizer.State>
Enclosing class:
DarcsXmlSanitizer

private static enum DarcsXmlSanitizer.State
extends Enum<DarcsXmlSanitizer.State>

States which indicates where in the comment string we are.


Enum Constant Summary
IN_COMMENT
          Inside a comment tag.
IN_NAME
          Inside a name tag.
OUTSIDE
          Outside a name or comment tag.
 
Method Summary
static DarcsXmlSanitizer.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DarcsXmlSanitizer.State[] 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

OUTSIDE

public static final DarcsXmlSanitizer.State OUTSIDE
Outside a name or comment tag.


IN_NAME

public static final DarcsXmlSanitizer.State IN_NAME
Inside a name tag.


IN_COMMENT

public static final DarcsXmlSanitizer.State IN_COMMENT
Inside a comment tag.

Method Detail

values

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

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

valueOf

public static DarcsXmlSanitizer.State 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 weltraumschaf.de. All Rights Reserved.