Class Content


public class Content extends Text
Represents an atomContent construct in the RFC4287 specification.
Schema

atomContent = atomInlineTextContent | atomInlineXHTMLContent | atomInlineOtherContent | atomOutOfLineContent atomInlineTextContent = element atom:content { atomCommonAttributes, attribute type { "text" | "html" }?, (text)* } atomInlineXHTMLContent = element atom:content { atomCommonAttributes, attribute type { "xhtml" }, xhtmlDiv } atomInlineOtherContent = element atom:content { atomCommonAttributes, attribute type { atomMediaType }?, (text|anyElement)* } atomOutOfLineContent = element atom:content { atomCommonAttributes, attribute type { atomMediaType }?, attribute src { atomUri }, empty }

See Also:
  • Constructor Details

    • Content

      public Content(String type)
      Normal content.
      Parameters:
      type - The content type of this content.
    • Content

      public Content()
      Normal content.
  • Method Details

    • getSrc

      @Xml(format=ATTR) public URI getSrc()
      Bean property getter: src.

      The source URI.

      Returns:
      The property value, or null if it is not set.
    • setSrc

      public Content setSrc(Object value)
      Bean property setter: src.

      The source URI.

      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
    • setText

      public Content setText(String text)
      Description copied from class: Text
      Bean property setter: text.

      The content of this content.

      Overrides:
      setText in class Text
      Parameters:
      text - The new value for this property.
      Can be null to unset the property.
      Returns:
      This object
    • setType

      public Content setType(String type)
      Description copied from class: Text
      Bean property setter: type.

      The content type of this content.

      Must be one of the following:

      • "text"
      • "html"
      • "xhtml"
      • null (defaults to "text")
      Overrides:
      setType in class Text
      Parameters:
      type - The new value for this property.
      Can be null to unset the property.
      Returns:
      This object
    • setBase

      public Content 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 Text
      Parameters:
      value - The new value for this property.
      Can be null to unset the property.
      Returns:
      This object
    • setLang

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

      The language of this object.

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