Interface ProtocolMetadataConstants
-
- All Known Implementing Classes:
DefaultProtocolMetadataConstants
public interface ProtocolMetadataConstantsKeeps the set ofOperationMetadataAttributeconstants 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> 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 Detail
-
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
<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.
-
-