@Override MatchRule reparent(final MatchRule newParent) { return new MatchAbstractTypeAuthorityRule(newParent, authority); }
/** * Create a new rule which is the same as this rule, but also matches the given abstract type and type authority. * * @param typeName the type to match * @param authorityName the type authority name to match * @return the new rule */ public final MatchRule matchAbstractType(String typeName, String authorityName) { MatchRule baseRule; if (typeName == null || typeName.equals("*")) { baseRule = without(MatchAbstractTypeRule.class); } else { baseRule = new MatchAbstractTypeRule(this, typeName); } if (authorityName == null || authorityName.equals("*")) { return baseRule.without(MatchAbstractTypeAuthorityRule.class); } else { return new MatchAbstractTypeAuthorityRule(baseRule, authorityName); } }
@Override MatchRule reparent(final MatchRule newParent) { return new MatchAbstractTypeAuthorityRule(newParent, authority); }
@Override MatchRule reparent(final MatchRule newParent) { return new MatchAbstractTypeAuthorityRule(newParent, authority); }
@Override MatchRule reparent(final MatchRule newParent) { return new MatchAbstractTypeAuthorityRule(newParent, authority); }
/** * Create a new rule which is the same as this rule, but also matches the given abstract type and type authority. * * @param typeName the type to match * @param authorityName the type authority name to match * @return the new rule */ public final MatchRule matchAbstractType(String typeName, String authorityName) { MatchRule baseRule; if (typeName == null || typeName.equals("*")) { baseRule = without(MatchAbstractTypeRule.class); } else { baseRule = new MatchAbstractTypeRule(this, typeName); } if (authorityName == null || authorityName.equals("*")) { return baseRule.without(MatchAbstractTypeAuthorityRule.class); } else { return new MatchAbstractTypeAuthorityRule(baseRule, authorityName); } }
/** * Create a new rule which is the same as this rule, but also matches the given abstract type and type authority. * * @param typeName the type to match * @param authorityName the type authority name to match * @return the new rule */ public final MatchRule matchAbstractType(String typeName, String authorityName) { MatchRule baseRule; if (typeName == null || typeName.equals("*")) { baseRule = without(MatchAbstractTypeRule.class); } else { baseRule = new MatchAbstractTypeRule(this, typeName); } if (authorityName == null || authorityName.equals("*")) { return baseRule.without(MatchAbstractTypeAuthorityRule.class); } else { return new MatchAbstractTypeAuthorityRule(baseRule, authorityName); } }
/** * Create a new rule which is the same as this rule, but also matches the given abstract type and type authority. * * @param typeName the type to match * @param authorityName the type authority name to match * @return the new rule */ public final MatchRule matchAbstractType(String typeName, String authorityName) { MatchRule baseRule; if (typeName == null || typeName.equals("*")) { baseRule = without(MatchAbstractTypeRule.class); } else { baseRule = new MatchAbstractTypeRule(this, typeName); } if (authorityName == null || authorityName.equals("*")) { return baseRule.without(MatchAbstractTypeAuthorityRule.class); } else { return new MatchAbstractTypeAuthorityRule(baseRule, authorityName); } }