org.springframework.roo.classpath.customdata.taggers
Class MidTypeMatcher

java.lang.Object
  extended by org.springframework.roo.classpath.customdata.taggers.TypeMatcher
      extended by org.springframework.roo.classpath.customdata.taggers.MidTypeMatcher
All Implemented Interfaces:
Matcher<MemberHoldingTypeDetails>

public class MidTypeMatcher
extends TypeMatcher

MemberHoldingTypeDetails-specific implementation of Matcher. Matches are based on the the type's MID.

Since:
1.1.3
Author:
James Tyrrell

Constructor Summary
MidTypeMatcher(org.springframework.roo.model.CustomDataKey<MemberHoldingTypeDetails> customDataKey, Class<?> declaredBy)
          Constructor
MidTypeMatcher(org.springframework.roo.model.CustomDataKey<MemberHoldingTypeDetails> customDataKey, String declaredBy)
          Constructor
 
Method Summary
 org.springframework.roo.model.CustomDataKey<MemberHoldingTypeDetails> getCustomDataKey()
          Returns a key indicating the type of custom data returned by Matcher.matches(List)
 Object getTagValue(MemberHoldingTypeDetails key)
          Returns the value associated with the given key that should be applied to the matched instance.
 List<MemberHoldingTypeDetails> matches(List<MemberHoldingTypeDetails> memberHoldingTypeDetailsList)
          Returns the CustomDataAccessors for any elements of the given list that meet this matcher's inclusion criteria.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MidTypeMatcher

public MidTypeMatcher(org.springframework.roo.model.CustomDataKey<MemberHoldingTypeDetails> customDataKey,
                      Class<?> declaredBy)
Constructor

Parameters:
customDataKey -
declaredBy - the declaring class (required)
Since:
1.2

MidTypeMatcher

public MidTypeMatcher(org.springframework.roo.model.CustomDataKey<MemberHoldingTypeDetails> customDataKey,
                      String declaredBy)
Constructor

Parameters:
customDataKey -
declaredBy - (required)
Method Detail

getCustomDataKey

public org.springframework.roo.model.CustomDataKey<MemberHoldingTypeDetails> getCustomDataKey()
Description copied from interface: Matcher
Returns a key indicating the type of custom data returned by Matcher.matches(List)

Returns:
a non-null key

getTagValue

public Object getTagValue(MemberHoldingTypeDetails key)
Description copied from interface: Matcher
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

public List<MemberHoldingTypeDetails> matches(List<MemberHoldingTypeDetails> memberHoldingTypeDetailsList)
Description copied from interface: Matcher
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.