org.apache.wookie.w3c.impl
Class FeatureEntity

java.lang.Object
  extended by org.apache.wookie.w3c.impl.FeatureEntity
All Implemented Interfaces:
IFeature, IElement

public class FeatureEntity
extends java.lang.Object
implements IFeature, IElement

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<IParam> params)
           
 
Method Summary
 void fromXML(org.jdom.Element element)
          Unmarshall the given XML Element to this Object
 java.lang.String getName()
          Get widget feature name.
 java.util.List<IParam> getParameters()
          Get collection of widget feature parameters.
 boolean hasParams()
           
 boolean isRequired()
          Get widget feature required flag.
 void setName(java.lang.String name)
          Set widget feature name.
 void setParameters(java.util.List<IParam> params)
          Set collection of widget feature parameters.
 void setRequired(boolean required)
          Set widget feature required flag.
 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<IParam> params)

FeatureEntity

public FeatureEntity(java.lang.String name,
                     boolean required)
Method Detail

hasParams

public boolean hasParams()

getName

public java.lang.String getName()
Description copied from interface: IFeature
Get widget feature name.

Specified by:
getName in interface IFeature
Returns:
feature name

setName

public void setName(java.lang.String name)
Description copied from interface: IFeature
Set widget feature name.

Specified by:
setName in interface IFeature
Parameters:
name - feature name

isRequired

public boolean isRequired()
Description copied from interface: IFeature
Get widget feature required flag.

Specified by:
isRequired in interface IFeature
Returns:
required flag

setRequired

public void setRequired(boolean required)
Description copied from interface: IFeature
Set widget feature required flag.

Specified by:
setRequired in interface IFeature
Parameters:
required - required flag

getParameters

public java.util.List<IParam> getParameters()
Description copied from interface: IFeature
Get collection of widget feature parameters.

Specified by:
getParameters in interface IFeature
Returns:
parameters collection

setParameters

public void setParameters(java.util.List<IParam> params)
Description copied from interface: IFeature
Set collection of widget feature parameters.

Specified by:
setParameters in interface IFeature
Parameters:
params - parameters collection

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.