package com.jxml.quick.engine;
import com.jxml.quick.*;
import com.jxml.quick.access.*;
import com.jxml.quick.tf.*;

public class QConditionalAccess extends QIsIdRefAccess
{
    protected Object get(Object parent, QContext context)
	throws QPE
    {
	validateParent(parent,context);
	QElementFactory ef=(QElementFactory)parent;
	return new Boolean(ef.conditional);
    }

    public void add(Object parent, 
		    QTargetFactory parentFactory,
		    Object child, 
		    QContext context)
	throws QPE
    {
	validateParent(parent,context);
	validateChild(child,context);
	QElementFactory ef=(QElementFactory)parent;
	ef.conditional=((Boolean)child).booleanValue();
    }
}
