public class FieldMatcher extends Object implements Matcher<FieldMetadata>
Matcher for FieldMetadata-that matches on the presence of
at least one of a given list of annotations.| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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. |
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
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 uponpublic 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)public org.springframework.roo.model.CustomDataKey<FieldMetadata> getCustomDataKey()
MatcherMatcher.matches(List)getCustomDataKey in interface Matcher<FieldMetadata>null keypublic Object getTagValue(FieldMetadata field)
MatchergetTagValue in interface Matcher<FieldMetadata>field - the custom data keypublic 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 matchesnull listCopyright © 2009–2018 Pivotal Software, Inc.. All rights reserved.