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


Java IProcessor类代码示例

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


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

示例1: getProcessors

import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Override
public Set<IProcessor> getProcessors(final String dialectPrefix) {
    final Set<IProcessor> processors = new HashSet<IProcessor>();
    processors.add(new YadaHrefAttrProcessor(dialectPrefix, config));
    processors.add(new YadaSrcAttrProcessor(dialectPrefix, config));
    // TODO move YadaActionUploadAttrProcessor to a yada security dialect
    // processors.add(new YadaActionUploadAttrProcessor(dialectPrefix));
    // Rimuove lo yada:xxx namespace dal tag <html>
    processors.add(new StandardXmlNsTagProcessor(TemplateMode.HTML, dialectPrefix));
    return processors;
}
 
开发者ID:xtianus,项目名称:yadaframework,代码行数:12,代码来源:YadaDialect.java

示例2: getProcessors

import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Override
public Set<IProcessor> getProcessors(String dialectPrefix) {
	final Set<IProcessor> processors = new HashSet<IProcessor>();
	processors.add(new GuestAttributeTagProcessor(dialectPrefix));
	processors.add(new GuestElementTagProcessor(dialectPrefix));

	processors.add(new UserAttributeTagProcessor(dialectPrefix));
	processors.add(new UserElementTagProcessor(dialectPrefix));

	processors.add(new HasAllRolesAttributeTagProcessor(dialectPrefix));
	processors.add(new HasAllRolesElementTagProcessor(dialectPrefix));

	processors.add(new HasAnyRolesAttributeTagProcessor(dialectPrefix));
	processors.add(new HasAnyRolesElementTagProcessor(dialectPrefix));

	processors.add(new HasRoleAttributeTagProcessor(dialectPrefix));
	processors.add(new HasRoleElementTagProcessor(dialectPrefix));

	processors.add(new LacksRoleAttributeTagProcessor(dialectPrefix));
	processors.add(new LacksRoleElementTagProcessor(dialectPrefix));

	processors.add(new HasAllPermissionsAttributeTagProcessor(dialectPrefix));
	processors.add(new HasAllPermissionsElementTagProcessor(dialectPrefix));

	processors.add(new HasAnyPermissionsAttributeTagProcessor(dialectPrefix));
	processors.add(new HasAnyPermissionsElementTagProcessor(dialectPrefix));

	processors.add(new HasPermissionAttributeTagProcessor(dialectPrefix));
	processors.add(new HasPermissionElementTagProcessor(dialectPrefix));

	processors.add(new lacksPermissionAttributeTagProcessor(dialectPrefix));
	processors.add(new LacksPermissionElementTagProcessor(dialectPrefix));

	return processors;
}
 
开发者ID:usydapeng,项目名称:thymeleaf3-shiro,代码行数:36,代码来源:ShiroDialect.java

示例3: getProcessors

import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Override
public Set<IProcessor> getProcessors() {
    Set<IProcessor> processors = new HashSet<>();

    processors.add(new WebjarsLinkProcessor("src"));
    processors.add(new WebjarsLinkProcessor("href"));

    return Collections.unmodifiableSet(processors);
}
 
开发者ID:Catalysts,项目名称:cat-boot,代码行数:10,代码来源:WebjarsDialect.java

示例4: getProcessors

import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Override
public Set<IProcessor> getProcessors(final String dialectPrefix) {
    final Set<IProcessor> processors = new HashSet<>();
    processors.add(new PrettytimeProcessor()); // 日期美化 Processor
    processors.add(new PropertiesProcessor()); // 获取配置文件 Processor
    return processors;
}
 
开发者ID:qjx378,项目名称:wenku,代码行数:8,代码来源:ThymeleafProcessorDialect.java

示例5: getProcessors

import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Override
public Set<IProcessor> getProcessors() {
    final Set<IProcessor> processors = new HashSet<IProcessor>();
    processors.add(new TimeProcessor("time"));
    processors.add(new DateProcessor("date"));
    processors.add(new TitleProcessor("title"));
    processors.add(new CommentProcessor("comment"));
    processors.add(new IfProcessor("if"));
    return processors;
}
 
开发者ID:af-not-found,项目名称:blog-java2,代码行数:11,代码来源:MyFunctionDialect.java

示例6: getProcessors

import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Override
public Set<IProcessor> getProcessors(String dialectPrefix) {
    IProcessorDialect dialect = this;
    return new HashSet<IProcessor>() {{
        add(new HtmlProcessor(dialect, getPrefix()));
    }};
}
 
开发者ID:astrohome,项目名称:photogallery,代码行数:8,代码来源:MyDialect.java

示例7: getProcessors

import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
public Set<IProcessor> getProcessors(final String dialectPrefix) {
    final Set<IProcessor> processors = new HashSet<IProcessor>();
    processors.add(new StandardXmlNsTagProcessor(TemplateMode.HTML, PREFIX));
    processors.add(new PaginationAttrProcessor(PREFIX));
    processors.add(new PaginationSortAttrProcessor(PREFIX));
    processors.add(new PaginationSummaryAttrProcessor(PREFIX));
    processors.add(new PageObjectAttrProcessor(PREFIX));
    processors.add(new PaginationUrlAttrProcessor(PREFIX));
    processors.add(new PaginationQualifierAttrProcessor(PREFIX));
    processors.add(new PaginationSplitAttrProcessor(PREFIX));
    processors.add(new PageSizeSelectorAttrProcessor(PREFIX));

    return processors;
}
 
