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

com.alipay.v3.util.schema.api.ServiceSchemaFactory Maven / Gradle / Ivy

There is a newer version: 3.1.6.ALL
Show newest version
package com.alipay.v3.util.schema.api;

import com.alipay.v3.util.schema.model.attribute.Attribute;
import com.alipay.v3.util.schema.model.enums.AttrRuleTypeEnum;
import com.alipay.v3.util.schema.model.enums.AttrTypeEnum;
import com.alipay.v3.util.schema.model.rule.AttributeRule;

import java.util.ArrayList;
import java.util.List;

public class ServiceSchemaFactory {

    public static List createEmptyAttributeList() {
        return new ArrayList();
    }

    public static Attribute createAttribute(AttrTypeEnum attributeType) {
        return AttrTypeEnum.createAttribute(attributeType);
    }

    public static AttributeRule createRule(AttrRuleTypeEnum ruleType) {
        return AttrRuleTypeEnum.createRule(ruleType);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy