001package com.hfg.xml.msofficexml.xlsx.spreadsheetml.style; 002 003 004import com.hfg.html.attribute.Align; 005 006public enum SsmlHorizontalAlign 007{ 008 general, 009 left, 010 center, 011 right, 012 fill, 013 justify, 014 centerContinuous, 015 distributed; 016 017 //--------------------------------------------------------------------------- 018 public static SsmlHorizontalAlign valueOf(Align inAlignValue) 019 { 020 SsmlHorizontalAlign value = null; 021 if (inAlignValue != null) 022 { 023 for (SsmlHorizontalAlign enumValue : values()) 024 { 025 if (enumValue.name().equalsIgnoreCase(inAlignValue.toString())) 026 { 027 value = enumValue; 028 break; 029 } 030 } 031 } 032 033 return value; 034 } 035}