/** * Implements {@link ValueManager#createFloatValue(short,float)}. */ public Value createFloatValue(short type, float floatValue) throws DOMException { switch (type) { case CSSPrimitiveValue.CSS_DEG: case CSSPrimitiveValue.CSS_GRAD: case CSSPrimitiveValue.CSS_RAD: return new FloatValue(type, floatValue); } throw createInvalidFloatValueDOMException(floatValue); } }
/** * Implements {@link ValueManager#createValue(LexicalUnit,CSSEngine)}. */ public Value createValue(LexicalUnit lu, CSSEngine engine) throws DOMException { if (lu.getLexicalUnitType() == LexicalUnit.SAC_IDENT) { if (lu.getStringValue().equalsIgnoreCase (CSSConstants.CSS_AUTO_VALUE)) { return SVGValueConstants.AUTO_VALUE; } throw createInvalidIdentifierDOMException(lu.getStringValue()); } return super.createValue(lu, engine); }
throw createInvalidLexicalUnitDOMException(lu.getLexicalUnitType());
/** * Implements {@link ValueManager#createValue(LexicalUnit,CSSEngine)}. */ public Value createValue(LexicalUnit lu, CSSEngine engine) throws DOMException { if (lu.getLexicalUnitType() == LexicalUnit.SAC_IDENT) { if (lu.getStringValue().equalsIgnoreCase (CSSConstants.CSS_AUTO_VALUE)) { return SVGValueConstants.AUTO_VALUE; } throw createInvalidIdentifierDOMException(lu.getStringValue()); } return super.createValue(lu, engine); }
throw createInvalidLexicalUnitDOMException(lu.getLexicalUnitType());
/** * Implements {@link ValueManager#createValue(LexicalUnit,CSSEngine)}. */ public Value createValue(LexicalUnit lu, CSSEngine engine) throws DOMException { if (lu.getLexicalUnitType() == LexicalUnit.SAC_IDENT) { if (lu.getStringValue().equalsIgnoreCase (CSSConstants.CSS_AUTO_VALUE)) { return SVGValueConstants.AUTO_VALUE; } throw createInvalidIdentifierDOMException(lu.getStringValue()); } return super.createValue(lu, engine); }
/** * Implements {@link ValueManager#createFloatValue(short,float)}. */ public Value createFloatValue(short type, float floatValue) throws DOMException { switch (type) { case CSSPrimitiveValue.CSS_DEG: case CSSPrimitiveValue.CSS_GRAD: case CSSPrimitiveValue.CSS_RAD: return new FloatValue(type, floatValue); } throw createInvalidFloatValueDOMException(floatValue); } }
throw createInvalidLexicalUnitDOMException(lu.getLexicalUnitType());
/** * Implements {@link ValueManager#createFloatValue(short,float)}. */ public Value createFloatValue(short type, float floatValue) throws DOMException { switch (type) { case CSSPrimitiveValue.CSS_DEG: case CSSPrimitiveValue.CSS_GRAD: case CSSPrimitiveValue.CSS_RAD: return new FloatValue(type, floatValue); } throw createInvalidFloatValueDOMException(floatValue); } }