w3c.css.util.CssProfile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cssvalidator Show documentation
Show all versions of cssvalidator Show documentation
Backend for the W3C CSS Validation Service
//
//
// (c) COPYRIGHT MIT, ERCIM, Keio, Beihang, 2011
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.css.util;
public enum CssProfile {
EMPTY(""), NONE("none"), SVG("svg"), SVGBASIC("svgbasic"), SVGTINY("svgtiny"),
MOBILE("mobile"), TV("tv"), ATSCTV("atsc-tv");
private final String profile;
CssProfile(String version) {
this.profile = version;
}
public String toString() {
return profile;
}
public static CssProfile resolve(ApplContext ac, String s) {
for (CssProfile p : CssProfile.values()) {
if (p.toString().equals(s)) {
return p;
}
}
// special cases
switch (s) {
case "css3svg":
return SVG;
}
return EMPTY;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy