org.jenkinsci.plugins.darcs
Enum DarcsSaxHandler.DarcsChangelogTag

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

private static enum DarcsSaxHandler.DarcsChangelogTag
extends Enum<DarcsSaxHandler.DarcsChangelogTag>

The tags used in the change log XML.


Enum Constant Summary
ADD_DIRECTORY
          Tag <add_directory>.
ADD_FILE
          Tag <add_file>.
ADDED_LINES
          Tag <added_lines>.
CHANGELOG
          Tag <changelog>.
COMMENT
          Tag <comment>.
MODIFY_FILE
          Tag <modify_file>.
MOVE_FILE
          Tag <move>.
NAME
          Tag <name>.
PATCH
          Tag <patch>.
REMOVE_DIRECTORY
          Tag <remove_directory>.
REMOVE_FILE
          Tag <remove_file>.
REMOVED_LINES
          Tag <removed_lines>.
SUMMARY
          Tag <summary>.
 
Field Summary
private static Map<String,DarcsSaxHandler.DarcsChangelogTag> LOOKUP
          Lookup of string literal to tag.
private  String tagName
          Literal tag name.
 
Method Summary
(package private) static DarcsSaxHandler.DarcsChangelogTag forTagName(String tagName)
          Returns the tag enum to a literal tag name.
 String getTagName()
          Get the tag name.
static DarcsSaxHandler.DarcsChangelogTag valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DarcsSaxHandler.DarcsChangelogTag[] 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

CHANGELOG

public static final DarcsSaxHandler.DarcsChangelogTag CHANGELOG
Tag <changelog>.


PATCH

public static final DarcsSaxHandler.DarcsChangelogTag PATCH
Tag <patch>.


NAME

public static final DarcsSaxHandler.DarcsChangelogTag NAME
Tag <name>.


COMMENT

public static final DarcsSaxHandler.DarcsChangelogTag COMMENT
Tag <comment>.


SUMMARY

public static final DarcsSaxHandler.DarcsChangelogTag SUMMARY
Tag <summary>.


MODIFY_FILE

public static final DarcsSaxHandler.DarcsChangelogTag MODIFY_FILE
Tag <modify_file>.


ADD_FILE

public static final DarcsSaxHandler.DarcsChangelogTag ADD_FILE
Tag <add_file>.


REMOVE_FILE

public static final DarcsSaxHandler.DarcsChangelogTag REMOVE_FILE
Tag <remove_file>.


MOVE_FILE

public static final DarcsSaxHandler.DarcsChangelogTag MOVE_FILE
Tag <move>.


ADDED_LINES

public static final DarcsSaxHandler.DarcsChangelogTag ADDED_LINES
Tag <added_lines>.


REMOVED_LINES

public static final DarcsSaxHandler.DarcsChangelogTag REMOVED_LINES
Tag <removed_lines>.


ADD_DIRECTORY

public static final DarcsSaxHandler.DarcsChangelogTag ADD_DIRECTORY
Tag <add_directory>.


REMOVE_DIRECTORY

public static final DarcsSaxHandler.DarcsChangelogTag REMOVE_DIRECTORY
Tag <remove_directory>.

Field Detail

LOOKUP

private static final Map<String,DarcsSaxHandler.DarcsChangelogTag> LOOKUP
Lookup of string literal to tag.


tagName

private final String tagName
Literal tag name.

Method Detail

values

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

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

valueOf

public static DarcsSaxHandler.DarcsChangelogTag 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

getTagName

public String getTagName()
Get the tag name.

Returns:
the tag name

forTagName

static DarcsSaxHandler.DarcsChangelogTag forTagName(String tagName)
Returns the tag enum to a literal tag name.

Parameters:
tagName - literal tag name, part between the angle brackets
Returns:
may return null, if tag name is unknown


Copyright © 2004-2013 weltraumschaf.de. All Rights Reserved.