public abstract class AbstractPolicy extends Object implements Policy
RESOURCE_BUNDLE
Constructor and Description |
---|
AbstractPolicy() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription(Locale locale)
Return a description of the policy.
|
String |
getName()
Get the display name for this policy.
|
String |
getName(Locale locale)
Get the policy name in the language of the given locale.
|
String |
getOptionDescription(Locale locale,
PolicyOption option)
Returns a description for the given option.
|
String |
getOptionName(Locale locale,
PolicyOption option)
Returns a name for the given option.
|
protected String |
getOptionPrefix() |
protected String |
getPolicyPrefix() |
void |
setOptionPrefix(String optionPrefix) |
protected void |
setPolicyPrefix(String policyPrefix) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultOption, getId, getOptions
public AbstractPolicy()
protected String getPolicyPrefix()
protected String getOptionPrefix()
protected void setPolicyPrefix(String policyPrefix)
public void setOptionPrefix(String optionPrefix)
public String getName()
Policy
public String getName(Locale locale)
Policy
public String getDescription(Locale locale)
Policy
getDescription
in interface Policy
locale
- The languagepublic String getOptionDescription(Locale locale, PolicyOption option)
Policy
getOptionDescription
in interface Policy
locale
- The locale for the description.option
- The option to ask the description for.public String getOptionName(Locale locale, PolicyOption option)
Policy
getOptionName
in interface Policy
locale
- The locale for the nameoption
- The option identifierCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.