Enum Class MetadataProviderResponse
java.lang.Object
java.lang.Enum<MetadataProviderResponse>
org.broadleafcommerce.openadmin.server.service.type.MetadataProviderResponse
- All Implemented Interfaces:
Serializable,Comparable<MetadataProviderResponse>,Constable
For FieldMetadataProvider and
FieldPersistenceProvider, message
the system on how it should interpret the provider's handling of the call. If HANDLED, then the system will consider
that a valid provider was found for the request, and subsequently not call the default provider. If all registered
providers respond with NOT_HANDLED, then the default provider is called. If HANDLED_BREAK is returned, then the
provider loop is immediately exited and the default provider is not called.
In combination with the Ordered, this provides a way for a provider to either override
existing behavior by setting a low order and returning HANDLED_BREAK, or add to behavior by setting any order and
returning HANDLED.
- Author:
- Jeff Fischer
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic MetadataProviderResponseReturns the enum constant of this class with the specified name.static MetadataProviderResponse[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HANDLED
-
NOT_HANDLED
-
HANDLED_BREAK
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-