tools.service.metadata.IOperationMetadata Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of brunner-core-tools Show documentation
Show all versions of brunner-core-tools Show documentation
Tools module for the BRunner project
The newest version!
package tools.service.metadata;
/**
* Interface that defines a standard method to retrieve identifiers and
* descriptions for various operations.
*/
public interface IOperationMetadata {
/**
*
* @return the metadata for the operation
*/
IOperationMetadata getMetadata();
/**
*
* @return a string which can be used for serialization as XML or JSON
*/
default String serializationKey() {
return getMetadata().serializationKey();
}
/**
*
* @return a string describing the operation
*/
default String description() {
return getMetadata().description();
};
/**
*
* @return true iif the result of the operation has to be recorded
*/
default boolean recordOperationMeasure() {
return getMetadata().recordOperationMeasure();
};
}