All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tools.service.metadata.IOperationMetadata Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show 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();
		
	};

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy