2002/css-validator/org/w3c/css/properties/css21/table CssCaptionSideCSS21.java,NONE,1.1

Update of /sources/public/2002/css-validator/org/w3c/css/properties/css21/table
In directory hutz:/tmp/cvs-serv16812/org/w3c/css/properties/css21/table

Added Files:
	CssCaptionSideCSS21.java 
Log Message:
>From Jean-Guilhem Rouel:
CSS 2.1 first implementation




--- NEW FILE: CssCaptionSideCSS21.java ---
// $Id: CssCaptionSideCSS21.java,v 1.1 2005/09/01 11:51:21 ylafon Exp $
// Author: Jean-Guilhem Rouel
// (c) COPYRIGHT MIT, ERCIM and Keio, 2005.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.css.properties.css21.table;

import org.w3c.css.properties.css2.table.CaptionSide;
import org.w3c.css.util.ApplContext;
import org.w3c.css.util.InvalidParamException;
import org.w3c.css.values.CssExpression;

/**
 * CssCaptionSide21<br />
 * Created: Aug 30, 2005 5:49:51 PM<br />
 */
public class CssCaptionSideCSS21 extends CaptionSide {    

    /**
     * Create a new CaptionSide
     */  
    public CssCaptionSideCSS21() {
	super();
    }
    
    /**
     * Creates a new CssCaptionSide
     *
     * @param expression the expression of the size
     * @exception InvalidParamException The expression is incorrect
     */  
    public CssCaptionSideCSS21(ApplContext ac, CssExpression expression, boolean check)
    	throws InvalidParamException {
	
	super(ac, expression, check);
	
	// 'left' and 'right' are forbidden in CSS 2.1
	if(getValue() == left || getValue() == right) {
	    throw new InvalidParamException("value", 
		    getValue().toString(), 
		    getPropertyName(), ac);
	}
    }
    
    public CssCaptionSideCSS21(ApplContext ac, CssExpression expression) 
	throws InvalidParamException {
	this(ac, expression, false);
    }
}

Received on Thursday, 1 September 2005 11:51:27 UTC