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


Java StandardDialect类代码示例

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


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

示例1: YadaDialect

import org.thymeleaf.standard.StandardDialect; //导入依赖的package包/类
/**
 * 
 * @param config
 */
public YadaDialect(YadaConfiguration config) {
       // We will set this dialect the same "dialect processor" precedence as
       // the Standard Dialect, so that processor executions can interleave.
	super("Yada Dialect", "yada", StandardDialect.PROCESSOR_PRECEDENCE);
	this.config = config;
}
 
开发者ID:xtianus,项目名称:yadaframework,代码行数:11,代码来源:YadaDialect.java

示例2: runTest

import org.thymeleaf.standard.StandardDialect; //导入依赖的package包/类
@Test
public void runTest() {
    TestExecutor testExecutor = new TestExecutor();
    testExecutor.setDialects(Arrays.asList(new StandardDialect(), new ThymeleafExtrasDialect()));
    testExecutor.execute("classpath:whitespace.thtest");
    assertEquals(true, testExecutor.getReporter().isAllOK());
}
 
开发者ID:connect-group,项目名称:thymeleaf-extras,代码行数:8,代码来源:StripWhiteSpaceHTMLProcessorTest.java

示例3: runTest

import org.thymeleaf.standard.StandardDialect; //导入依赖的package包/类
@Test
public void runTest() {
    TestExecutor testExecutor = new TestExecutor();
    testExecutor.setDialects(Arrays.asList(new StandardDialect(), new ThymeleafExtrasDialect()));
    testExecutor.execute("classpath:utextafter.thtest");
    assertEquals(true, testExecutor.getReporter().isAllOK());
}
 
开发者ID:connect-group,项目名称:thymeleaf-extras,代码行数:8,代码来源:UUTextAfterHTMLProcessorTest.java

示例4: runTest

import org.thymeleaf.standard.StandardDialect; //导入依赖的package包/类
@Test
public void runTest() {
    TestExecutor testExecutor = new TestExecutor();
    testExecutor.setDialects(Arrays.asList(new StandardDialect(), new ThymeleafExtrasDialect()));
    testExecutor.execute("classpath:utextbefore.thtest");
    assertEquals(true, testExecutor.getReporter().isAllOK());
}
 
开发者ID:connect-group,项目名称:thymeleaf-extras,代码行数:8,代码来源:UUTextBeforeHTMLProcessorTest.java

示例5: initialize

import org.thymeleaf.standard.StandardDialect; //导入依赖的package包/类
private synchronized void initialize(final FhirContext theContext) {
	if (initialized) {
		return;
	}

	logger.info("Initializing narrative generator");

	classToName = new HashMap<Class<?>, String>();
	nameToNarrativeTemplate = new HashMap<String, String>();

	try {
		loadProperties("/rsc/narrative/custom.properties");
	} catch (IOException e) {
		logger.info("Failed to load property file.", e);
	}

	profileTemplateEngine = new TemplateEngine();
	ProfileResourceResolver resolver = new ProfileResourceResolver();
	profileTemplateEngine.setTemplateResolver(resolver);
	StandardDialect dialect = new StandardDialect() {
		public Set<IProcessor> getProcessors(String theDialectPrefix) {
			Set<IProcessor> retVal = super.getProcessors(theDialectPrefix);
			retVal.add(new NarrativeAttributeProcessor(theContext, theDialectPrefix));
			return retVal;
		}
	};
	profileTemplateEngine.setDialect(dialect);

	initialized = true;
}
 
开发者ID:elexis,项目名称:elexis-3-core,代码行数:31,代码来源:CustomNarrativeGenerator.java

示例6: ShiroDialect

import org.thymeleaf.standard.StandardDialect; //导入依赖的package包/类
public ShiroDialect() {
	super(DIALECT_NAME, "shiro", StandardDialect.PROCESSOR_PRECEDENCE);
}
 
开发者ID:usydapeng,项目名称:thymeleaf3-shiro,代码行数:4,代码来源:ShiroDialect.java

示例7: initialize

