Class Category

java.lang.Object
org.apache.juneau.dto.atom.Common
org.apache.juneau.dto.atom.Category

@Bean(typeName="category") public class Category extends Common
Represents an atomCategory construct in the RFC4287 specification.
Schema

atomCategory = element atom:category { atomCommonAttributes, attribute term { text }, attribute scheme { atomUri }?, attribute label { text }?, undefinedContent }

See Also:
  • Constructor Details

    • Category

      public Category(String term)
      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 be null 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

      public Category setScheme(Object value)
      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 be null 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

      public Category setLabel(String value)
      Bean property setter: scheme.

      The category label.

      Parameters:
      value - The new value for this property.
      Can be null to unset the property.
      Returns:
      This object
    • setBase

      public Category setBase(Object value)
      Description copied from class: Common
      Bean property setter: term.

      The URI base of this object.

      The value can be of any of the following types: URI, URL, String. Strings must be valid URIs.

      Overrides:
      setBase in class Common
      Parameters:
      value - The new value for this property.
      Can be null to unset the property.
      Returns:
      This object
    • setLang

      public Category setLang(String value)
      Description copied from class: Common
      Bean property setter: lang.

      The language of this object.

      Overrides:
      setLang in class Common
      Parameters:
      value - The new value for this property.
      Can be null to unset the property.
      Returns:
      This object