blob: 50edccf8a0b2b8b71d50c00d5b6c309fbe6e5446 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package scala.tools.dtd2scala ;
import scala.collection.mutable.HashMap ;
abstract class XMLDecl ;
case class ElemDecl( name:String ,
contentModel:String ,
attribs:HashMap[String,AttrDecl] )
extends XMLDecl {
def containsText = contentModel.indexOf("#PCDATA") != -1 ;
}; /*AttrDecl[]*/
// ignore default values 4 now
case class AttrDecl( name:String,
tpe:String ) extends XMLDecl;
|