org.apache.wookie.w3c.impl
Class PreferenceEntity

java.lang.Object
  extended by org.apache.wookie.w3c.impl.ParamEntity
      extended by org.apache.wookie.w3c.impl.PreferenceEntity
All Implemented Interfaces:
IParam, IPreference, IElement

public class PreferenceEntity
extends ParamEntity
implements IPreference, IElement

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

Constructor Summary
PreferenceEntity()
           
 
Method Summary
 void fromXML(org.jdom.Element element)
          Unmarshall the given XML Element to this Object
 boolean isReadOnly()
           
 void setReadOnly(boolean readOnly)
           
 org.jdom.Element toXml()
          Marshall the entity into an XML Element
 
Methods inherited from class org.apache.wookie.w3c.impl.ParamEntity
getName, getValue, setName, setValue
 
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.IParam
getName, getValue, setName, setValue
 

Constructor Detail

PreferenceEntity

public PreferenceEntity()
Method Detail

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in interface IPreference

setReadOnly

public void setReadOnly(boolean readOnly)
Specified by:
setReadOnly in interface IPreference

fromXML

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

Specified by:
fromXML in interface IElement
Overrides:
fromXML in class ParamEntity
Parameters:
element - The Element to unmarshall
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
Overrides:
toXml in class ParamEntity
Returns:
the W3C Widgets Element representing the content of the entity


2012 Apache Software Foundation.