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> Tget(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> Tput(Class<?> containingClass, OperationMetadataAttribute<T> key, T value) Adds an operation metadata to the set of constants.default <T> Tput(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.Entrycontains 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.
-