com.hfg.css.CSSBorderStyle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com_hfg Show documentation
Show all versions of com_hfg Show documentation
com.hfg xml, html, svg, and bioinformatics utility library
package com.hfg.css;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
public class CSSBorderStyle
{
private static final Map sValueMap = new HashMap(15);
public static final CSSBorderStyle NONE = new CSSBorderStyle("none");
public static final CSSBorderStyle HIDDEN = new CSSBorderStyle("hidden");
public static final CSSBorderStyle DOTTED = new CSSBorderStyle("dotted");
public static final CSSBorderStyle DASHED = new CSSBorderStyle("dashed");
public static final CSSBorderStyle SOLID = new CSSBorderStyle("solid");
public static final CSSBorderStyle DOUBLE = new CSSBorderStyle("double");
public static final CSSBorderStyle GROOVE = new CSSBorderStyle("groove");
public static final CSSBorderStyle RIDGE = new CSSBorderStyle("ridge");
public static final CSSBorderStyle INSET = new CSSBorderStyle("inset");
public static final CSSBorderStyle OUTSET = new CSSBorderStyle("outset");
public static final CSSBorderStyle INHERIT = new CSSBorderStyle("inherit");
private String mName;
//---------------------------------------------------------------------------
private CSSBorderStyle(String inName)
{
mName = inName;
sValueMap.put(mName, this);
}
//---------------------------------------------------------------------------
public static CSSBorderStyle valueOf(String inString)
{
return sValueMap.get(inString);
}
//---------------------------------------------------------------------------
public static Collection values()
{
return sValueMap.values();
}
//---------------------------------------------------------------------------
public String name()
{
return mName;
}
//---------------------------------------------------------------------------
@Override
public String toString()
{
return name();
}
}