org.apache.wookie.w3c.impl
Class FeatureEntity
java.lang.Object
org.apache.wookie.w3c.impl.FeatureEntity
- All Implemented Interfaces:
- IElement, IFeatureEntity
public class FeatureEntity
- extends java.lang.Object
- implements IFeatureEntity
- Version:
- $Id: FeatureEntity.java,v 1.3 2009-09-02 18:37:31 scottwilson Exp $
- Author:
- Paul Sharples
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeatureEntity
public FeatureEntity(java.lang.String[] features)
FeatureEntity
public FeatureEntity(java.lang.String name,
boolean required,
java.util.List<IParamEntity> params)
FeatureEntity
public FeatureEntity(java.lang.String name,
boolean required)
hasParams
public boolean hasParams()
getName
public java.lang.String getName()
- Specified by:
getName in interface IFeatureEntity
setName
public void setName(java.lang.String name)
isRequired
public boolean isRequired()
- Specified by:
isRequired in interface IFeatureEntity
setRequired
public void setRequired(boolean required)
getParams
public java.util.List<IParamEntity> getParams()
- Specified by:
getParams in interface IFeatureEntity
setParams
public void setParams(java.util.List<IParamEntity> params)
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
- 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
- Returns:
- the W3C Widgets Element representing the content of the entity
2011 Apache Software Foundation.