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; 20 21 /** <p>Interface of the attribute group <code>xs:defRef</code>, 22 * as specified by the following: 23 * <pre> 24 * <xs:attributeGroup name="defRef"> 25 * <xs:annotation> 26 * <xs:documentation> 27 * for element, group and attributeGroup, 28 * which both define and reference 29 * </xs:documentation> 30 * </xs:annotation> 31 * <xs:attribute name="name" type="xs:NCName"/> 32 * <xs:attribute name="ref" type="xs:QName"/> 33 * </xs:attributeGroup> 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; 49 } 50