001    /*
002     * Copyright 2007 - 2007 JEuclid, http://jeuclid.sf.net
003     * 
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     *      http://www.apache.org/licenses/LICENSE-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.w3c.dom.mathml;
017    
018    /*
019     * Please note: This file was automatically generated from the source of the
020     * MathML specification. Do not edit it. If there are errors or missing
021     * elements, please correct the stylesheet instead.
022     */
023    
024    /**
025     * The piece element represents one of a sequence of cases used in the
026     * piecewise definition of a function. It contains two child elements, each
027     * represented by a MathMLContentElement. The first child determines the
028     * subset of the domain affected, normally by giving a condition to be
029     * satisfied. The second gives the value of the function over the indicated
030     * subset of its domain.
031     * 
032     */
033    public interface MathMLCaseElement extends MathMLContentElement {
034        /**
035         * Accesses the MathMLContentElement representing the condition to be
036         * satisfied in order for this branch of the piecewise definition to be
037         * used.
038         * 
039         * @return value of the caseCondition attribute.
040         */
041        MathMLContentElement getCaseCondition();
042    
043        /**
044         * setter for the caseCondition attribute.
045         * 
046         * @param caseCondition
047         *            new value for caseCondition.
048         * @see #getCaseCondition()
049         */
050        void setCaseCondition(MathMLContentElement caseCondition);
051    
052        /**
053         * Accesses the MathMLContentElement representing the value to be taken by
054         * the piecewise function when the condition described by caseCondition is
055         * true.
056         * 
057         * @return value of the caseValue attribute.
058         */
059        MathMLContentElement getCaseValue();
060    
061        /**
062         * setter for the caseValue attribute.
063         * 
064         * @param caseValue
065         *            new value for caseValue.
066         * @see #getCaseValue()
067         */
068        void setCaseValue(MathMLContentElement caseValue);
069    };