Class SetTag
- java.lang.Object
-
- org.apache.commons.jelly.TagSupport
-
- net.sf.jguiraffe.gui.builder.di.tags.AbstractBeanTag
-
- net.sf.jguiraffe.gui.builder.di.tags.CollectionTag
-
- net.sf.jguiraffe.gui.builder.di.tags.SetTag
-
- All Implemented Interfaces:
org.apache.commons.jelly.Tag
public class SetTag extends CollectionTag
A specialized
CollectionTag
implementation for creating sets.This tag handler class is very similar to
ListTag
, but it allows the creation of ajava.util.Set
object rather than a list. The tag can be placed in the body of a tag derived fromand sets the value of its parent tag to the newly created set. Alternatively the {
-
-
Constructor Summary
Constructors Constructor Description SetTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BeanProvider
createBeanProvider()
Creates the bean provider representing the collection managed by this tag.boolean
isOrdered()
Returns theordered
attribute.void
setOrdered(boolean ordered)
Sets the value of theordered
attribute.-
Methods inherited from class net.sf.jguiraffe.gui.builder.di.tags.CollectionTag
addElement, getElementClassData, getElementClassDesc, getElementDependencies, getName, processBeforeBody, setElementClass, setElementClassDesc, setElementClassLoader, setElementClassName, setName
-
Methods inherited from class net.sf.jguiraffe.gui.builder.di.tags.AbstractBeanTag
doTag, getBeanStoreTag, getStore, getTargetDependency, isAnonymous, process, setBeanStoreTag, setStore, store
-
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
-
-
-
-
Method Detail
-
isOrdered
public boolean isOrdered()
Returns theordered
attribute. This attribute determines the type of the set created by this tag.- Returns:
- the value of the
ordered
attribute
-
setOrdered
public void setOrdered(boolean ordered)
Sets the value of theordered
attribute. If set to true, aLinkedHashSet
will be created that remembers the order of its elements.- Parameters:
ordered
- theordered
attribute
-
createBeanProvider
protected BeanProvider createBeanProvider() throws org.apache.commons.jelly.JellyTagException
Creates the bean provider representing the collection managed by this tag. This implementation will create aSetBeanProvider
object.- Specified by:
createBeanProvider
in classAbstractBeanTag
- Returns:
- the bean provider produced by this tag
- Throws:
org.apache.commons.jelly.JellyTagException
- if an error occurs
-
-