|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.roo.classpath.customdata.taggers.FieldMatcher
public class FieldMatcher
A Matcher for FieldMetadata-that matches on the presence of
at least one of a given list of annotations.
| Field Summary | |
|---|---|
static FieldMatcher |
JPA_COLUMN
|
static FieldMatcher |
JPA_EMBEDDED
|
static FieldMatcher |
JPA_EMBEDDED_ID
|
static FieldMatcher |
JPA_ENUMERATED
|
static FieldMatcher |
JPA_ID
|
static FieldMatcher |
JPA_LOB
|
static FieldMatcher |
JPA_MANY_TO_MANY
|
static FieldMatcher |
JPA_MANY_TO_ONE
|
static FieldMatcher |
JPA_ONE_TO_MANY
|
static FieldMatcher |
JPA_ONE_TO_ONE
|
static FieldMatcher |
JPA_TRANSIENT
|
static FieldMatcher |
JPA_VERSION
|
| Constructor Summary | |
|---|---|
FieldMatcher(org.springframework.roo.model.CustomDataKey<FieldMetadata> customDataKey,
AnnotationMetadata... annotations)
Constructor for matching on any of the given annotations |
|
FieldMatcher(org.springframework.roo.model.CustomDataKey<FieldMetadata> customDataKey,
Collection<AnnotationMetadata> annotations)
Constructor for matching on any of the given annotations |
|
| Method Summary | |
|---|---|
org.springframework.roo.model.CustomDataKey<FieldMetadata> |
getCustomDataKey()
Returns a key indicating the type of custom data returned by Matcher.matches(List) |
Object |
getTagValue(FieldMetadata field)
Returns the value associated with the given key that should be applied to the matched instance. |
List<FieldMetadata> |
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 |
| Field Detail |
|---|
public static final FieldMatcher JPA_COLUMN
public static final FieldMatcher JPA_EMBEDDED
public static final FieldMatcher JPA_EMBEDDED_ID
public static final FieldMatcher JPA_ENUMERATED
public static final FieldMatcher JPA_ID
public static final FieldMatcher JPA_LOB
public static final FieldMatcher JPA_MANY_TO_MANY
public static final FieldMatcher JPA_MANY_TO_ONE
public static final FieldMatcher JPA_ONE_TO_MANY
public static final FieldMatcher JPA_ONE_TO_ONE
public static final FieldMatcher JPA_TRANSIENT
public static final FieldMatcher JPA_VERSION
| Constructor Detail |
|---|
public FieldMatcher(org.springframework.roo.model.CustomDataKey<FieldMetadata> customDataKey,
AnnotationMetadata... annotations)
customDataKey - the custom data key indicating the type of field
(required)annotations - the annotations to match upon
public FieldMatcher(org.springframework.roo.model.CustomDataKey<FieldMetadata> customDataKey,
Collection<AnnotationMetadata> annotations)
customDataKey - the custom data key indicating the type of field
(required)annotations - the annotations to match upon (can be null)| Method Detail |
|---|
public org.springframework.roo.model.CustomDataKey<FieldMetadata> getCustomDataKey()
MatcherMatcher.matches(List)
getCustomDataKey in interface Matcher<FieldMetadata>null keypublic Object getTagValue(FieldMetadata field)
Matcher
getTagValue in interface Matcher<FieldMetadata>field - the custom data key
public List<FieldMetadata> matches(List<MemberHoldingTypeDetails> memberHoldingTypeDetailsList)
MatcherCustomDataAccessors for any elements of the given
list that meet this matcher's inclusion criteria.
matches in interface Matcher<FieldMetadata>memberHoldingTypeDetailsList - the list to check for matches
null list
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||