public class Content extends Text
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 }
| Constructor and Description |
|---|
Content()
Normal content.
|
Content(String type)
Normal content.
|
| Modifier and Type | Method and Description |
|---|---|
Content |
base(Object base)
Sets the URI base of this object.
|
URI |
getSrc()
Returns the source URI.
|
Content |
lang(String lang)
Sets the language of this object.
|
Content |
src(Object src)
Sets the source URI.
|
Content |
text(String text)
Sets the content of this content.
|
Content |
type(String type)
Sets the content type of this content.
|
public Content(String type)
type - The content type of this content.public Content()
@Beanp(value="src") public Content src(Object src)
The value can be of any of the following types: URI, URL, String.
Strings must be valid URIs.
URIs defined by UriResolver can be used for values.
src - The source URI.public Content text(String text)
Textpublic Content type(String type)
TextMust be one of the following:
public Content base(Object base)
Common
The value can be of any of the following types: URI, URL, String.
Strings must be valid URIs.
URIs defined by UriResolver can be used for values.
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.