Class Text

java.lang.Object
org.apache.juneau.dto.atom.Common
org.apache.juneau.dto.atom.Text
Direct Known Subclasses:
Content

public class Text extends Common
Represents an atomTextConstruct construct in the RFC4287 specification.
Schema

atomTextConstruct = atomPlainTextConstruct | atomXHTMLTextConstruct atomPlainTextConstruct = atomCommonAttributes, attribute type { "text" | "html" }?, text atomXHTMLTextConstruct = atomCommonAttributes, attribute type { "xhtml" }, xhtmlDiv xhtmlDiv = element xhtml:div { (attribute * { text } | text | anyXHTML)* }

See Also:
  • Constructor Details

    • Text

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

      public Text()
      Bean constructor.
  • Method Details

    • getType

      Bean property getter: type.

      The content type of this content.

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

      public Text setType(String value)
      Bean property setter: type.

      The content type of this content.

      Must be one of the following:

      • "text"
      • "html"
      • "xhtml"
      • null (defaults to "text")
      Parameters:
      value - The new value for this property.
      Can be null to unset the property.
      Returns:
      This object
    • getText

      Bean property getter: text.

      The content of this content.

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

      public Text setText(String value)
      Bean property setter: text.

      The content of this content.

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

      public Text 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 Text 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