org.apache.wookie.w3c.impl
Class ContentEntity

java.lang.Object
  extended by org.apache.wookie.w3c.impl.AbstractLocalizedEntity
      extended by org.apache.wookie.w3c.impl.ContentEntity
All Implemented Interfaces:
IContent, IDirectional, ILocalized, IContentEntity, IElement

public class ContentEntity
extends AbstractLocalizedEntity
implements IContentEntity

Version:
$Id: ContentEntity.java,v 1.3 2009-09-02 18:37:31 scottwilson Exp $
Author:
Paul Sharples

Field Summary
 
Fields inherited from class org.apache.wookie.w3c.impl.AbstractLocalizedEntity
dir, lang, LEFT_TO_RIGHT, LEFT_TO_RIGHT_OVERRIDE, RIGHT_TO_LEFT, RIGHT_TO_LEFT_OVERRIDE
 
Constructor Summary
ContentEntity()
           
ContentEntity(java.lang.String src, java.lang.String charSet, java.lang.String type)
           
 
Method Summary
 void fromXML(org.jdom.Element element)
          Unmarshall the given XML Element to this Object
 void fromXML(org.jdom.Element element, java.lang.String[] locales, java.lang.String[] encodings, org.apache.commons.compress.archivers.zip.ZipFile zip)
           
 java.lang.String getCharSet()
           
 java.lang.String getSrc()
           
 java.lang.String getType()
           
 void setCharSet(java.lang.String charSet)
           
 void setSrc(java.lang.String src)
           
 void setType(java.lang.String type)
           
 org.jdom.Element toXml()
          Marshall the entity into an XML Element
 
Methods inherited from class org.apache.wookie.w3c.impl.AbstractLocalizedEntity
getDir, getLang, getLocalizedTextContent, getTextDirection, isValid, setDir, setLang, setLocalisationAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.wookie.w3c.ILocalized
getLang, setLang
 
Methods inherited from interface org.apache.wookie.w3c.IDirectional
getDir, isValid, setDir
 

Constructor Detail

ContentEntity

public ContentEntity()

ContentEntity

public ContentEntity(java.lang.String src,
                     java.lang.String charSet,
                     java.lang.String type)
Method Detail

getSrc

public java.lang.String getSrc()
Specified by:
getSrc in interface IContent

setSrc

public void setSrc(java.lang.String src)
Specified by:
setSrc in interface IContent

getCharSet

public java.lang.String getCharSet()
Specified by:
getCharSet in interface IContent

setCharSet

public void setCharSet(java.lang.String charSet)
Specified by:
setCharSet in interface IContent

getType

public java.lang.String getType()
Specified by:
getType in interface IContent

setType

public void setType(java.lang.String type)
Specified by:
setType in interface IContent

fromXML

public void fromXML(org.jdom.Element element)
Description copied from interface: IElement
Unmarshall the given XML Element to this Object

Specified by:
fromXML in interface IElement
Overrides:
fromXML in class AbstractLocalizedEntity
Parameters:
element - The Element to unmarshall

fromXML

public void fromXML(org.jdom.Element element,
                    java.lang.String[] locales,
                    java.lang.String[] encodings,
                    org.apache.commons.compress.archivers.zip.ZipFile zip)
             throws BadManifestException
Specified by:
fromXML in interface IContentEntity
Throws:
BadManifestException

toXml

public org.jdom.Element toXml()
Description copied from interface: IElement
Marshall the entity into an XML Element

Specified by:
toXml in interface IElement
Returns:
the W3C Widgets Element representing the content of the entity


2012 Apache Software Foundation.