开发者ID:jpenren,项目名称:thymeleaf-spring-data-dialect,代码行数:15,代码来源:SpringDataDialect.java

示例8: getProcessors

import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Override
public Set<IProcessor> getProcessors() {
    Set<IProcessor> attrProcessors = new HashSet<IProcessor>();
    attrProcessors.add(new ConnectionAttrProcessor());
    attrProcessors.add(new ParamsAttrProcessor());
    attrProcessors.add(new QueryAttrProcessor());
    attrProcessors.add(new UpdateAttrProcessor());
    return attrProcessors;
}
 
开发者ID:jmiguelsamper,项目名称:thymeleaf-extras-sqldialect,代码行数:10,代码来源:SqlDialect.java

示例9: getProcessors

import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
public Set<IProcessor> getProcessors(String dialectPrefix) {
    final HashSet<IProcessor> processors = new HashSet<>();
    processors.add(new UTextAfterHTMLProcessor(PREFIX, getDialectProcessorPrecedence()));
    processors.add(new UTextBeforeHTMLProcessor(PREFIX, getDialectProcessorPrecedence()));
    processors.add(new StripWhiteSpaceHTMLProcessor(PREFIX, getDialectProcessorPrecedence()));
    return processors;
}
 
开发者ID:connect-group,项目名称:thymeleaf-extras,代码行数:8,代码来源:ThymeleafExtrasDialect.java

示例10: getProcessors

import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
public Set<IProcessor> getProcessors(final String dialectPrefix) {
    final Set<IProcessor> processors = new HashSet<IProcessor>();
    processors.add(new FlashMessagesElementTagProcessor(dialectPrefix));
    // This will remove the xmlns:score attributes we might add for IDE validation
    processors.add(new StandardXmlNsTagProcessor(TemplateMode.HTML, dialectPrefix));
    return processors;
}
 
开发者ID:jeslopalo,项目名称:flash-messages,代码行数:8,代码来源:FlashMessagesDialect.java

示例11: it_should_get_a_standarxmlnstagprocessor

import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Test
public void it_should_get_a_standarxmlnstagprocessor() {
    final Set<IProcessor> processors = this.sut.getProcessors(DIALECT_PREFIX);

    final long count = processors
        .stream()
        .filter(processor -> !(processor instanceof StandardXmlNsTagProcessor))
        .count();

    assertThat(count).isEqualTo(1);
}
 
开发者ID:jeslopalo,项目名称:flash-messages,代码行数:12,代码来源:FlashMessagesDialectSpecs.java

示例12: it_should_get_a_flashmessageselementtagprocessor

import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Test
public void it_should_get_a_flashmessageselementtagprocessor() {
    final Set<IProcessor> processors = this.sut.getProcessors(DIALECT_PREFIX);

    final long count = processors
        .stream()
        .filter(processor -> !(processor instanceof FlashMessagesElementTagProcessor))
        .count();

    assertThat(count).isEqualTo(1);
}
 
开发者ID:jeslopalo,项目名称:flash-messages,代码行数:12,代码来源:FlashMessagesDialectSpecs.java

示例13: getProcessors

import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Override
public Set<IProcessor> getProcessors(String dialectPrefix) {
	return Collections.unmodifiableSet(new LinkedHashSet<IProcessor>(Arrays.asList(
			new IProcessor[] {
					new StandardXmlNsTagProcessor(TemplateMode.HTML, dialectPrefix),
					new JawrCssAttributeTagProcessor(),
					new JawrJsAttributeTagProcessor()
			}
			)));
}
 
开发者ID:dtrunk90,项目名称:thymeleaf-jawr-extension,代码行数:11,代码来源:JawrDialect.java

示例14: getProcessors

import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
@Override
public Set<IProcessor> getProcessors(String dialectPrefix) {
	HashSet<IProcessor> processors = new HashSet<IProcessor>();
	processors.add(new StandardXmlNsTagProcessor(TemplateMode.HTML, dialectPrefix));
	processors.add(new DataProcessor(TemplateMode.HTML, dialectPrefix));
	return processors;
}
 
开发者ID:mxab,项目名称:thymeleaf-extras-data-attribute,代码行数:8,代码来源:DataAttributeDialect.java

示例15: createDialect

import org.thymeleaf.processor.IProcessor; //导入依赖的package包/类
protected IDialect createDialect() {
    return new AbstractDialect() {
        @Override
        public String getPrefix() {
            return "csrf";
        }

        @Override
        public Set<IProcessor> getProcessors() {
            return ImmutableSet.<IProcessor>of(new CSRFElementProcessor());
        }
    };
}
 
开发者ID:wisdom-framework,项目名称:wisdom,代码行数:14,代码来源:ThymeleafCsrfDialect.java


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