Package org.apache.karaf.features
Enum FeaturesService.ServiceRequirementsBehavior
- java.lang.Object
-
- java.lang.Enum<FeaturesService.ServiceRequirementsBehavior>
-
- org.apache.karaf.features.FeaturesService.ServiceRequirementsBehavior
-
- All Implemented Interfaces:
Serializable
,Comparable<FeaturesService.ServiceRequirementsBehavior>
- Enclosing interface:
- FeaturesService
public static enum FeaturesService.ServiceRequirementsBehavior extends Enum<FeaturesService.ServiceRequirementsBehavior>
Configuration options for handling requirements fromServiceNamespace.SERVICE_NAMESPACE
namespace
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Default
ConsiderServiceNamespace.SERVICE_NAMESPACE
requirements only forhttp://karaf.apache.org/xmlns/features/v1.2.1
XSD and belowDisable
Remove and do not consider anyServiceNamespace.SERVICE_NAMESPACE
requirementsEnforce
Always considerServiceNamespace.SERVICE_NAMESPACE
requirements
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FeaturesService.ServiceRequirementsBehavior
fromString(String serviceRequirements)
String
getValue()
static FeaturesService.ServiceRequirementsBehavior
valueOf(String name)
Returns the enum constant of this type with the specified name.static FeaturesService.ServiceRequirementsBehavior[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Disable
public static final FeaturesService.ServiceRequirementsBehavior Disable
Remove and do not consider anyServiceNamespace.SERVICE_NAMESPACE
requirements
-
Default
public static final FeaturesService.ServiceRequirementsBehavior Default
ConsiderServiceNamespace.SERVICE_NAMESPACE
requirements only forhttp://karaf.apache.org/xmlns/features/v1.2.1
XSD and below
-
Enforce
public static final FeaturesService.ServiceRequirementsBehavior Enforce
Always considerServiceNamespace.SERVICE_NAMESPACE
requirements
-
-
Method Detail
-
values
public static FeaturesService.ServiceRequirementsBehavior[] 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 (FeaturesService.ServiceRequirementsBehavior c : FeaturesService.ServiceRequirementsBehavior.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FeaturesService.ServiceRequirementsBehavior 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
-
getValue
public String getValue()
-
fromString
public static FeaturesService.ServiceRequirementsBehavior fromString(String serviceRequirements)
-
-