org.rhq.modules.plugins.jbossas7
Enum JBossProductType

java.lang.Object
  extended by java.lang.Enum<JBossProductType>
      extended by org.rhq.modules.plugins.jbossas7.JBossProductType
All Implemented Interfaces:
Serializable, Comparable<JBossProductType>

public enum JBossProductType
extends Enum<JBossProductType>

Metadata describing a product based on JBoss AS 7.x.

Author:
Ian Springer

Enum Constant Summary
AS
           
EAP
           
EPP
           
JDG
           
SOA
           
 
Field Summary
 String FULL_NAME
           
 String NAME
           
 String PRODUCT_NAME
          The value the server returns for the "product-name" attribute of the root resource.
 String SHORT_NAME
           
 
Method Summary
static JBossProductType determineJBossProductType(File homeDir)
          Determines the product type of a JBoss product installation.
static JBossProductType getValueByProductName(String productName)
           
 String toString()
           
static JBossProductType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JBossProductType[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AS

public static final JBossProductType AS

EAP

public static final JBossProductType EAP

JDG

public static final JBossProductType JDG

EPP

public static final JBossProductType EPP

SOA

public static final JBossProductType SOA
Field Detail

SHORT_NAME

public final String SHORT_NAME

NAME

public final String NAME

FULL_NAME

public final String FULL_NAME

PRODUCT_NAME

public final String PRODUCT_NAME
The value the server returns for the "product-name" attribute of the root resource.

Method Detail

values

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

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

valueOf

public static JBossProductType 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

determineJBossProductType

public static JBossProductType determineJBossProductType(File homeDir)
Determines the product type of a JBoss product installation.

Parameters:
homeDir - the JBoss product installation directory (e.g. /opt/jboss-as-7.1.1.Final)
Returns:
the product type

getValueByProductName

public static JBossProductType getValueByProductName(String productName)

toString

public String toString()
Overrides:
toString in class Enum<JBossProductType>


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.