org.iids.aos.negotiation
Enum Restriction.Type
java.lang.Object
java.lang.Enum<Restriction.Type>
org.iids.aos.negotiation.Restriction.Type
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Restriction.Type>
- Enclosing class:
- Restriction
public static enum Restriction.Type
- extends java.lang.Enum<Restriction.Type>
The Types of Restrictions that are possible. Min/Max work on numeric
values (for now, only integers) and the Enum type works on String type
values (which can be numeric values as well). This makes it easy to
auto-enforce that Requests are conforming to the restrictions.
|
Method Summary |
static Restriction.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Restriction.Type[] |
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 |
Min
public static final Restriction.Type Min
Max
public static final Restriction.Type Max
Enum
public static final Restriction.Type Enum
values
public static final Restriction.Type[] 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(Restriction.Type c : Restriction.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static Restriction.Type 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
Copyright © 2003, 2004 IIDS Group. All Rights Reserved.