com.atlassian.crowd.search.query.entity
Class PropertyTypeServiceImpl

java.lang.Object
  extended by 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 Summary
PropertyTypeServiceImpl(Map<String,Class> propertyTypeMap)
          Constructs a new PropertyTypeService.
 
Method Summary
 Class getType(String name)
          Returns the class type of the property, or null if the property type could not be determined.
static PropertyTypeServiceImpl newInstance(Iterable<Property<?>> properties)
          Creates a new instance of PropertyTypeServiceImpl from a collection of Property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyTypeServiceImpl

public PropertyTypeServiceImpl(Map<String,Class> propertyTypeMap)
Constructs a new PropertyTypeService.

Parameters:
propertyTypeMap - property-type map
Method Detail

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 from a collection of Property.

Parameters:
properties - list of Property
Returns:
new instance of PropertyTypeServiceImpl


Copyright © 2012 Atlassian. All Rights Reserved.