org.apache.maven.dotnet
Enum ArtifactType

java.lang.Object
  extended by java.lang.Enum<ArtifactType>
      extended by org.apache.maven.dotnet.ArtifactType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ArtifactType>

public enum ArtifactType
extends java.lang.Enum<ArtifactType>

Enumeration of all the valid target types (module, library, winexe, exe, nar) for the .NET platform.

Author:
Shane Isbell

Enum Constant Summary
EXE
           
EXECONFIG
           
LIBRARY
           
MODULE
           
NAR
           
NETPLUGIN
           
NULL
           
SHARP_DEVELOP_ADDIN
           
VISUAL_STUDIO_ADDIN
           
WINEXE
           
 
Method Summary
static ArtifactType getArtifactTypeForPackagingName(java.lang.String packagingName)
          Returns artifact type for the specified packaging name
 java.lang.String getExtension()
          Returns extension used for the artifact(netmodule, dll, exe).
 java.lang.String getPackagingType()
          Returns the packaging type (as given in the package tag within the pom.xml) of the artifact.
 java.lang.String getTargetCompileType()
          Returns target types (module, library, winexe, exe) for the .NET platform.
static ArtifactType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ArtifactType[] 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

MODULE

public static final ArtifactType MODULE

LIBRARY

public static final ArtifactType LIBRARY

EXE

public static final ArtifactType EXE

WINEXE

public static final ArtifactType WINEXE

NAR

public static final ArtifactType NAR

EXECONFIG

public static final ArtifactType EXECONFIG

NETPLUGIN

public static final ArtifactType NETPLUGIN

VISUAL_STUDIO_ADDIN

public static final ArtifactType VISUAL_STUDIO_ADDIN

SHARP_DEVELOP_ADDIN

public static final ArtifactType SHARP_DEVELOP_ADDIN

NULL

public static final ArtifactType NULL
Method Detail

values

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

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

valueOf

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

getExtension

public java.lang.String getExtension()
Returns extension used for the artifact(netmodule, dll, exe).

Returns:
Extension used for the artifact(netmodule, dll, exe).

getPackagingType

public java.lang.String getPackagingType()
Returns the packaging type (as given in the package tag within the pom.xml) of the artifact.

Returns:
the packaging type (as given in the package tag within the pom.xml) of the artifact.

getTargetCompileType

public java.lang.String getTargetCompileType()
Returns target types (module, library, winexe, exe) for the .NET platform.

Returns:
target types (module, library, winexe, exe) for the .NET platform.

getArtifactTypeForPackagingName

public static ArtifactType getArtifactTypeForPackagingName(java.lang.String packagingName)
Returns artifact type for the specified packaging name

Parameters:
packagingName - the package name (as given in the package tag within the pom.xml) of the artifact.
Returns:
the artifact type for the specified packaging name


Copyright © 2007 NMaven. All Rights Reserved.