org.tynamo.services
Class TynamoDataTypeAnalyzer

java.lang.Object
  extended by org.tynamo.services.TynamoDataTypeAnalyzer
All Implemented Interfaces:
org.apache.tapestry5.services.DataTypeAnalyzer

public class TynamoDataTypeAnalyzer
extends Object
implements org.apache.tapestry5.services.DataTypeAnalyzer


Constructor Summary
TynamoDataTypeAnalyzer(DescriptorService descriptorService, List<Pair> editorMap)
           
 
Method Summary
 String identifyDataType(org.apache.tapestry5.ioc.services.PropertyAdapter adapter)
          The first data type identifier in the editorMap whose "key" evaluates to true for the descriptor will be used to load an editor (or display) block for the descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TynamoDataTypeAnalyzer

public TynamoDataTypeAnalyzer(DescriptorService descriptorService,
                              List<Pair> editorMap)
Parameters:
descriptorService -
editorMap - A list of pairs Pair, String> where the Predicate us ... and the String is the data type identifier used to select editor (or display) blocks
Method Detail

identifyDataType

public String identifyDataType(org.apache.tapestry5.ioc.services.PropertyAdapter adapter)
The first data type identifier in the editorMap whose "key" evaluates to true for the descriptor will be used to load an editor (or display) block for the descriptor. Returns null if no match is found.

Specified by:
identifyDataType in interface org.apache.tapestry5.services.DataTypeAnalyzer
Returns:
returns the data type identifier, if known, or returns null if not known.


Copyright © 2004-2012. All Rights Reserved.