com.telelogic.cs.api
Enum Attribute.Type
java.lang.Object
java.lang.Enum<Attribute.Type>
com.telelogic.cs.api.Attribute.Type
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Attribute.Type>
- Enclosing class:
- Attribute
public static enum Attribute.Type
- extends java.lang.Enum<Attribute.Type>
Constants for the different possible types of attributes.
Can be used to tell which type and attribute is before getting its
value. This is the runtime, programmatic type of the attribute, which
may not match exactly the type of the attribute in its attribute definition.
For example, an attribute could be defined to use "string" or "text" as
its database type, but they would both simply be strings as far as triggers
are concerned.
- Since:
- 4.7 06
Method Summary |
static Attribute.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Attribute.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
STRING
public static final Attribute.Type STRING
DATE
public static final Attribute.Type DATE
BOOLEAN
public static final Attribute.Type BOOLEAN
values
public static Attribute.Type[] 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 (Attribute.Type c : Attribute.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Attribute.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
java.lang.NullPointerException
- if the argument is null
© Copyright IBM Corporation 2000, 2009
US Government Users Restricted Rights--Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
Notices