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

cn.allbs.hj212.model.verify.DataElement Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package cn.allbs.hj212.model.verify;


import cn.allbs.hj212.model.verify.groups.TypeGroup;

/**
 * 数据段 元素
 *
 * @author ChenQi
 */
public enum DataElement {
    QN(TypeGroup.YYYYMMDDhhmmsszzz.class),
    PNUM(Group.PNUM.class, false),
    PNO(Group.PNO.class, false),
    ST(Group.ST.class),
    CN(Group.CN.class),
    PW(Group.PW.class),
    MN(Group.MN.class),
    Flag(Group.Flag.class),
    CP(Group.CP.class);

    private Class group;
    private boolean required;

    DataElement(Class group) {
        this.group = group;
        this.required = true;
    }

    DataElement(Class group, boolean required) {
        this.group = group;
        this.required = required;
    }


    public Class group() {
        return group;
    }

    public boolean isRequired() {
        return required;
    }

    public interface Group {
        interface QN {
        }

        interface PNUM {
        }

        interface PNO {
        }

        interface ST {
        }

        interface CN {
        }

        interface PW {
        }

        interface MN {
        }

        interface Flag {
        }

        interface CP {
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy