diff options
author | buraq <buraq@epfl.ch> | 2005-04-11 17:06:38 +0000 |
---|---|---|
committer | buraq <buraq@epfl.ch> | 2005-04-11 17:06:38 +0000 |
commit | 38c5a6b5ca0577347240208c7df0b36e08c05ceb (patch) | |
tree | 248a5067bbeb09d5b0988f8fcc9916469b8cf069 /sources | |
parent | e46aab9c0c8a2f0420a4d1e3d7865b84122f745b (diff) | |
download | scala-38c5a6b5ca0577347240208c7df0b36e08c05ceb.tar.gz scala-38c5a6b5ca0577347240208c7df0b36e08c05ceb.tar.bz2 scala-38c5a6b5ca0577347240208c7df0b36e08c05ceb.zip |
be gone, rubbish code
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scala/xml/parsing/AttribValue.scala | 17 | ||||
-rw-r--r-- | sources/scala/xml/parsing/XSDHandler.scala | 21 |
2 files changed, 0 insertions, 38 deletions
diff --git a/sources/scala/xml/parsing/AttribValue.scala b/sources/scala/xml/parsing/AttribValue.scala deleted file mode 100644 index 3557e49bf3..0000000000 --- a/sources/scala/xml/parsing/AttribValue.scala +++ /dev/null @@ -1,17 +0,0 @@ -package scala.xml.parsing ; - -/** a container for attribute values */ -trait AttribValue { - def asString: String = this match { - case CDataValue(value) => value; - } - def asInt: Int = this match { - case IntValue(value) => value; - } -}; - -case class NamespaceDecl(uri: String) extends AttribValue; -case class CDataValue(value: String) extends AttribValue; -case class CustomValue[A](value:A) extends AttribValue; - -case class IntValue(value: Int) extends AttribValue; diff --git a/sources/scala/xml/parsing/XSDHandler.scala b/sources/scala/xml/parsing/XSDHandler.scala deleted file mode 100644 index 1018f02a87..0000000000 --- a/sources/scala/xml/parsing/XSDHandler.scala +++ /dev/null @@ -1,21 +0,0 @@ -package scala.xml.parsing; - -import scala.collection.Map ; -import scala.collection.{ immutable, mutable }; - -/** This handler is adapted to the foul handling of namespaces used in - * W3C XML Schema, notably, that the prefixes of namespace declarations - * in the root element are referenced from attribute values. - */ -class XSDHandler extends ConstructingHandler { - - /** namespace prefix map of the root element */ - var prefixes: immutable.Map[String,String] = null; - - override def internal_startPrefixMapping:Unit = { - if( prefixes == null ) - prefixes = new immutable.TreeMap[String,String] incl tmpPrefix; - super.internal_startPrefixMapping - } - -} |