net.contextfw.web.application.configuration.Property Maven / Gradle / Ivy
package net.contextfw.web.application.configuration;
/**
* Defines generic property
*
* @param
* Type of the property
*/
public interface Property {
/**
* Returns the key for this property.
*
*
* All information is stored by their keys thus keys must be unique.
*
* @return
*/
String getKey();
/**
* Unserializes value from String representation
*/
T unserialize(String value);
/**
* Serializes value to String
*/
String serialize(T value);
/**
* Validates the value
* @param value
* The value
* @return
* The value
*/
T validate(T value);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy