Interface ProtocolMetadataConstants
- All Known Implementing Classes:
DefaultProtocolMetadataConstants
public interface ProtocolMetadataConstants
Keeps the set of
OperationMetadataAttribute
constants attributes per operation/protocol. This is used to codegen
those constant values.-
Method Summary
Modifier and TypeMethodDescription<T> T
get
(OperationMetadataAttribute<T> key) Gets the constant value for the operation metadata key.List
<Map.Entry<Class<?>, OperationMetadataAttribute<?>>> keys()
Returns the list of keys sets.<T> T
put
(Class<?> containingClass, OperationMetadataAttribute<T> key, T value) Adds an operation metadata to the set of constants.default <T> T
put
(OperationMetadataAttribute<T> key, T value) Adds an operation metadata to the set of constants.
-
Method Details
-
keys
List<Map.Entry<Class<?>,OperationMetadataAttribute<?>>> keys()Returns the list of keys sets. TheMap.Entry
contains as key the class containing the key field and the value contains the key constant itself. The class is needed to properly codegen a reference to the key.- Returns:
-
put
Adds an operation metadata to the set of constants. -
put
Adds an operation metadata to the set of constants. -
get
Gets the constant value for the operation metadata key.
-