/** * Implements {@link * ValueManager#createStringValue(short,String,CSSEngine)}. */ public Value createStringValue(short type, String value, CSSEngine engine) throws DOMException { if (type != CSSPrimitiveValue.CSS_IDENT) { throw createInvalidStringTypeDOMException(type); } if (value.equalsIgnoreCase(CSSConstants.CSS_AUTO_VALUE)) { return SVGValueConstants.AUTO_VALUE; } throw createInvalidIdentifierDOMException(value); } }
/** * 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#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#createStringValue(short,String,CSSEngine)}. */ public Value createStringValue(short type, String value, CSSEngine engine) throws DOMException { if (type != CSSPrimitiveValue.CSS_IDENT) { throw createInvalidStringTypeDOMException(type); } if (value.equalsIgnoreCase(CSSConstants.CSS_AUTO_VALUE)) { return SVGValueConstants.AUTO_VALUE; } throw createInvalidIdentifierDOMException(value); } }
/** * 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#createStringValue(short,String,CSSEngine)}. */ public Value createStringValue(short type, String value, CSSEngine engine) throws DOMException { if (type != CSSPrimitiveValue.CSS_IDENT) { throw createInvalidStringTypeDOMException(type); } if (value.equalsIgnoreCase(CSSConstants.CSS_AUTO_VALUE)) { return SVGValueConstants.AUTO_VALUE; } throw createInvalidIdentifierDOMException(value); } }