Class Category
Categories provide a way to classify or tag feeds and entries, enabling better organization and discovery of content. Each category has a term (required) and optionally a scheme (for namespacing) and a human-readable label.
Categories are commonly used for:
- Tagging entries by topic (e.g., "technology", "sports")
- Classifying content by category schemes (e.g., subject taxonomies)
- Enabling feed filtering and organization
Schema
atomCategory = element atom:category { atomCommonAttributes, attribute term { text }, attribute scheme { atomUri }?, attribute label { text }?, undefinedContent }
Example:
Specification:
Represents an
See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Category
Normal constructor.- Parameters:
term
- The category term.
-
Category
public Category()Bean constructor.
-
-
Method Details
-
getTerm
Bean property getter:term .The category term.
- Returns:
- The property value, or
null if it is not set.
-
setTerm
Bean property setter:term .The category term.
- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object
-
getScheme
Bean property getter:scheme .The category scheme.
- Returns:
- The property value, or
null if it is not set.
-
setScheme
Bean property setter:scheme .The category scheme.
The value can be of any of the following types:
URI
,URL
,String
. Strings must be valid URIs.- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object
-
getLabel
Bean property getter:label .The category label.
- Returns:
- The property value, or
null if it is not set.
-
setLabel
Bean property setter:scheme .The category label.
- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object
-
setBase
Description copied from class:Common
-
setLang
Description copied from class:Common
Bean property setter:lang .Sets the natural language of the element's content (xml:lang attribute).
Example:
Text
title =new Text("text" ) .setText("Mon Blog" ) .setLang("fr" );
-