org.apache.wookie.w3c.impl
Class FeatureEntity

java.lang.Object
  extended by 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

Constructor Summary
FeatureEntity(java.lang.String[] features)
           
FeatureEntity(java.lang.String name, boolean required)
           
FeatureEntity(java.lang.String name, boolean required, java.util.List<IParamEntity> params)
           
 
Method Summary
 void fromXML(org.jdom.Element element)
          Unmarshall the given XML Element to this Object
 java.lang.String getName()
           
 java.util.List<IParamEntity> getParams()
           
 boolean hasParams()
           
 boolean isRequired()
           
 void setName(java.lang.String name)
           
 void setParams(java.util.List<IParamEntity> params)
           
 void setRequired(boolean required)
           
 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
 

Constructor Detail

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)
Method Detail

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


2012 Apache Software Foundation.