org.springframework.roo.classpath.customdata.taggers
Interface Matcher<T extends org.springframework.roo.model.CustomDataAccessor>

Type Parameters:
T - the type of CustomDataAccessor returned for each match
All Known Implementing Classes:
AnnotatedTypeMatcher, ConstructorMatcher, FieldMatcher, LayerTypeMatcher, MethodMatcher, MidTypeMatcher, TypeMatcher

public interface Matcher<T extends org.springframework.roo.model.CustomDataAccessor>

Matches CustomDataAccessors based on a specific criteria and provides the relevant key and value to be applied to a matched CustomDataAccessor.

Since:
1.1.3
Author:
James Tyrrell

Method Summary
 org.springframework.roo.model.CustomDataKey<T> getCustomDataKey()
          Returns a key indicating the type of custom data returned by matches(List)
 Object getTagValue(T key)
          Returns the value associated with the given key that should be applied to the matched instance.
 List<T> matches(List<MemberHoldingTypeDetails> memberHoldingTypeDetailsList)
          Returns the CustomDataAccessors for any elements of the given list that meet this matcher's inclusion criteria.
 

Method Detail

getCustomDataKey

org.springframework.roo.model.CustomDataKey<T> getCustomDataKey()
Returns a key indicating the type of custom data returned by matches(List)

Returns:
a non-null key

getTagValue

Object getTagValue(T key)
Returns the value associated with the given key that should be applied to the matched instance.

Parameters:
key - the custom data key
Returns:
a value (can be null)

matches

List<T> matches(List<MemberHoldingTypeDetails> memberHoldingTypeDetailsList)
Returns the CustomDataAccessors for any elements of the given list that meet this matcher's inclusion criteria.

Parameters:
memberHoldingTypeDetailsList - the list to check for matches
Returns:
a non-null list


Copyright © 2009–2015. All rights reserved.