public interface Policy
Modifier and Type | Field and Description |
---|---|
static String |
RESOURCE_BUNDLE |
Modifier and Type | Method and Description |
---|---|
PolicyOption |
getDefaultOption()
Get the default option for this policy.
|
String |
getDescription(Locale locale)
Return a description of the policy.
|
String |
getId()
Get the id for this 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.
|
List<PolicyOption> |
getOptions()
Get the list of options for this policy.
|
static final String RESOURCE_BUNDLE
List<PolicyOption> getOptions()
PolicyOption getDefaultOption()
String getName(Locale locale)
locale
- The localeString getDescription(Locale locale)
locale
- The languageString getOptionDescription(Locale locale, PolicyOption option) throws MissingResourceException
locale
- The locale for the description.option
- The option to ask the description for.MissingResourceException
- if the option is not known by this policy.String getOptionName(Locale locale, PolicyOption option) throws MissingResourceException
locale
- The locale for the nameoption
- The option identifierMissingResourceException
- if the option is not known by this policy.Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.