Package org.opencms.xml.containerpage
Enum Class CmsFormatterBean.ContentExtractionPolicy
java.lang.Object
java.lang.Enum<CmsFormatterBean.ContentExtractionPolicy>
org.opencms.xml.containerpage.CmsFormatterBean.ContentExtractionPolicy
- All Implemented Interfaces:
Serializable,Comparable<CmsFormatterBean.ContentExtractionPolicy>,Constable
- Enclosing class:
CmsFormatterBean
public static enum CmsFormatterBean.ContentExtractionPolicy
extends Enum<CmsFormatterBean.ContentExtractionPolicy>
The valid values of the content extraction policy (
CmsFormatterBean.getContentExtractionPolicy()).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndex the content for search, but keep it out of content extraction (e.g.Use the content for summaries only. -
Method Summary
Modifier and TypeMethodDescriptionReturns the policy for a configured string value, ornullif none matches.getValue()Returns the configured string value.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SEARCH_ONLY
Index the content for search, but keep it out of content extraction (e.g. the page outline). -
SUMMARY_ONLY
Use the content for summaries only.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forValue
Returns the policy for a configured string value, ornullif none matches.- Parameters:
value- the configured string value- Returns:
- the matching policy, or
null
-
getValue
Returns the configured string value.- Returns:
- the configured string value
-