Package org.jboss.windup.config.metadata
Enum RuleMetadataType
- java.lang.Object
-
- java.lang.Enum<RuleMetadataType>
-
- org.jboss.windup.config.metadata.RuleMetadataType
-
- All Implemented Interfaces:
Serializable,Comparable<RuleMetadataType>
public enum RuleMetadataType extends Enum<RuleMetadataType>
- Author:
- Lincoln Baxter, III
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO_COMMITWhether or not to call commit after eachRuleexecution.HALT_ON_EXCEPTIONWhether Windup should stop execution if this provider's rule execution ends with an exception.ORIGINTheRuleorigin.RULE_PROVIDERTheAbstractRuleProviderthat originated this ruleRULE_XMLContains the raw xml that produced thisRule.TAGSThe tags describing thisRule.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RuleMetadataTypevalueOf(String name)Returns the enum constant of this type with the specified name.static RuleMetadataType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RULE_PROVIDER
public static final RuleMetadataType RULE_PROVIDER
TheAbstractRuleProviderthat originated this rule
-
RULE_XML
public static final RuleMetadataType RULE_XML
Contains the raw xml that produced thisRule.
-
ORIGIN
public static final RuleMetadataType ORIGIN
TheRuleorigin.
-
TAGS
public static final RuleMetadataType TAGS
The tags describing thisRule.
-
AUTO_COMMIT
public static final RuleMetadataType AUTO_COMMIT
Whether or not to call commit after eachRuleexecution. The default behavior (if this is not set) is to autocommit after each rule execution.
-
HALT_ON_EXCEPTION
public static final RuleMetadataType HALT_ON_EXCEPTION
Whether Windup should stop execution if this provider's rule execution ends with an exception. By default, the exceptions are only logged and the failing rule appears in report. The rule itself is responsible for handling exceptions and storing them into the graph.
-
-
Method Detail
-
values
public static RuleMetadataType[] 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 (RuleMetadataType c : RuleMetadataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RuleMetadataType 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
-
-