changes in xml node hierarchy
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@2036 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
7095233999
commit
82d6b9a797
|
@ -36,13 +36,17 @@ import scala.collection.mutable.HashMap ;<br/>
|
|||
<elementBinding>
|
||||
def constr_&ccElementName;( ch:childrenT, attrs:attribMapT ) =
|
||||
new &ccElementName;(ch:_*) { <inc/><br/>
|
||||
override def attributes : Map[String,String] = attrs; <br/>
|
||||
def attributes : Map[String,String] = attrs; <br/>
|
||||
<attributeAssign>
|
||||
override val &cAttributeName; = attrs.get(&qAttributeName;); <br/>
|
||||
val attribHashCode: int = attrs.hashCode() ;<br/>
|
||||
</attributeAssign>
|
||||
val attribHashCode: int = attrs.toList.hashCode() ;<br/>
|
||||
};<dec/><br/>
|
||||
case class &ccElementName;( ch:Node* ) extends scala.xml.AttributedNode {<inc/><br/>
|
||||
def &ccElementName;( ch:Node* ) = new &ccElementName;(ch:_*){<inc/><br/>
|
||||
def attributes = scala.collection.immutable.ListMap.Empty[String,String];<br/>
|
||||
val attribHashCode = 0;
|
||||
};
|
||||
abstract case class &ccElementName;( ch:Node* ) extends scala.xml.AttributedNode {<inc/><br/>
|
||||
def label = &qElementName;; <br/>
|
||||
def children = ch;<br/>
|
||||
<attributeBinding>
|
||||
|
|
|
@ -5,7 +5,7 @@ import scala.collection.immutable.ListMap ;
|
|||
|
||||
/** an XML node. use this when data binding is not desired.
|
||||
**/
|
||||
case class Element( symbol: Symbol, ch: List[Node] ) extends AttributedNode {
|
||||
class Element( symbol: Symbol, ch: Seq[Node] ) extends AttributedNode {
|
||||
|
||||
def label = symbol.name;
|
||||
def children = ch;
|
||||
|
|
Loading…
Reference in New Issue