Package | Description |
---|---|
org.apache.commons.jelly |
This package contains the main jelly API classes.
|
org.apache.commons.jelly.impl |
Core implementation classes for Jelly.
|
org.apache.commons.jelly.tags.core |
The core Tags from the JSTL plus Jelly extensions.
|
org.apache.commons.jelly.xpath |
Modifier and Type | Interface and Description |
---|---|
interface |
DynaTag
DynaTag represents a Jelly custom tag which
can take its attributes dynamically and store them in some data structure. |
interface |
NamespaceAwareTag
NamespaceAwareTag represents a Jelly custom tag which
needs to be aware of the XML Namespace context in which it is used. |
Modifier and Type | Class and Description |
---|---|
class |
DynaBeanTagSupport
DynaBeanTag is a DynaTag implementation which uses a DynaBean
to store its attribute values in. |
class |
DynaTagSupport
DynaTagSupport is an abstract base class
for any DynaTag implementation to derive from. |
class |
MapTagSupport
MapTag is a DynaTag implementation which uses a Map
to store its attribute values in. |
class |
TagSupport
TagSupport an abstract base class which is useful to
inherit from if developing your own tag. |
Modifier and Type | Field and Description |
---|---|
protected Tag |
TagSupport.parent
the parent of this tag
|
Modifier and Type | Method and Description |
---|---|
Tag |
TagLibrary.createTag(String name,
Attributes attributes)
Creates a new Tag for the given tag name and attributes
|
protected Tag |
TagSupport.findAncestorWithClass(Class parentClass)
Searches up the parent hierarchy for a Tag of the given type.
|
protected Tag |
TagSupport.findAncestorWithClass(Class[] parentClasses)
Searches up the parent hierarchy for a Tag of one of the given types.
|
protected Tag |
TagSupport.findAncestorWithClass(Collection parentClasses)
Searches up the parent hierarchy for a Tag of one of the given types.
|
static Tag |
TagSupport.findAncestorWithClass(Tag from,
Class tagClass)
Searches up the parent hierarchy from the given tag
for a Tag of the given type
|
static Tag |
TagSupport.findAncestorWithClass(Tag from,
Class[] tagClasses)
Searches up the parent hierarchy from the given tag
for a Tag matching one or more of given types.
|
static Tag |
TagSupport.findAncestorWithClass(Tag from,
Collection tagClasses)
Searches up the parent hierarchy from the given tag
for a Tag matching one or more of given types.
|
Tag |
TagSupport.getParent() |
Tag |
Tag.getParent() |
Modifier and Type | Method and Description |
---|---|
static Tag |
TagSupport.findAncestorWithClass(Tag from,
Class tagClass)
Searches up the parent hierarchy from the given tag
for a Tag of the given type
|
static Tag |
TagSupport.findAncestorWithClass(Tag from,
Class[] tagClasses)
Searches up the parent hierarchy from the given tag
for a Tag matching one or more of given types.
|
static Tag |
TagSupport.findAncestorWithClass(Tag from,
Collection tagClasses)
Searches up the parent hierarchy from the given tag
for a Tag matching one or more of given types.
|
void |
TagSupport.setParent(Tag parent)
Sets the parent of this tag
|
void |
Tag.setParent(Tag parent)
Sets the parent of this tag
|
Modifier and Type | Class and Description |
---|---|
class |
DynamicBeanTag
This tag is bound onto a Java Bean class.
|
class |
DynamicDynaBeanTag
This tag is bound onto a
DynaClass instance. |
class |
DynamicTag
DynamicTag is a tag that is created from
inside a Jelly script as a Jelly template and will invoke a
given script, passing in its instantiation attributes
as variables and will allow the template to invoke its instance body. |
class |
StaticTag
StaticTag represents a static XML element
which echos itself to XMLOutput when it is invoked. |
Modifier and Type | Method and Description |
---|---|
protected Tag |
StaticTagScript.createTag() |
protected Tag |
TagScript.createTag()
Factory method to create a new Tag instance.
|
Tag |
DynamicTagLibrary.createTag(String name,
Attributes attributes)
Creates a new Tag for the given tag name if it exists
|
Tag |
TagFactory.createTag(String name,
Attributes attributes)
Creates a Tag for the given local name and the SAX attributes
|
Tag |
DefaultTagFactory.createTag(String name,
Attributes attributes) |
protected Tag |
StaticTagScript.findDynamicTag(JellyContext context,
StaticTag tag)
Attempts to find a dynamically created tag that has been created since this
script was compiled
|
Tag |
TagScript.getTag(JellyContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
TagScript.configureTag(Tag tag,
JellyContext context)
Compiles a newly created tag if required, sets its parent and body.
|
protected void |
TagScript.setTag(Tag tag,
JellyContext context)
Allows the script to set the tag instance to be used, such as in a StaticTagScript
when a StaticTag is switched with a DynamicTag
|
Modifier and Type | Class and Description |
---|---|
class |
ArgTag
|
class |
BaseClassLoaderTag
Abstract base tag providing
ClassLoader support. |
class |
BreakTag
A tag which terminates the execution of the current <forEach> or ≶while>
loop.
|
class |
CaseTag
|
class |
CatchTag
A tag which catches exceptions thrown by its body.
|
class |
ChooseTag
A tag which conditionally evaluates its body based on some condition
|
class |
DefaultTag
A tag which conditionally evaluates its body if
none of its preceeding sibling
<case>
tags have been evaluated. |
class |
ExprTag
A tag which evaluates an expression
|
class |
FileTag
A tag that pipes its body to a file denoted by the name attribute or to an in memory String
which is then output to a variable denoted by the var variable.
|
class |
ForEachTag
Iterates over a collection, iterator or an array of objects.
|
class |
GetStaticTag
A tag which can retrieve the value of a static field of a given class.
|
class |
IfTag
Deprecated.
Implemented as
TagScript in CoreTagLibrary |
class |
ImportTag
Imports another script.
|
class |
IncludeTag
A tag which conditionally evaluates its body based on some condition
|
class |
InvokeStaticTag
A Tag which can invoke a static method on a class, without an
instance of the class being needed.
|
class |
InvokeTag
A tag which calls a method in an object instantied by core:new
|
class |
JellyTag
Deprecated.
Implemented as
TagScript in CoreTagLibrary |
class |
MuteTag
A tag which executes its body but passing no output.
|
class |
NewTag
A tag which creates a new object of the given type
|
class |
OtherwiseTag
The otherwise block of a choose/when/otherwise group of tags
|
class |
ParseTag
Parses the output of this tags body or of a given String as a Jelly script
then either outputting the Script as a variable or executing the script.
|
class |
RemoveTag
A tag which removes the variable of the given name from the current variable scope.
|
class |
ScopeTag
A tag which creates a new child variable scope for its body.
|
class |
SetPropertiesTag
A tag which sets the bean properties on the given bean.
|
class |
SetTag
Deprecated.
Implemented as
TagScript in CoreTagLibrary |
class |
SwitchTag
Executes the child <case> tag whose value equals my on attribute.
|
class |
ThreadTag
A tag that spawns the contained script in a separate thread
|
class |
UseBeanTag
A tag which instantiates an instance of the given class
and then sets the properties on the bean.
|
class |
UseListTag
A tag which creates a List implementation and optionally
adds all of the elements identified by the items attribute.
|
class |
WhenTag
A tag which conditionally evaluates its body based on some condition
|
class |
WhileTag
A tag which performs an iteration while the result of an expression is true.
|
class |
WhitespaceTag
A simple tag used to preserve whitespace inside its body
|
Modifier and Type | Class and Description |
---|---|
class |
XPathTagSupport
An abstract base class useful for implementation inheritence
|
Copyright © 2014 Apache Software Foundation. All rights reserved.