import org.thymeleaf.standard.StandardDialect; //导入依赖的package包/类
private synchronized void initialize(final FhirContext theContext) {
	if (myInitialized) {
		return;
	}

	ourLog.info("Initializing narrative generator");

	myClassToName = new HashMap<Class<?>, String>();
	myNameToNarrativeTemplate = new HashMap<String, String>();

	List<String> propFileName = getPropertyFile();

	try {
		if (myApplyDefaultDatatypeTemplates) {
			loadProperties(DefaultThymeleafNarrativeGenerator.NARRATIVES_PROPERTIES);
		}
		for (String next : propFileName) {
			loadProperties(next);
		}
	} catch (IOException e) {
		ourLog.info("Failed to load property file " + propFileName, e);
		throw new ConfigurationException("Can not load property file " + propFileName, e);
	}

	{
		myProfileTemplateEngine = new TemplateEngine();
		ProfileResourceResolver resolver = new ProfileResourceResolver();
		myProfileTemplateEngine.setTemplateResolver(resolver);
		StandardDialect dialect = new StandardDialect() {
			@Override
			public Set<IProcessor> getProcessors(String theDialectPrefix) {
				Set<IProcessor> retVal = super.getProcessors(theDialectPrefix);
				retVal.add(new NarrativeAttributeProcessor(theContext, theDialectPrefix));
				return retVal;
			}

		};
		myProfileTemplateEngine.setDialect(dialect);
	}

	myInitialized = true;
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:43,代码来源:BaseThymeleafNarrativeGenerator.java

示例8: FlashMessagesDialect

import org.thymeleaf.standard.StandardDialect; //导入依赖的package包/类
public FlashMessagesDialect() {
    super(DIALECT_NAME, "flash", StandardDialect.PROCESSOR_PRECEDENCE);
}
 
开发者ID:jeslopalo,项目名称:flash-messages,代码行数:4,代码来源:FlashMessagesDialect.java

示例9: configureSequence

import org.thymeleaf.standard.StandardDialect; //导入依赖的package包/类
@BeforeClass
public static void configureSequence() {
	executor.setDialects(Arrays.asList(new StandardDialect(),
			new DataAttributeDialect()));
}
 
开发者ID:mxab,项目名称:thymeleaf-extras-data-attribute,代码行数:6,代码来源:DataAttributeDialectTest.java

示例10: ShiroDialect

import org.thymeleaf.standard.StandardDialect; //导入依赖的package包/类
public ShiroDialect() {
    super(NAME, PREFIX, StandardDialect.PROCESSOR_PRECEDENCE);
}
 
开发者ID:theborakompanioni,项目名称:thymeleaf-extras-shiro,代码行数:4,代码来源:ShiroDialect.java

示例11: TogglzDialect

import org.thymeleaf.standard.StandardDialect; //导入依赖的package包/类
public TogglzDialect() {
	this(NAME, DEFAULT_PREFIX, StandardDialect.PROCESSOR_PRECEDENCE);
}
 
开发者ID:heneke,项目名称:thymeleaf-extras-togglz,代码行数:4,代码来源:TogglzDialect.java

示例12: AbstractTogglzTest

import org.thymeleaf.standard.StandardDialect; //导入依赖的package包/类
public AbstractTogglzTest() {
	featureManager.enable(FEATURE_1);
	TestFeatureManagerProvider.setFeatureManager(featureManager);
	executor.setDialects(Arrays.asList(new StandardDialect(), new TogglzDialect()));
	executor.setReporter(new ConsoleTestReporter());
}
 
开发者ID:heneke,项目名称:thymeleaf-extras-togglz,代码行数:7,代码来源:AbstractTogglzTest.java

示例13: ThymeleafProcessorDialect

import org.thymeleaf.standard.StandardDialect; //导入依赖的package包/类
/**
 * 
 * 创建一个新的实例 ThymeleafProcessorDialect.
 */
public ThymeleafProcessorDialect() {
    super(DIALECT_NAME, DIALECT_PREFIX, StandardDialect.PROCESSOR_PRECEDENCE);
}
 
开发者ID:qjx378,项目名称:wenku,代码行数:8,代码来源:ThymeleafProcessorDialect.java


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