net.sourceforge.pmd
Interface PropertyDescriptorFactory

All Known Implementing Classes:
BasicPropertyDescriptorFactory

public interface PropertyDescriptorFactory

A factory to create PropertyDescriptors based on a map of values.

Author:
Brian Remedios

Method Summary
 PropertyDescriptor<?> createWith(Map<String,String> valuesById)
          Create a property descriptor of the appropriate type using the values provided.
 Map<String,Boolean> expectedFields()
          Denote the identifiers of the expected fields paired with booleans denoting whether they are required (non-null) or not.
 Class<?> valueType()
          The type of the value of the PropertyDescriptor created by this factory.
 

Method Detail

valueType

Class<?> valueType()
The type of the value of the PropertyDescriptor created by this factory.

Returns:
the type of the value.

expectedFields

Map<String,Boolean> expectedFields()
Denote the identifiers of the expected fields paired with booleans denoting whether they are required (non-null) or not.

Returns:
Map

createWith

PropertyDescriptor<?> createWith(Map<String,String> valuesById)
Create a property descriptor of the appropriate type using the values provided.

Parameters:
valuesById - the map of values
Returns:
a new and initialized PropertyDescriptor


Copyright © 2002-2015 InfoEther. All Rights Reserved.