001
002package gudusoft.gsqlparser.pp.para.styleenums;
003
004/**
005 * Line-layout strategy for a comma-separated list.
006 *
007 * @author zhoujun
008 */
009public enum TAlignStyle {
010        /** Put later list items on aligned lines using the selected comma style. */
011        AsStacked,
012        /** Keep list items on the current line and normalize separators to spaces. */
013        AsWrapped;
014
015        public static TAlignStyle of(String type) {
016                if (type == null)
017                        return null;
018                for (TAlignStyle value : TAlignStyle.values()) {
019                        if (value.name().equalsIgnoreCase(type)) {
020                                return value;
021                        }
022                }
023                return null;
024        }
025}