cdm.product.common.settlement.meta.FixedPriceMeta Maven / Gradle / Ivy
package cdm.product.common.settlement.meta;
import cdm.product.common.settlement.FixedPrice;
import cdm.product.common.settlement.validation.FixedPriceTypeFormatValidator;
import cdm.product.common.settlement.validation.FixedPriceValidator;
import cdm.product.common.settlement.validation.exists.FixedPriceOnlyExistsValidator;
import com.rosetta.model.lib.annotations.RosettaMeta;
import com.rosetta.model.lib.meta.RosettaMetaData;
import com.rosetta.model.lib.qualify.QualifyFunctionFactory;
import com.rosetta.model.lib.qualify.QualifyResult;
import com.rosetta.model.lib.validation.Validator;
import com.rosetta.model.lib.validation.ValidatorFactory;
import com.rosetta.model.lib.validation.ValidatorWithArg;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.function.Function;
/**
* @version 5.0.1
*/
@RosettaMeta(model=FixedPrice.class)
public class FixedPriceMeta implements RosettaMetaData {
@Override
public List> dataRules(ValidatorFactory factory) {
return Arrays.asList(
factory.create(cdm.product.common.settlement.validation.datarule.FixedPriceNonNegativePriceAmount.class)
);
}
@Override
public List> getQualifyFunctions(QualifyFunctionFactory factory) {
return Collections.emptyList();
}
@Override
public Validator super FixedPrice> validator() {
return new FixedPriceValidator();
}
@Override
public Validator super FixedPrice> typeFormatValidator() {
return new FixedPriceTypeFormatValidator();
}
@Override
public ValidatorWithArg super FixedPrice, Set> onlyExistsValidator() {
return new FixedPriceOnlyExistsValidator();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy