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

it.amattioli.workstate.specifications.DefaultMachineSpecification Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
package it.amattioli.workstate.specifications;

import it.amattioli.dominate.Entity;
import it.amattioli.dominate.specifications.Assembler;
import it.amattioli.dominate.specifications.dflt.PredicateAssembler;
import it.amattioli.dominate.specifications.dflt.SpecificationPredicate;

public class DefaultMachineSpecification> extends MachineSpecification {
	
	public DefaultMachineSpecification(String propertyName, String workflowName) {
		super(propertyName, workflowName);
	}
	
	public DefaultMachineSpecification(String propertyName, String workflowName, MachineSpecification chained) {
		super(propertyName, workflowName, chained);
	}

	@Override
	public void itselfAssembleQuery(Assembler assembler) {
		((PredicateAssembler)assembler).addAssembledPredicate(new SpecificationPredicate(this));
	}

	@Override
	public boolean itselfSupportsAssembler(Assembler assembler) {
		return assembler instanceof PredicateAssembler;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy