Lizzy v1.1.1

christophedelory.atom
Class TextContainer

java.lang.Object
  extended by christophedelory.atom.Common
      extended by christophedelory.atom.Type
          extended by 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

Constructor Summary
TextContainer()
           
 
Method Summary
 String getText()
          Returns the associated text.
 void setText(String text)
          Initializes the associated text.
 
Methods inherited from class christophedelory.atom.Type
getType, setType
 
Methods inherited from class christophedelory.atom.Common
getBaseString, getLang, setBaseString, setLang
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextContainer

public TextContainer()
Method Detail

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()

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.