All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.thymeleaf.dialect.springdata.SpringDataDialect Maven / Gradle / Ivy

package org.thymeleaf.dialect.springdata;

import java.util.HashSet;
import java.util.Set;

import org.thymeleaf.dialect.IProcessorDialect;
import org.thymeleaf.processor.IProcessor;

public final class SpringDataDialect implements IProcessorDialect {
	public static final String PREFIX = "sd";
	public static final String NAME = "SpringDataDialect";
	public static final int PRECEDENCE = 1000;

	public String getName() {
		return NAME;
	}

	public String getPrefix() {
		return PREFIX;
	}

	public int getDialectProcessorPrecedence() {
		return PRECEDENCE;
	}

	public Set getProcessors(final String dialectPrefix) {
		final Set processors = new HashSet();
		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));

		return processors;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy