org.hudsonci.maven.model
Enum MavenCoordinatesDTOHelper.RenderStyle

java.lang.Object
  extended by java.lang.Enum<MavenCoordinatesDTOHelper.RenderStyle>
      extended by org.hudsonci.maven.model.MavenCoordinatesDTOHelper.RenderStyle
All Implemented Interfaces:
Serializable, Comparable<MavenCoordinatesDTOHelper.RenderStyle>
Enclosing class:
MavenCoordinatesDTOHelper

public static enum MavenCoordinatesDTOHelper.RenderStyle
extends Enum<MavenCoordinatesDTOHelper.RenderStyle>

Rendering style for MavenCoordinatesDTO.


Enum Constant Summary
GA
          Renders only groupId and artifactId using ":"-style.
GATCV
          All elements rendered, rendering null where missing using ":"-style, missing elements render as null.
GATCV_OPTIONAL
          GATCV style where optional TCV bits are excluded if missing, using ":"-style.
GATV
          Renders only groupId, artifactId, type and version using ":"-style, missing elements render as null.
GAV
          Renders only groupId, artifactId and version using ":"-style, missing elements render as null.
MAP
          Renders map-style {g=x,a=x,...} for each element, missing elements are omitted.
 
Method Summary
static MavenCoordinatesDTOHelper.RenderStyle valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MavenCoordinatesDTOHelper.RenderStyle[] 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

MAP

public static final MavenCoordinatesDTOHelper.RenderStyle MAP
Renders map-style {g=x,a=x,...} for each element, missing elements are omitted.


GA

public static final MavenCoordinatesDTOHelper.RenderStyle GA
Renders only groupId and artifactId using ":"-style.


GAV

public static final MavenCoordinatesDTOHelper.RenderStyle GAV
Renders only groupId, artifactId and version using ":"-style, missing elements render as null.


GATV

public static final MavenCoordinatesDTOHelper.RenderStyle GATV
Renders only groupId, artifactId, type and version using ":"-style, missing elements render as null.


GATCV

public static final MavenCoordinatesDTOHelper.RenderStyle GATCV
All elements rendered, rendering null where missing using ":"-style, missing elements render as null.


GATCV_OPTIONAL

public static final MavenCoordinatesDTOHelper.RenderStyle GATCV_OPTIONAL
GATCV style where optional TCV bits are excluded if missing, using ":"-style.

Method Detail

values

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

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

valueOf

public static MavenCoordinatesDTOHelper.RenderStyle 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-2011 Hudson. All Rights Reserved.