com.rosetta.metatest.model.meta.Asset14Meta Maven / Gradle / Ivy
package com.rosetta.metatest.model.meta;
import com.rosetta.metatest.model.Asset14;
import com.rosetta.metatest.model.validation.Asset14TypeFormatValidator;
import com.rosetta.metatest.model.validation.Asset14Validator;
import com.rosetta.metatest.model.validation.exists.Asset14OnlyExistsValidator;
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 test
*/
@RosettaMeta(model=Asset14.class)
public class Asset14Meta implements RosettaMetaData {
@Override
public List> dataRules(ValidatorFactory factory) {
return Arrays.asList(
factory.create(com.rosetta.metatest.model.validation.datarule.Asset14Choice.class)
);
}
@Override
public List> getQualifyFunctions(QualifyFunctionFactory factory) {
return Collections.emptyList();
}
@Override
public Validator super Asset14> validator() {
return new Asset14Validator();
}
@Override
public Validator super Asset14> typeFormatValidator() {
return new Asset14TypeFormatValidator();
}
@Override
public ValidatorWithArg super Asset14, Set> onlyExistsValidator() {
return new Asset14OnlyExistsValidator();
}
}