org.jboss.managed.api.annotation
Enum ViewUse

java.lang.Object
  extended by java.lang.Enum<ViewUse>
      extended by org.jboss.managed.api.annotation.ViewUse
All Implemented Interfaces:
Serializable, Comparable<ViewUse>

public enum ViewUse
extends Enum<ViewUse>

An enum for the types of management views a property is associated with.

Version:
$Revision: 80087 $
Author:
Scott.Stark@jboss.org

Enum Constant Summary
CONFIGURATION
          A read-write property used for creating/updating a config
RUNTIME
          A read-write type of property that can be set on the runtime component
STATISTIC
          A read-only type of property that provides runtime stats
 
Method Summary
static ViewUse valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ViewUse[] 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

CONFIGURATION

public static final ViewUse CONFIGURATION
A read-write property used for creating/updating a config


RUNTIME

public static final ViewUse RUNTIME
A read-write type of property that can be set on the runtime component


STATISTIC

public static final ViewUse STATISTIC
A read-only type of property that provides runtime stats

Method Detail

values

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

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

valueOf

public static ViewUse 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 © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.