001 002package gudusoft.gsqlparser.pp.para.styleenums; 003 004/** Placement of a comma relative to the line break between stacked items. */ 005public enum TLinefeedsCommaOption { 006 /** Keep the comma at the end of the previous item, then break the line. */ 007 LfAfterComma, 008 /** Break before the comma and insert one space between it and the next item. */ 009 LfbeforeCommaWithSpace, 010 /** Break before the comma without inserting a following space. */ 011 LfBeforeComma; 012 013 public static TLinefeedsCommaOption of(String type) { 014 if (type == null) 015 return null; 016 for (TLinefeedsCommaOption value : TLinefeedsCommaOption.values()) { 017 if (value.name().equalsIgnoreCase(type)) { 018 return value; 019 } 020 } 021 return null; 022 } 023}