Package org.xcsp.common
Enum Types.TypeAtt
- java.lang.Object
-
- java.lang.Enum<Types.TypeAtt>
-
- org.xcsp.common.Types.TypeAtt
-
- All Implemented Interfaces:
Serializable
,Comparable<Types.TypeAtt>
- Enclosing class:
- Types
public static enum Types.TypeAtt extends Enum<Types.TypeAtt>
The enum type specifying the different types of attributes that may be encountered. We use lower-case letters, so as to directly get the names of the elements (except for CLASS, FOR and CASE that need to be managed apart, because they correspond to keywords).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description as
CASE
circular
CLASS
closed
collect
combination
cost
covered
defaultCost
FOR
format
hreifiedFrom
hreifiedTo
id
lb
note
offset
order
rank
reifiedBy
restriction
size
startColIndex
startIndex
startRowIndex
type
ub
violable
violationCost
violationMeasure
violationParameters
zeroIgnored
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isReifying()
Returns true iff the element has a (full or half) reification nature.static Types.TypeAtt
valOf(String s)
Returns the constant that corresponds to the specified string (we need this method to manage the special constants FOR and CASE).static Types.TypeAtt
valueOf(String name)
Returns the enum constant of this type with the specified name.static Types.TypeAtt[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
format
public static final Types.TypeAtt format
-
type
public static final Types.TypeAtt type
-
id
public static final Types.TypeAtt id
-
CLASS
public static final Types.TypeAtt CLASS
-
note
public static final Types.TypeAtt note
-
as
public static final Types.TypeAtt as
-
size
public static final Types.TypeAtt size
-
violationMeasure
public static final Types.TypeAtt violationMeasure
-
violationParameters
public static final Types.TypeAtt violationParameters
-
defaultCost
public static final Types.TypeAtt defaultCost
-
violationCost
public static final Types.TypeAtt violationCost
-
cost
public static final Types.TypeAtt cost
-
reifiedBy
public static final Types.TypeAtt reifiedBy
-
hreifiedFrom
public static final Types.TypeAtt hreifiedFrom
-
hreifiedTo
public static final Types.TypeAtt hreifiedTo
-
closed
public static final Types.TypeAtt closed
-
FOR
public static final Types.TypeAtt FOR
-
restriction
public static final Types.TypeAtt restriction
-
rank
public static final Types.TypeAtt rank
-
startIndex
public static final Types.TypeAtt startIndex
-
startRowIndex
public static final Types.TypeAtt startRowIndex
-
startColIndex
public static final Types.TypeAtt startColIndex
-
zeroIgnored
public static final Types.TypeAtt zeroIgnored
-
CASE
public static final Types.TypeAtt CASE
-
order
public static final Types.TypeAtt order
-
circular
public static final Types.TypeAtt circular
-
offset
public static final Types.TypeAtt offset
-
collect
public static final Types.TypeAtt collect
-
covered
public static final Types.TypeAtt covered
-
violable
public static final Types.TypeAtt violable
-
lb
public static final Types.TypeAtt lb
-
ub
public static final Types.TypeAtt ub
-
combination
public static final Types.TypeAtt combination
-
-
Method Detail
-
values
public static Types.TypeAtt[] 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 (Types.TypeAtt c : Types.TypeAtt.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Types.TypeAtt 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 nameNullPointerException
- if the argument is null
-
isReifying
public boolean isReifying()
Returns true iff the element has a (full or half) reification nature.
-
valOf
public static Types.TypeAtt valOf(String s)
Returns the constant that corresponds to the specified string (we need this method to manage the special constants FOR and CASE).
-
-