Package com.iizix.prop
Interface IPropCnrKString
- All Known Implementing Classes:
AxisKString
,ChartKString
public interface IPropCnrKString
Interface for a generic KString setting for a property container implemented by enum classes with validation support.- Author:
- Christopher Mindus
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description KString
getDefaultValue()
Gets the default value when the property is not set.java.lang.String
getPropName()
Returns the name of the property, usually starting with '$'.default void
validate(PropCnr pc, KString ks)
Validates a new string.
Method Detail
getDefaultValue
KString getDefaultValue()
Gets the default value when the property is not set.- Returns:
- The default value, or null for none.
validate
default void validate(PropCnr pc, KString ks) throws PropValidateException
Validates a new string.Override to provide validation, default doesn't validate.
- Parameters:
pc
- The property container that will be set.ks
- The KString to validate.- Throws:
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 '$'.