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
CollectionTagimplementation for creating sets.This tag handler class is very similar to
ListTag, but it allows the creation of ajava.util.Setobject 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 BeanProvidercreateBeanProvider()Creates the bean provider representing the collection managed by this tag.booleanisOrdered()Returns theorderedattribute.voidsetOrdered(boolean ordered)Sets the value of theorderedattribute.-
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 theorderedattribute. This attribute determines the type of the set created by this tag.- Returns:
- the value of the
orderedattribute
-
setOrdered
public void setOrdered(boolean ordered)
Sets the value of theorderedattribute. If set to true, aLinkedHashSetwill be created that remembers the order of its elements.- Parameters:
ordered- theorderedattribute
-
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 aSetBeanProviderobject.- Specified by:
createBeanProviderin classAbstractBeanTag- Returns:
- the bean provider produced by this tag
- Throws:
org.apache.commons.jelly.JellyTagException- if an error occurs
-
-