christophedelory.atom
Class TextContainer
java.lang.Object
christophedelory.atom.Common
christophedelory.atom.Type
christophedelory.atom.TextContainer
public class TextContainer
- extends Type
Human-readable text, usually in small quantities.
Note: when present, the value of the "type" attribute must be one of "text", "html", or "xhtml".
If the "type" attribute is not provided, Atom processors must behave as though it were present with a value of "text".
Unlike the content element, MIME media types must NOT be used as values for the "type" attribute here.
Caution: XHTML elements are not handled.
- Version:
- $Revision: 92 $
- Author:
- Christophe Delory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextContainer
public TextContainer()
getText
public String getText()
- Returns the associated text.
No default value.
- Returns:
- a text. May be
null
if not yet initialized. - See Also:
setText(java.lang.String)
setText
public void setText(String text)
- Initializes the associated text.
- Parameters:
text
- a text. Shall not be null
.
- Throws:
NullPointerException
- if text
is null
.- See Also:
getText()
Copyright © 2008-2009 Christophe Delory. All Rights Reserved.