Lizzy v1.1.1

christophedelory.atom
Class Content

java.lang.Object
  extended by christophedelory.atom.Common
      extended by christophedelory.atom.Type
          extended by christophedelory.atom.Content

public class Content
extends Type

Contains or links to the content of an entry.
Note: the value of the "type" attribute may be one of "text", "html", or "xhtml". Failing that, it must conform to the syntax of a MIME media type, but must not be a composite type (see section 4.2.6 of RFC4288). If neither the type attribute nor the src attribute is provided, Atom processors must behave as though the type attribute were present with a value of "text".
Caution: XHTML elements are not handled.

Version:
$Revision: 92 $
Author:
Christophe Delory

Constructor Summary
Content()
           
 
Method Summary
 String getSrc()
          Returns the associated URI reference.
 String getText()
          Returns the associated text.
 void setSrc(String src)
          Initializes the associated URI reference.
 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

Content

public Content()
Method Detail

getText

public String getText()
Returns the associated text. No default value.

Returns:
a text. May be null.
See Also:
setText(java.lang.String)

setText

public void setText(String text)
Initializes the associated text.

Parameters:
text - a text. May be null.
See Also:
getText()

getSrc

public String getSrc()
Returns the associated URI reference. If the "src" attribute is present, the content must be empty (i.e. no text). Atom Processors may use the URI to retrieve the content and may choose to ignore remote content or to present it in a different manner than local content. If the "src" attribute is present, the "type" attribute should be provided and must be a MIME media type, rather than "text", "html", or "xhtml". The value is advisory; that is to say, when the corresponding URI is dereferenced, if the server providing that content also provides a media type, the server-provided media type is authoritative.

Returns:
an URI as a string. May be null.
See Also:
setSrc(java.lang.String)

setSrc

public void setSrc(String src)
Initializes the associated URI reference.

Parameters:
src - an URI as a string. May be null.
See Also:
getSrc()

© 2008-2009 Christophe Delory

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