KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > xs > xml > XsAGDefRef


1 /*
2  * Copyright 2003, 2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15
16  */

17 package org.apache.ws.jaxme.xs.xml;
18
19 import org.xml.sax.SAXException JavaDoc;
20
21 /** <p>Interface of the attribute group <code>xs:defRef</code>,
22  * as specified by the following:
23  * <pre>
24  * &lt;xs:attributeGroup name="defRef"&gt;
25  * &lt;xs:annotation&gt;
26  * &lt;xs:documentation&gt;
27  * for element, group and attributeGroup,
28  * which both define and reference
29  * &lt;/xs:documentation&gt;
30  * &lt;/xs:annotation&gt;
31  * &lt;xs:attribute name="name" type="xs:NCName"/&gt;
32  * &lt;xs:attribute name="ref" type="xs:QName"/&gt;
33  * &lt;/xs:attributeGroup&gt;
34  * </pre></p>
35  * <p><em>Implementation note:</em> The 'name' and 'ref' attributes
36  * are mutually exclusive. This is checked by the 'validate' method.</p>
37  *
38  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
39  */

40 public interface XsAGDefRef {
41   public void setName(XsNCName pName);
42   public XsNCName getName();
43   public void setRef(XsQName pRef);
44   public XsQName getRef();
45
46   /** <p>Validates whether the attribute groups constraints are met.</p>
47    */

48   public void validate() throws SAXException JavaDoc;
49 }
50
Popular Tags