public class AuthConfigAspect extends RuleBasedConfigAspect<com.google.api.AuthenticationRule,AuthAttribute>
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToRuleBuilder(com.google.api.Service.Builder serviceBuilder,
java.lang.String selector,
AuthAttribute binding)
Adds a rule back to the rule builder, specialized for the given selector.
|
protected void |
clearRuleBuilder(com.google.api.Service.Builder builder)
Clears the rule builder during normalization.
|
static AuthConfigAspect |
create(Model model) |
protected AuthAttribute |
evaluate(ProtoElement element,
com.google.api.AuthenticationRule rule,
boolean isFromIdl)
Evaluates the rule w.r.t.
|
java.lang.String |
getDocumentation(ProtoElement element)
Default implementation of aspect documentation.
|
java.lang.String |
getDocumentationTitle(ProtoElement element)
Default implementation of aspect documentation title.
|
protected boolean |
isApplicable(ProtoElement element)
Predicate determining whether a rule of the aspect is applicable to the element.
|
java.util.List<java.lang.Class<? extends ConfigAspect>> |
mergeDependencies()
Returns an empty list since this aspect does not depend on any other aspects.
|
endMerging, fromIdlLayer, merge, normalize, startNormalizationasDiagCollector, endLinting, endNormalization, error, getAspectName, getLintRuleNames, getLocationInConfig, getLocationOfRepeatedFieldInConfig, getModel, lint, lintWarning, registerLintRule, registerLintRuleName, startLinting, startMerging, warningpublic static AuthConfigAspect create(Model model)
public java.util.List<java.lang.Class<? extends ConfigAspect>> mergeDependencies()
protected boolean isApplicable(ProtoElement element)
RuleBasedConfigAspectisApplicable in class RuleBasedConfigAspect<com.google.api.AuthenticationRule,AuthAttribute>protected AuthAttribute evaluate(ProtoElement element, com.google.api.AuthenticationRule rule, boolean isFromIdl)
RuleBasedConfigAspectevaluate in class RuleBasedConfigAspect<com.google.api.AuthenticationRule,AuthAttribute>protected void clearRuleBuilder(com.google.api.Service.Builder builder)
RuleBasedConfigAspectclearRuleBuilder in class RuleBasedConfigAspect<com.google.api.AuthenticationRule,AuthAttribute>protected void addToRuleBuilder(com.google.api.Service.Builder serviceBuilder,
java.lang.String selector,
AuthAttribute binding)
RuleBasedConfigAspectaddToRuleBuilder in class RuleBasedConfigAspect<com.google.api.AuthenticationRule,AuthAttribute>public java.lang.String getDocumentationTitle(ProtoElement element)
ConfigAspectBasegetDocumentationTitle in interface ConfigAspectgetDocumentationTitle in class ConfigAspectBasepublic java.lang.String getDocumentation(ProtoElement element)
ConfigAspectBasegetDocumentation in interface ConfigAspectgetDocumentation in class ConfigAspectBase