Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.intabulas.sandler.elements.impl
Class ContentImpl  view ContentImpl download ContentImpl.java

java.lang.Object
  extended byorg.intabulas.sandler.elements.impl.ContentImpl
All Implemented Interfaces:
org.intabulas.sandler.elements.AtomElement, org.intabulas.sandler.elements.Content, org.intabulas.sandler.elements.ParseableEntity

public class ContentImpl
extends java.lang.Object
implements org.intabulas.sandler.elements.Content, org.intabulas.sandler.elements.AtomElement

ContentImpl

Version:
$Id: ContentImpl.java,v 1.4 2003/09/09 23:44:44 intabulas Exp $

Field Summary
private  java.lang.String _content
           
private  java.lang.String _language
           
private  java.lang.String _mimeType
           
private  java.lang.String _mode
           
 
Fields inherited from interface org.intabulas.sandler.elements.AtomElement
ATOM_NAMESPACE, ATOM_VERSION, ATTRIBUTE_LANG, ATTRIBUTE_LANG_NP, ATTRIBUTE_MODE, ATTRIBUTE_NAME, ATTRIBUTE_TYPE, ATTRIBUTE_VERSION, ATTRIBUTE_XMLNS, ELEMENT_AUTHOR, ELEMENT_CONTENT, ELEMENT_CONTRIBUTOR, ELEMENT_COPYRIGHT, ELEMENT_CREATED, ELEMENT_EMAIL, ELEMENT_ENTRY, ELEMENT_FEED, ELEMENT_GENERATOR, ELEMENT_HOMEPAGE, ELEMENT_ID, ELEMENT_ISSUED, ELEMENT_LINK, ELEMENT_MODIFIED, ELEMENT_NAME, ELEMENT_SUMMARY, ELEMENT_TAGLINE, ELEMENT_TITLE, ELEMENT_URL, FORMAT_COMMENT, FORMAT_ENDELEMENT, FORMAT_FEEDATTRIBUTES, FORMAT_NAMEATTRIBUTE, FORMAT_STARTELEMENT, FORMAT_STRINGELEMENT, HTMLTAG_BEGIN, HTMLTAG_CLOSE, HTMLTAG_END, HTMLTAG_START, SPACE, XML_STARTDOC
 
Constructor Summary
ContentImpl()
           
 
Method Summary
 java.lang.String getBody()
          Returns the actual entry content
 java.lang.String getLanguage()
          Retutns the language of the body content (xml:lang)
 java.lang.String getMimeType()
          Returns the MIME Type format of the body content
 java.lang.String getMode()
          Returns the method used to encode the body content (ie: xml, escaped, base64)
 void loadDocument(XmlPullParser parser)
          Extract relevant content from the parser stream
private  void processDocumentAttributes(XmlPullParser parser)
           
 void setBody(java.lang.String content)
          Set's the entry content
 void setLanguage(java.lang.String language)
          Sets the language of the body content (xml:lang)
 void setMimeType(java.lang.String mimeType)
          Set's the MIME Type format of the body content
 void setMode(java.lang.String mode)
          Set's the method used to encode the body content (ie: xml, escaped, base64)
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_mimeType

private java.lang.String _mimeType

_language

private java.lang.String _language

_mode

private java.lang.String _mode

_content

private java.lang.String _content
Constructor Detail

ContentImpl

public ContentImpl()
Method Detail

getMimeType

public java.lang.String getMimeType()
Returns the MIME Type format of the body content

Specified by:
getMimeType in interface org.intabulas.sandler.elements.Content

setMimeType

public void setMimeType(java.lang.String mimeType)
Set's the MIME Type format of the body content

Specified by:
setMimeType in interface org.intabulas.sandler.elements.Content

getMode

public java.lang.String getMode()
Returns the method used to encode the body content (ie: xml, escaped, base64)

Specified by:
getMode in interface org.intabulas.sandler.elements.Content

setMode

public void setMode(java.lang.String mode)
Set's the method used to encode the body content (ie: xml, escaped, base64)

Specified by:
setMode in interface org.intabulas.sandler.elements.Content

getLanguage

public java.lang.String getLanguage()
Retutns the language of the body content (xml:lang)

Specified by:
getLanguage in interface org.intabulas.sandler.elements.Content

setLanguage

public void setLanguage(java.lang.String language)
Sets the language of the body content (xml:lang)

Specified by:
setLanguage in interface org.intabulas.sandler.elements.Content

getBody

public java.lang.String getBody()
Returns the actual entry content

Specified by:
getBody in interface org.intabulas.sandler.elements.Content

setBody

public void setBody(java.lang.String content)
Set's the entry content

Specified by:
setBody in interface org.intabulas.sandler.elements.Content

toString

public java.lang.String toString()
Returns a string representation of the object.


loadDocument

public void loadDocument(XmlPullParser parser)
                  throws XmlPullParserException
Extract relevant content from the parser stream

Specified by:
loadDocument in interface org.intabulas.sandler.elements.ParseableEntity

processDocumentAttributes

private void processDocumentAttributes(XmlPullParser parser)