KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > deprecated > taglibs > container > IfMiddleContainerTag


1 package org.jahia.deprecated.taglibs.container;
2
3
4 /**
5  * Class IfMiddleContainerTag : evaluates the body only when the container is not the
6  * last or the first of the list
7  *
8  * @author Jerome Tamiotti
9  */

10 public class IfMiddleContainerTag extends IfContainerPositionTag {
11
12     public boolean isPositionGood(ContainerTag container) {
13         return !container.isLast() && !container.isFirst();
14     }
15
16 }
17
Popular Tags