com.hfg.css.CSSLevel 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;
public class CSSLevel
{
public static final CSSLevel CSS_1 = new CSSLevel("1");
public static final CSSLevel CSS_2 = new CSSLevel("2");
public static final CSSLevel CSS_2_1 = new CSSLevel("2.1");
public static final CSSLevel CSS_3 = new CSSLevel("3");
private String mVersionString;
private Float mVersionNum;
//--------------------------------------------------------------------------
private CSSLevel(String inVersionString)
{
mVersionString = inVersionString;
mVersionNum = Float.parseFloat(mVersionString);
}
//--------------------------------------------------------------------------
public String name()
{
return "CSS " + mVersionString;
}
//--------------------------------------------------------------------------
public Float getVersionNum()
{
return mVersionNum;
}
}