View Javadoc

1   /*
2    * Copyright 1999-2006 Faculty of Mathematics, Physics and Informatics, Comenius
3    * University, Bratislava. This file is protected by the Mozilla Public License
4    * version 1.1 (the License); you may not use this file except in compliance
5    * with the License. You may obtain a copy of the License at
6    * http://euromath2.sourceforge.net/license.html Unless required by applicable
7    * law or agreed to in writing, software distributed under the License is
8    * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
9    * KIND, either express or implied. See the License for the specific language
10   * governing permissions and limitations under the License.
11   */
12  package sk.uniba.euromath.document.schema.plug;
13  /***
14   * <p>
15   * Represents rule for attribute. There may be multiple attribute expressions
16   * represented by this rule, but each expression must be capable of generating
17   * attribute with given name. These expressions are alternatives to each other,
18   * only one expression can be picked to generate this attribute.
19   * </p>
20   * <p>
21   * Value acceptance is based on these rules:
22   * <ul>
23   * <li>Rule accepts textual value, if and only if one or more attribute
24   * expressions accepts this textual value.</li>
25   * <li>The <code>getName()</code> function must return comma-separated list
26   * of datatypes of all attribute expressions.</li>
27   * </ul>
28   * </p>
29   * @author Martin Vysny
30   */
31  public interface IAttributeRuleP extends ISingleQNameP, IValueRule, IBaseRuleP,
32  		IForeignNodeP {
33  	// no methods introduced
34  }