this.rgbColorValue = primitive.getRGBColorValue();
    public FSCssValue( CSSName cssName, org.w3c.dom.css.CSSPrimitiveValue primitive ) {        this.cssName = cssName;        this.propName = cssName.toString();        this.primitiveType = primitive.getPrimitiveType();        this._cssText = ( primitiveType == CSSPrimitiveValue.CSS_STRING ?                primitive.getStringValue() :                primitive.getCssText() );        // TODO        // access on these values is not correctly supported in this class        // right now. would need a switch/case on primitive type        // as the getZZZ will fail if not the corresponding type        // e.g. getCounterValue() fails if not actually a counter        // (PWW 19-11-04)        //this.floatValue = primitive.getFloatValue( primitiveType );        // convert type as necessary        switch ( primitiveType ) {            case org.w3c.dom.css.CSSPrimitiveValue.CSS_RGBCOLOR:                break;            case org.w3c.dom.css.CSSPrimitiveValue.CSS_IDENT:                break;            case org.w3c.dom.css.CSSPrimitiveValue.CSS_STRING:                // ASK: do we need this? not clear when a CSS_STRING is meaningful (PWW 24-01-05)                break;            case org.w3c.dom.css.CSSPrimitiveValue.CSS_COUNTER:                this.counter = primitive.getCounterValue();                break;            case org.w3c.dom.css.CSSPrimitiveValue.CSS_RECT:                this.rectValue = primitive.getRectValue();                break;            case CSSPrimitiveValue.CSS_IN:            // fall-thru            case CSSPrimitiveValue.CSS_CM:            // fall-thru            case CSSPrimitiveValue.CSS_EMS:            // fall-thru            case CSSPrimitiveValue.CSS_EXS:            // fall-thru            case CSSPrimitiveValue.CSS_MM:            // fall-thru            case CSSPrimitiveValue.CSS_NUMBER:            // fall-thru            case CSSPrimitiveValue.CSS_PC:            // fall-thru            case CSSPrimitiveValue.CSS_PERCENTAGE:            // fall-thru            case CSSPrimitiveValue.CSS_PT:            // fall-thru            case CSSPrimitiveValue.CSS_PX:                this.floatValue = primitive.getFloatValue( primitiveType );                break;            default:            // leave as is        }        if ( _cssText == null ) {            throw new XRRuntimeException(                 "CSSText is null for " + primitive + "   csstext " + primitive.getCssText() + "   string value " + primitive.getStringValue() );        }    }