public interface

IPropertyType

com.pnfsoftware.jeb.core.properties.IPropertyType
Known Indirect Subclasses

Class Overview

Base interface for property types. Implementations provide default value for a given property type, as well as a validation method to validate a property against a type.

Summary

Public Methods
abstract Object afterRead(IPropertyDefinition def, Object value)
Post-processing to be done after reading a value.
abstract Object beforeWrite(IPropertyDefinition def, Object value)
Pre-processing to be done before storing a value.
abstract Object getDefault()
Get the default value.
abstract String getName()
Get the type name.
abstract boolean validate(Object value)
Validate a property value.

Public Methods

public abstract Object afterRead (IPropertyDefinition def, Object value)

Post-processing to be done after reading a value. This method should only be called after a successful call to validate(Object).

Parameters
value must not be null

public abstract Object beforeWrite (IPropertyDefinition def, Object value)

Pre-processing to be done before storing a value.

public abstract Object getDefault ()

Get the default value.

Returns
  • the default value, cannot be null

public abstract String getName ()

Get the type name.

public abstract boolean validate (Object value)

Validate a property value.

Parameters
value the property value
Returns
  • true on success