summaryrefslogtreecommitdiff
path: root/sources/scala/xml/xsd/Decl.scala
blob: 18a61f3b2bd695b806ec2bb4d8c9986716e4e874 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*                     __                                               *\
**     ________ ___   / /  ___     Scala API                            **
**    / __/ __// _ | / /  / _ |    (c) 2003-2005, LAMP/EPFL             **
**  __\ \/ /__/ __ |/ /__/ __ |                                         **
** /____/\___/_/ |_/____/_/ | |                                         **
**                          |/                                          **
\*                                                                      */

// $Id$

package scala.xml.xsd ;

abstract class Decl ;

/** name     - label of the element
 *  typeName - reference to a (possibly generated) type name
 */
case class ElemDecl(name: String, tpe: TypeSymbol) extends Decl;

abstract class TypeDecl ;

case class ComplexTypeDecl(name: String, derivedFrom: DerivSym, contentModel: ContentModel) extends TypeDecl;

case class SimpleTypeDecl(name: String) extends TypeDecl;;

abstract class xsdBuiltin(name: String) extends SimpleTypeDecl(name);