edu.wisc.trace.urcsdk.base
Enum Constants.ResourceRole
java.lang.Object
java.lang.Enum<Constants.ResourceRole>
edu.wisc.trace.urcsdk.base.Constants.ResourceRole
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Constants.ResourceRole>
- Enclosing class:
- Constants
public static enum Constants.ResourceRole
- extends java.lang.Enum<Constants.ResourceRole>
Enumeration of all possible roles that a resource can take. Any changes to the standard
can easily be applied by changing these values in this one location instead of anywhere
they appear within the code.
Created on: Apr 27, 2005
- Author:
- Andrew Martin, Trace R&D Center
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
AccessKey
public static final Constants.ResourceRole AccessKey
Help
public static final Constants.ResourceRole Help
HelpEffect
public static final Constants.ResourceRole HelpEffect
HelpPurpose
public static final Constants.ResourceRole HelpPurpose
Keyword
public static final Constants.ResourceRole Keyword
Label
public static final Constants.ResourceRole Label
Unknown
public static final Constants.ResourceRole Unknown
values
public static final Constants.ResourceRole[] 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(Constants.ResourceRole c : Constants.ResourceRole.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static Constants.ResourceRole 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
getRoleOf
public static Constants.ResourceRole getRoleOf(java.lang.String s)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Enum<Constants.ResourceRole>
Copyright © 2006 Trace R&D Center, University of Wisconsin-Madison. All Rights Reserved.