// // $Id: CssValue.java,v 1.7 2010/01/05 13:50:01 ylafon Exp $ // From Philippe Le Hegaret (Philippe.Le_Hegaret@sophia.inria.fr) // // (c) COPYRIGHT MIT and INRIA, 1997. // Please first read the full copyright statement in file COPYRIGHT.html package org.w3c.css.values; import org.w3c.css.util.ApplContext; import org.w3c.css.util.InvalidParamException; /** * @version $Revision: 1.7 $ */ public abstract class CssValue { public static int type = CssTypes.CSS_UNKNOWN; String cssversion; public int getType() { return type; } /** * Set the value of this value. * * @param s the string representation of the value. * @param ac For errors and warnings reports. * @throws InvalidParamException The unit is incorrect */ public abstract void set(String s, ApplContext ac) throws InvalidParamException; /** * @return the internal value */ public abstract Object get(); /** * Compares two values for equality. * * @param value The other value. */ public boolean equals(Object value) { return super.equals(value); } public void setCssVersion(String cssversion) { this.cssversion = cssversion; } public boolean isDefault() { return false; } }