当前位置: 首页>>代码示例>>Java>>正文


Java IterationTag类代码示例

本文整理汇总了Java中javax.servlet.jsp.tagext.IterationTag的典型用法代码示例。如果您正苦于以下问题:Java IterationTag类的具体用法?Java IterationTag怎么用?Java IterationTag使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


IterationTag类属于javax.servlet.jsp.tagext包,在下文中一共展示了IterationTag类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: CustomTag

import javax.servlet.jsp.tagext.IterationTag; //导入依赖的package包/类
public CustomTag(String qName, String prefix, String localName, String uri, Attributes attrs,
		Attributes nonTaglibXmlnsAttrs, Attributes taglibAttrs, Mark start, Node parent, TagInfo tagInfo,
		Class<?> tagHandlerClass) {
	super(qName, localName, attrs, nonTaglibXmlnsAttrs, taglibAttrs, start, parent);

	this.uri = uri;
	this.prefix = prefix;
	this.tagInfo = tagInfo;
	this.tagHandlerClass = tagHandlerClass;
	this.customNestingLevel = makeCustomNestingLevel();
	this.childInfo = new ChildInfo();

	this.implementsIterationTag = IterationTag.class.isAssignableFrom(tagHandlerClass);
	this.implementsBodyTag = BodyTag.class.isAssignableFrom(tagHandlerClass);
	this.implementsTryCatchFinally = TryCatchFinally.class.isAssignableFrom(tagHandlerClass);
	this.implementsSimpleTag = SimpleTag.class.isAssignableFrom(tagHandlerClass);
	this.implementsDynamicAttributes = DynamicAttributes.class.isAssignableFrom(tagHandlerClass);
	this.implementsJspIdConsumer = JspIdConsumer.class.isAssignableFrom(tagHandlerClass);
}
 
开发者ID:how2j,项目名称:lazycat,代码行数:20,代码来源:Node.java

示例2: doAfterBody

import javax.servlet.jsp.tagext.IterationTag; //导入依赖的package包/类
@Override
   public int doAfterBody() 
throws JspException
   {
	if(artifactSourceIterator.hasNext())
	{
		currentResolvedArtifactSource = artifactSourceIterator.next();
		currentArtifactSource = currentResolvedArtifactSource.getArtifactSource();
		return IterationTag.EVAL_BODY_AGAIN;
	}
	else
	{
		currentResolvedArtifactSource = null;
		currentArtifactSource = null;
		return IterationTag.SKIP_BODY;
	}
   }
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:18,代码来源:AbstractArtifactSourceCollectionTag.java

示例3: getProcessStatus

import javax.servlet.jsp.tagext.IterationTag; //导入依赖的package包/类
protected ProcessStatus getProcessStatus(int status, boolean doStart) {
    if (status == Tag.EVAL_BODY_INCLUDE) {
        return _forceBodySkip
                ? ProcessStatus.SKIP_BODY
                : ProcessStatus.EVAL_BODY_INCLUDE;
    } else if (status == Tag.SKIP_BODY) {
        return ProcessStatus.SKIP_BODY;
    } else if (status == Tag.EVAL_PAGE) {
        return ProcessStatus.EVAL_PAGE;
    } else if (status == Tag.SKIP_PAGE) {
        return ProcessStatus.SKIP_PAGE;
    } else if (!doStart && status == IterationTag.EVAL_BODY_AGAIN) {
        return ProcessStatus.EVAL_BODY_AGAIN;
    } else if (doStart && status == BodyTag.EVAL_BODY_BUFFERED) {
        return _forceBodySkip
                ? ProcessStatus.SKIP_BODY
                : ProcessStatus.EVAL_BODY_BUFFERED;
    }
    throw new IllegalArgumentException();
}
 
开发者ID:seasarorg,项目名称:mayaa,代码行数:21,代码来源:JspProcessor.java

示例4: CustomTag

import javax.servlet.jsp.tagext.IterationTag; //导入依赖的package包/类
public CustomTag(String qName, String prefix, String localName,
        String uri, Attributes attrs, Attributes nonTaglibXmlnsAttrs,
        Attributes taglibAttrs, Mark start, Node parent,
        TagInfo tagInfo, Class<?> tagHandlerClass) {
    super(qName, localName, attrs, nonTaglibXmlnsAttrs, taglibAttrs,
            start, parent);

    this.uri = uri;
    this.prefix = prefix;
    this.tagInfo = tagInfo;
    this.tagHandlerClass = tagHandlerClass;
    this.customNestingLevel = makeCustomNestingLevel();
    this.childInfo = new ChildInfo();

    this.implementsIterationTag = IterationTag.class
            .isAssignableFrom(tagHandlerClass);
    this.implementsBodyTag = BodyTag.class
            .isAssignableFrom(tagHandlerClass);
    this.implementsTryCatchFinally = TryCatchFinally.class
            .isAssignableFrom(tagHandlerClass);
    this.implementsSimpleTag = SimpleTag.class
            .isAssignableFrom(tagHandlerClass);
    this.implementsDynamicAttributes = DynamicAttributes.class
            .isAssignableFrom(tagHandlerClass);
    this.implementsJspIdConsumer = JspIdConsumer.class
            .isAssignableFrom(tagHandlerClass);
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:28,代码来源:Node.java

示例5: CustomTag

import javax.servlet.jsp.tagext.IterationTag; //导入依赖的package包/类
public CustomTag(String qName, String prefix, String localName,
        String uri, Attributes attrs, Attributes nonTaglibXmlnsAttrs,
        Attributes taglibAttrs, Mark start, Node parent,
        TagInfo tagInfo, Class tagHandlerClass) {
    super(qName, localName, attrs, nonTaglibXmlnsAttrs, taglibAttrs,
            start, parent);

    this.uri = uri;
    this.prefix = prefix;
    this.tagInfo = tagInfo;
    this.tagHandlerClass = tagHandlerClass;
    this.customNestingLevel = makeCustomNestingLevel();
    this.childInfo = new ChildInfo();

    this.implementsIterationTag = IterationTag.class
            .isAssignableFrom(tagHandlerClass);
    this.implementsBodyTag = BodyTag.class
            .isAssignableFrom(tagHandlerClass);
    this.implementsTryCatchFinally = TryCatchFinally.class
            .isAssignableFrom(tagHandlerClass);
    this.implementsSimpleTag = SimpleTag.class
            .isAssignableFrom(tagHandlerClass);
    this.implementsDynamicAttributes = DynamicAttributes.class
            .isAssignableFrom(tagHandlerClass);
    this.implementsJspIdConsumer = JspIdConsumer.class
            .isAssignableFrom(tagHandlerClass);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:28,代码来源:Node.java

示例6: CustomTag

import javax.servlet.jsp.tagext.IterationTag; //导入依赖的package包/类
public CustomTag(String jspVersion, String qName, String prefix,
                        String localName,
		 String uri, Attributes attrs,
		 Attributes nonTaglibXmlnsAttrs,
		 Attributes taglibAttrs,
		 Mark start, Node parent, TagInfo tagInfo,
		 Class tagHandlerClass) {
           super(qName, localName, attrs, nonTaglibXmlnsAttrs, taglibAttrs,
                 start, parent);

           this.jspVersion = Double.valueOf(jspVersion).doubleValue();
    this.uri = uri;
    this.prefix = prefix;
    this.tagInfo = tagInfo;
    this.tagHandlerClass = tagHandlerClass;
    this.customNestingLevel = makeCustomNestingLevel();
           this.childInfo = new ChildInfo();

    this.implementsIterationTag = 
	IterationTag.class.isAssignableFrom(tagHandlerClass);
    this.implementsBodyTag =
	BodyTag.class.isAssignableFrom(tagHandlerClass);
    this.implementsTryCatchFinally = 
	TryCatchFinally.class.isAssignableFrom(tagHandlerClass);
    this.implementsSimpleTag = 
	SimpleTag.class.isAssignableFrom(tagHandlerClass);
    this.implementsDynamicAttributes = 
	DynamicAttributes.class.isAssignableFrom(tagHandlerClass);
}
 
开发者ID:eclipse,项目名称:packagedrone,代码行数:30,代码来源:Node.java

示例7: doAfterBody

import javax.servlet.jsp.tagext.IterationTag; //导入依赖的package包/类
@Override
   public int doAfterBody() 
throws JspException
   {
	++index;
	return isAppendAllElement() ? 
		index <= values.length ? IterationTag.EVAL_BODY_AGAIN : Tag.SKIP_BODY :
		index < values.length ? IterationTag.EVAL_BODY_AGAIN : Tag.SKIP_BODY;
   }
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:10,代码来源:EnumIteratorTag.java

示例8: doAfterBody

import javax.servlet.jsp.tagext.IterationTag; //导入依赖的package包/类
@Override
   public int doAfterBody() 
throws JspException
   {
	++index;
	return index < values.length ? IterationTag.EVAL_BODY_AGAIN : Tag.SKIP_BODY;
   }
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:8,代码来源:WellKnownOIDIteratorTag.java

示例9: doAfterBody

import javax.servlet.jsp.tagext.IterationTag; //导入依赖的package包/类
@Override
   public int doAfterBody() 
throws JspException
   {
    if( patientIterator.hasNext() )
    {
    	currentPatient = patientIterator.next();
    	return IterationTag.EVAL_BODY_AGAIN;
    }
    else
    {
    	currentPatient = null;
    	return IterationTag.SKIP_BODY;
    }
   }
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:16,代码来源:AbstractPatientListTag.java

示例10: doAfterBody

import javax.servlet.jsp.tagext.IterationTag; //导入依赖的package包/类
@Override
   public int doAfterBody() 
throws JspException
   {
	if(fileIterator.hasNext())
	{
		currentFile = fileIterator.next();
		return IterationTag.EVAL_BODY_AGAIN;
	}
	else
	{
		currentFile = null;
		return IterationTag.SKIP_BODY;
	}
   }
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:16,代码来源:AbstractJavaLogCollectionTag.java

示例11: doAfterBody

import javax.servlet.jsp.tagext.IterationTag; //导入依赖的package包/类
@Override
   public int doAfterBody() 
throws JspException
   {
	if(resolvedArtifactSourceIterator.hasNext())
	{
		currentResolvedArtifactSource = resolvedArtifactSourceIterator.next();
		return IterationTag.EVAL_BODY_AGAIN;
	}
	else
	{
		currentResolvedArtifactSource = null;
		return IterationTag.SKIP_BODY;
	}
   }
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:16,代码来源:AbstractResolvedArtifactSourceCollectionTag.java

示例12: doAfterBody

import javax.servlet.jsp.tagext.IterationTag; //导入依赖的package包/类
@Override
   public int doAfterBody() 
throws JspException
   {
	if(siteIterator.hasNext())
	{
		currentSite = siteIterator.next();
		return IterationTag.EVAL_BODY_AGAIN;
	}
	else
	{
		currentSite = null;
		return IterationTag.SKIP_BODY;
	}
   }
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:16,代码来源:AbstractSiteCollectionTag.java

示例13: doAfterBody

import javax.servlet.jsp.tagext.IterationTag; //导入依赖的package包/类
@Override
   public int doAfterBody() 
throws JspException
   {
	if(urlIterator.hasNext())
	{
		currentUrl = urlIterator.next();
		return IterationTag.EVAL_BODY_AGAIN;
	}
	else
	{
		currentUrl = null;
		return IterationTag.SKIP_BODY;
	}
   }
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:16,代码来源:AbstractUrlCollectionTag.java

示例14: doAfterBody

import javax.servlet.jsp.tagext.IterationTag; //导入依赖的package包/类
@Override
   public int doAfterBody() 
throws JspException
   {
	Iterator<T> boIterator = getBusinessObjectCollectionIterator();
    if( boIterator != null && boIterator.hasNext() )
    {
    	currentBusinessObject = boIterator.next();
    	return IterationTag.EVAL_BODY_AGAIN;
    }
    currentBusinessObject = null;
    return BodyTag.SKIP_BODY;
   }
 
开发者ID:VHAINNOVATIONS,项目名称:Telepathology,代码行数:14,代码来源:AbstractBusinessObjectCollectionTag.java

示例15: doAfterBody

import javax.servlet.jsp.tagext.IterationTag; //导入依赖的package包/类
@Override
public int doAfterBody() throws JspException {
	// TODO Auto-generated method stub
	x--;
	if(x>0){
		return IterationTag.EVAL_BODY_AGAIN;
	}else{
		return IterationTag.SKIP_BODY;
	}
}
 
开发者ID:mushroomgithub,项目名称:ServletStudyDemo,代码行数:11,代码来源:TagDemo3.java


注:本文中的javax.servlet.jsp.tagext.IterationTag类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。