Interface ProtocolMetadataConstants
-
- All Known Implementing Classes:
DefaultProtocolMetadataConstants
public interface ProtocolMetadataConstants
Keeps the set ofOperationMetadataAttribute
constants attributes per operation/protocol. This is used to codegen those constant values.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <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 Detail
-
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
<T> T put(Class<?> containingClass, OperationMetadataAttribute<T> key, T value)
Adds an operation metadata to the set of constants.
-
put
default <T> T put(OperationMetadataAttribute<T> key, T value)
Adds an operation metadata to the set of constants.
-
get
<T> T get(OperationMetadataAttribute<T> key)
Gets the constant value for the operation metadata key.
-
-