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 /** <p>Interface of an annotated element, as specified 20 * by the following: 21 * <pre> 22 * <xs:complexType name="annotated"> 23 * <xs:annotation> 24 * <xs:documentation> 25 * This type is extended by all types which allow annotation 26 * other than <schema> itself. 27 * </xs:documentation> 28 * </xs:annotation> 29 * <xs:complexContent> 30 * <xs:extension base="xs:openAttrs"> 31 * <xs:sequence> 32 * <xs:element ref="xs:annotation" minOccurs="0"/> 33 * </xs:sequence> 34 * <xs:attribute name="id" type="xs:ID"/> 35 * </xs:extension> 36 * </xs:complexContent> 37 * </xs:complexType> 38 * </pre></p> 39 * 40 * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a> 41 */ 42 public interface XsTAnnotated extends XsTOpenAttrs { 43 public XsEAnnotation createAnnotation(); 44 public XsEAnnotation getAnnotation(); 45 public void setId(XsID pId); 46 public XsID getId(); 47 } 48