Class PropertyTypeServiceImpl

java.lang.Object
com.atlassian.crowd.search.query.entity.PropertyTypeServiceImpl
All Implemented Interfaces:
PropertyTypeService

public class PropertyTypeServiceImpl extends Object implements PropertyTypeService
Implements a PropertyTypeServiceImpl.
Since:
2.2
  • Constructor Details

    • PropertyTypeServiceImpl

      public PropertyTypeServiceImpl(Map<String,Class> propertyTypeMap)
      Constructs a new PropertyTypeService.
      Parameters:
      propertyTypeMap - property-type map
  • Method Details

    • getType

      public Class<?> getType(String name)
      Description copied from interface: PropertyTypeService
      Returns the class type of the property, or null if the property type could not be determined.
      Specified by:
      getType in interface PropertyTypeService
      Parameters:
      name - property name
      Returns:
      Class type of the property, or null if the property type could not be determined
    • newInstance

      public static PropertyTypeServiceImpl newInstance(Iterable<Property<?>> properties)
      Creates a new instance of PropertyTypeServiceImpl</tt> from a collection of <tt>Property.
      Parameters:
      properties - list of Property
      Returns:
      new instance of PropertyTypeServiceImpl