Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.32 KB | None | 0 0
  1.   def toNode(doc: Document): Node = {
  2.     val childNode = mComponents.foldLeft(scala.xml.NodeSeq.Empty)
  3.     ((res, cur) => res ++ cur._2.toNode(doc))
  4.  
  5.     val retNode =
  6.         <Container objectType={mObjectType.toString()} objectID={mObjectID.toString()}>
  7.           {childNode}
  8.         </Container>
  9.  
  10.     retNode
  11.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement