//$Header: /home/deegree/jail/deegreerepository/deegree/src/org/deegree/io/datastore/schema/MappedComplexTypeDeclaration.java,v 1.1 2006/08/22 18:13:14 mschneider Exp $
/*---------------- FILE HEADER ------------------------------------------
This file is part of deegree.
Copyright (C) 2001-2006 by:
EXSE, Department of Geography, University of Bonn
http://www.giub.uni-bonn.de/deegree/
lat/lon GmbH
http://www.lat-lon.de
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Contact:
Andreas Poth
lat/lon GmbH
Aennchenstraße 19
53177 Bonn
Germany
E-Mail: poth@lat-lon.de
Prof. Dr. Klaus Greve
Department of Geography
University of Bonn
Meckenheimer Allee 166
53115 Bonn
Germany
E-Mail: greve@giub.uni-bonn.de
---------------------------------------------------------------------------*/
package org.deegree.io.datastore.schema;
import org.deegree.datatypes.QualifiedName;
import org.deegree.framework.xml.schema.ComplexTypeDeclaration;
import org.deegree.framework.xml.schema.ElementDeclaration;
import org.deegree.framework.xml.schema.TypeReference;
import org.w3c.dom.Element;
/**
* Represents an annotated XML complex type declaration in an {@link MappedGMLSchema}.
* <p>
* The following limitations apply:
* <ul>
* <li>the type may be defined using 'extension', but must not use 'restriction'</li>
* <li>the content model must be a sequence</li>
* </ul>
* </p>
*
* @author <a href="mailto:schneider@lat-lon.de">Markus Schneider </a>
* @author last edited by: $Author: mschneider $
*
* @version $Revision: 1.1 $, $Date: 2006/08/22 18:13:14 $
*/
public class MappedComplexTypeDeclaration extends ComplexTypeDeclaration {
private Element annotationElement;
/**
* Creates a new <code>MappedComplexTypeDeclaration</code> instance from the given parameters.
*
* @param name
* @param extensionBaseType
* @param subElements
* @param annotationElement
*/
public MappedComplexTypeDeclaration( QualifiedName name, TypeReference extensionBaseType,
ElementDeclaration[] subElements, Element annotationElement ) {
super (name, extensionBaseType, subElements );
this.annotationElement = annotationElement;
}
/**
* Returns the "xs:annotation" element (which contains the mapping information).
*
* @return the "xs:annotation" element
*/
public Element getAnnotation () {
return this.annotationElement;
}
}
/* ********************************************************************
Changes to this class. What the people have been up to:
$Log: MappedComplexTypeDeclaration.java,v $
Revision 1.1 2006/08/22 18:13:14 mschneider
Initial version.
Revision 1.7 2006/07/12 14:46:15 poth
comment footer added
********************************************************************** */