org.apache.wookie.w3c.impl
Class IconEntity
java.lang.Object
org.apache.wookie.w3c.impl.AbstractLocalizedEntity
org.apache.wookie.w3c.impl.IconEntity
- All Implemented Interfaces:
- IElement, IIconEntity, ILocalizedElement, ILocalizedEntity
public class IconEntity
- extends AbstractLocalizedEntity
- implements IIconEntity
- Version:
- $Id: IconEntity.java,v 1.3 2009-09-02 18:37:31 scottwilson Exp $
- Author:
- Paul Sharples
|
Constructor Summary |
IconEntity()
|
IconEntity(java.lang.String src,
java.lang.Integer height,
java.lang.Integer width)
|
|
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,
org.apache.commons.compress.archivers.zip.ZipFile zip)
|
java.lang.Integer |
getHeight()
|
java.lang.String |
getSrc()
|
java.lang.Integer |
getWidth()
|
void |
setHeight(java.lang.Integer height)
|
void |
setSrc(java.lang.String src)
|
void |
setWidth(java.lang.Integer width)
|
org.jdom.Element |
toXml()
Marshall the entity into an XML Element |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IconEntity
public IconEntity()
IconEntity
public IconEntity(java.lang.String src,
java.lang.Integer height,
java.lang.Integer width)
getSrc
public java.lang.String getSrc()
- Specified by:
getSrc in interface IIconEntity
setSrc
public void setSrc(java.lang.String src)
- Specified by:
setSrc in interface IIconEntity
getHeight
public java.lang.Integer getHeight()
- Specified by:
getHeight in interface IIconEntity
setHeight
public void setHeight(java.lang.Integer height)
- Specified by:
setHeight in interface IIconEntity
getWidth
public java.lang.Integer getWidth()
- Specified by:
getWidth in interface IIconEntity
setWidth
public void setWidth(java.lang.Integer width)
- Specified by:
setWidth in interface IIconEntity
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,
org.apache.commons.compress.archivers.zip.ZipFile zip)
throws BadManifestException
- Specified by:
fromXML in interface IIconEntity
- 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.