org.jboss.metadata.ejb.jboss.jndipolicy.spi
Enum KnownInterfaces.KnownInterfaceType

java.lang.Object
  extended by java.lang.Enum<KnownInterfaces.KnownInterfaceType>
      extended by org.jboss.metadata.ejb.jboss.jndipolicy.spi.KnownInterfaces.KnownInterfaceType
All Implemented Interfaces:
Serializable, Comparable<KnownInterfaces.KnownInterfaceType>
Enclosing class:
KnownInterfaces

public static enum KnownInterfaces.KnownInterfaceType
extends Enum<KnownInterfaces.KnownInterfaceType>

Enums for the standard types of ejb interfaces


Enum Constant Summary
BUSINESS_LOCAL
           
BUSINESS_REMOTE
           
LOCAL_HOME
           
REMOTE_HOME
           
UNKNOWN
           
 
Method Summary
 String toSuffix()
          Get the preferred jndi binding suffix
static KnownInterfaces.KnownInterfaceType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static KnownInterfaces.KnownInterfaceType[] 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

BUSINESS_LOCAL

public static final KnownInterfaces.KnownInterfaceType BUSINESS_LOCAL

BUSINESS_REMOTE

public static final KnownInterfaces.KnownInterfaceType BUSINESS_REMOTE

LOCAL_HOME

public static final KnownInterfaces.KnownInterfaceType LOCAL_HOME

REMOTE_HOME

public static final KnownInterfaces.KnownInterfaceType REMOTE_HOME

UNKNOWN

public static final KnownInterfaces.KnownInterfaceType UNKNOWN
Method Detail

values

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

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

valueOf

public static KnownInterfaces.KnownInterfaceType 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

toSuffix

public String toSuffix()
Get the preferred jndi binding suffix

Returns:
the preferred jndi binding suffix for the interface type


Copyright © 2009 JBoss Inc.. All Rights Reserved.