Interface IPropCnrString

  • All Known Implementing Classes:

    public interface IPropCnrString
    Interface for a generic string setting for a property container implemented by enum classes with validation support.
    Christopher Mindus
    • Method Detail

      • getDefaultValue

        java.lang.String getDefaultValue()
        Gets the default value when the property is not set.
        The default value, or null for none.
      • validate

        default void validate​(PropCnr pc,
                              java.lang.String string)
                       throws PropValidateException
        Validates a new string.

        Override to provide validation, default doesn't validate.

        pc - The property container that will be set.
        string - The string to validate.
        java.lang.NullPointerException - If the string is null.
        PropValidateException - If the string doesn't validate.
      • getPropName

        java.lang.String getPropName()
        Returns the name of the property, usually starting with '$'.