Package | Description |
---|---|
dk.heick.properties | |
dk.heick.properties.collections | |
dk.heick.properties.collections.validationhandlers |
Modifier and Type | Method and Description |
---|---|
PropertyValidationHandler |
PropertyCollection.getPropertyValidationHandler()
When a property collection validates all the properties it contains, then this handler defines what happens
in case the a property is valid or invalid.
|
Modifier and Type | Method and Description |
---|---|
void |
PropertyCollection.setPropertyValidationHandler(PropertyValidationHandler propertyValidationHandler)
Here you can set your PropertyValidationHandler instance.
|
Modifier and Type | Method and Description |
---|---|
PropertyValidationHandler |
PropertyListCollection.getPropertyValidationHandler() |
PropertyValidationHandler |
PropertyFieldCollection.getPropertyValidationHandler() |
Modifier and Type | Method and Description |
---|---|
static List<Property<?>> |
PropertyCollectionFactory.initialize(List<Property<?>> properties,
PropertyIO io,
org.apache.commons.logging.Log logger,
PropertyValidationHandler validationHandler)
Initialize an list of Property's.
|
static List<Property<?>> |
PropertyCollectionFactory.initialize(Property<?>[] properties,
PropertyIO io,
org.apache.commons.logging.Log logger,
PropertyValidationHandler validationHandler)
Initialize an array of Property's.
|
static List<Property<?>> |
PropertyCollectionFactory.initializeFieldCollection(Object instance,
Class<?> clazz,
PropertyIO io,
org.apache.commons.logging.Log logger,
PropertyValidationHandler validationHandler,
PropertyFieldFilter propertyFieldFilter)
Initialize all fields in class of type Property and parses the accept method of "propertyFieldFilter".
|
static void |
PropertyCollectionFactory.initializeIO(PropertyIO io,
org.apache.commons.logging.Log logger,
PropertyValidationHandler validationHandler)
This will validate a PropertyIO.
|
void |
PropertyListCollection.setPropertyValidationHandler(PropertyValidationHandler propertyValidationHandler) |
void |
PropertyFieldCollection.setPropertyValidationHandler(PropertyValidationHandler propertyValidationHandler) |
Constructor and Description |
---|
PropertyExposedFieldCollection(PropertyIO io,
Class<?> clazz,
org.apache.commons.logging.Log logger,
PropertyValidationHandler propertyValidationHandler)
Constructor.
|
PropertyExposedFieldCollection(PropertyIO io,
org.apache.commons.logging.Log logger,
PropertyValidationHandler propertyValidationHandler)
Constructor, where the class from where detection of static members of class type
Property will be performed is this class. |
PropertyExposedFieldCollection(PropertyIO io,
PropertyValidationHandler propertyValidationHandler)
Constructor, where the class from where detection of static members of class type
Property will be performed is this class,
and the logger is a new instance of Log for this class. |
PropertyExposedFinalFieldCollection(PropertyIO io,
Class<?> clazz,
org.apache.commons.logging.Log logger,
PropertyValidationHandler propertyValidationHandler)
Constructor.
|
PropertyExposedFinalFieldCollection(PropertyIO io,
org.apache.commons.logging.Log logger,
PropertyValidationHandler propertyValidationHandler)
Constructor, where the class from where detection of static members of class type
Property will be performed is this class. |
PropertyExposedFinalFieldCollection(PropertyIO io,
PropertyValidationHandler propertyValidationHandler)
Constructor, where the class from where detection of static members of class type
Property will be performed is this class,
and the logger is a new instance of Log for this class. |
PropertyFieldCollection(PropertyFieldFilter propertyFieldFilter,
PropertyIO io,
Class<?> clazz,
org.apache.commons.logging.Log logger,
PropertyValidationHandler propertyValidationHandler)
Constructor.
|
PropertyFieldCollection(PropertyFieldFilter propertyFieldFilter,
PropertyIO io,
org.apache.commons.logging.Log logger,
PropertyValidationHandler propertyValidationHandler)
Constructor, where the class from where detection of static members of class type
Property will be performed is this class. |
PropertyFieldCollection(PropertyFieldFilter propertyFieldFilter,
PropertyIO io,
PropertyValidationHandler propertyValidationHandler)
Constructor, where the class from where detection of static members of class type
Property will be performed is this class,
and the logger is a new instance of Log for this class. |
PropertyListCollection(PropertyIO io,
org.apache.commons.logging.Log logger,
List<Property<?>> propertyList,
PropertyValidationHandler propertyValidationHandler)
Constructor.
|
PropertyListCollection(PropertyIO io,
org.apache.commons.logging.Log logger,
Property<?>[] propertyArray,
PropertyValidationHandler validationHandler)
Constructor.
|
PropertyListCollection(PropertyIO io,
org.apache.commons.logging.Log logger,
PropertyValidationHandler validationHandler,
Property<?>... propertyArray)
Constructor.
|
PropertyStaticCollection(PropertyIO io,
Class<?> clazz,
org.apache.commons.logging.Log logger,
PropertyValidationHandler propertyValidationHandler)
Constructor.
|
PropertyStaticCollection(PropertyIO io,
org.apache.commons.logging.Log logger,
PropertyValidationHandler propertyValidationHandler)
Constructor, where the class from where detection of static members of class type
Property will be performed is this class. |
PropertyStaticCollection(PropertyIO io,
PropertyValidationHandler propertyValidationHandler)
Constructor, where the class from where detection of static members of class type
Property will be performed is this class,
and the logger is a new instance of Log for this class. |
Modifier and Type | Class and Description |
---|---|
class |
LoggingPropertyValidationHandler
Simply logs a message.
|
class |
SendMessagePropertyValidationHandler
Sends a message via the
ValidationMessager if either the PropertyIO and any of the Property's is invalid. |