@ThreadSafe public class MultiPredicateMatcher extends AbstractEntityAttributeMatcher
Predicate defaults to Predicates.alwaysTrue() so that
in most cases a minimum number of properties need to be set.
The individual Predicates operate over CharSequence
rather than String both for generality and to allow the use
of instances produced by Predicates.containsPattern(java.lang.String).| Modifier and Type | Field and Description |
|---|---|
private com.google.common.base.Predicate<CharSequence> |
nameFormatPredicate
Predicate to use to match the context's attribute name format. |
private com.google.common.base.Predicate<CharSequence> |
namePredicate
Predicate to use to match the context's attribute name. |
private com.google.common.base.Predicate<CharSequence> |
registrationAuthorityPredicate
Predicate to use to match the context's registration authority. |
private com.google.common.base.Predicate<CharSequence> |
valuePredicate
Predicate to use to match the context's attribute value. |
| Constructor and Description |
|---|
MultiPredicateMatcher() |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.base.Predicate<CharSequence> |
getNameFormatPredicate()
Gets the
Predicate being used to match the context's attribute name format. |
com.google.common.base.Predicate<CharSequence> |
getNamePredicate()
Gets the
Predicate being used to match the context's attribute name. |
com.google.common.base.Predicate<CharSequence> |
getRegistrationAuthorityPredicate()
Gets the
Predicate being used to match the context's registration authority. |
com.google.common.base.Predicate<CharSequence> |
getValuePredicate()
Gets the
Predicate being used to match the context's attribute value. |
protected boolean |
matchAttributeName(String inputName)
Match the name component of the
EntityAttributeFilteringStage.EntityAttributeContext. |
protected boolean |
matchAttributeNameFormat(String inputNameFormat)
Match the name format component of the
EntityAttributeFilteringStage.EntityAttributeContext. |
protected boolean |
matchAttributeValue(String inputValue)
Match the attribute value component of the
EntityAttributeFilteringStage.EntityAttributeContext. |
protected boolean |
matchRegistrationAuthority(String inputRegistrationAuthority)
Match the registration authority component of the
EntityAttributeFilteringStage.EntityAttributeContext. |
void |
setNameFormatPredicate(com.google.common.base.Predicate<CharSequence> predicate)
Sets the
Predicate to use to match the context's attribute name format. |
void |
setNamePredicate(com.google.common.base.Predicate<CharSequence> predicate)
Sets the
Predicate to use to match the context's attribute name. |
void |
setRegistrationAuthorityPredicate(com.google.common.base.Predicate<CharSequence> predicate)
Sets the
Predicate to use to match the context's registration authority. |
void |
setValuePredicate(com.google.common.base.Predicate<CharSequence> predicate)
Sets the
Predicate to use to match the context's attribute value. |
apply@Nonnull private com.google.common.base.Predicate<CharSequence> valuePredicate
Predicate to use to match the context's attribute value.@Nonnull private com.google.common.base.Predicate<CharSequence> namePredicate
Predicate to use to match the context's attribute name.@Nonnull private com.google.common.base.Predicate<CharSequence> nameFormatPredicate
Predicate to use to match the context's attribute name format.@Nonnull private com.google.common.base.Predicate<CharSequence> registrationAuthorityPredicate
Predicate to use to match the context's registration authority.@Nonnull public com.google.common.base.Predicate<CharSequence> getValuePredicate()
Predicate being used to match the context's attribute value.Predicate being used to match the context's attribute valuepublic void setValuePredicate(@Nonnull com.google.common.base.Predicate<CharSequence> predicate)
Predicate to use to match the context's attribute value.predicate - new Predicate to use to match the context's attribute value@Nonnull public com.google.common.base.Predicate<CharSequence> getNamePredicate()
Predicate being used to match the context's attribute name.Predicate being used to match the context's attribute namepublic void setNamePredicate(@Nonnull com.google.common.base.Predicate<CharSequence> predicate)
Predicate to use to match the context's attribute name.predicate - new Predicate to use to match the context's attribute name@Nonnull public com.google.common.base.Predicate<CharSequence> getNameFormatPredicate()
Predicate being used to match the context's attribute name format.Predicate being used to match the context's attribute name formatpublic void setNameFormatPredicate(@Nonnull com.google.common.base.Predicate<CharSequence> predicate)
Predicate to use to match the context's attribute name format.predicate - new Predicate to use to match the context's attribute name format@Nonnull public com.google.common.base.Predicate<CharSequence> getRegistrationAuthorityPredicate()
Predicate being used to match the context's registration authority.Predicate being used to match the context's registration authoritypublic void setRegistrationAuthorityPredicate(@Nonnull com.google.common.base.Predicate<CharSequence> predicate)
Predicate to use to match the context's registration authority.predicate - new Predicate to use to match the context's registration authorityprotected boolean matchAttributeValue(@Nonnull String inputValue)
AbstractEntityAttributeMatcherEntityAttributeFilteringStage.EntityAttributeContext.matchAttributeValue in class AbstractEntityAttributeMatcherinputValue - value component of the input contexttrue if and only if the value component matchesprotected boolean matchAttributeName(@Nonnull String inputName)
AbstractEntityAttributeMatcherEntityAttributeFilteringStage.EntityAttributeContext.matchAttributeName in class AbstractEntityAttributeMatcherinputName - name component of the input contexttrue if and only if the name component matchesprotected boolean matchAttributeNameFormat(@Nonnull String inputNameFormat)
AbstractEntityAttributeMatcherEntityAttributeFilteringStage.EntityAttributeContext.matchAttributeNameFormat in class AbstractEntityAttributeMatcherinputNameFormat - name format component of the input contexttrue if and only if the name format component matchesprotected boolean matchRegistrationAuthority(@Nullable String inputRegistrationAuthority)
AbstractEntityAttributeMatcherEntityAttributeFilteringStage.EntityAttributeContext.matchRegistrationAuthority in class AbstractEntityAttributeMatcherinputRegistrationAuthority - registration authority component of the input contexttrue if and only if the registration authority component matchesCopyright © 1999–2016. All rights reserved.