final class DslBuilder extends AnyRef
- Alphabetic
- By Inheritance
- DslBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def -/(qname: QName): DslBuilder
Removes all child trees with a given qname
- def -/@(attribs: QName*): DslBuilder
Remove attributes
- def /(itemOrElems: xml.ItemOrElem*): DslBuilder
Add a number of trees, xmlItems, text, cdata, comments etc
- def /(itemOrElem: Option[xml.ItemOrElem]): DslBuilder
Optionally add a child, when None no child we be added
- def /(itemOrElems: => Iterable[xml.ItemOrElem]): DslBuilder
- def /@(attrib: Option[Attribute]): DslBuilder
Optionally add a single attribute, when None no attribute will be added
- def /@(attribs: => Iterable[Attribute]): DslBuilder
Add attributes
- def /@(attribs: Attribute*): DslBuilder
Add attributes
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def add(itemOrElems: xml.ItemOrElem*): DslBuilder
- def addOptionals(itemOrElems: => Iterable[Option[xml.ItemOrElem]]): DslBuilder
Add an Iterable of ItemOrElems wrapped in Option, those which are Some will be added.
- def addOptionals(itemOrElems: Option[xml.ItemOrElem]*): DslBuilder
Add a number of ItemOrElems wrapped in Option, those which are Some will be added.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def elementsOnly: DslBuilder
Cleans out any child text nodes (comments, cdata etc) and just leaves child elements
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fold[T <: Iterable[xml.XmlPath]](xpath: (xml.XmlPath) => XPath[T])(folder: (xml.XmlPath) => FoldOperation[XmlItem, Elem, xml.XCC]): Either[DslBuilder, (DslBuilder, FoldError)]
Fold over the current tree, allows folding deep within a builder.
Fold over the current tree, allows folding deep within a builder. Either the fold works or
thisis returned with the FoldError. - def fold_![T <: Iterable[xml.XmlPath]](xpath: (xml.XmlPath) => XPath[T])(folder: (xml.XmlPath) => FoldOperation[XmlItem, Elem, xml.XCC]): DslBuilder
fold_! calls fold but throws the error when its returning a root
- def fold_?[T <: Iterable[xml.XmlPath]](xpath: (xml.XmlPath) => XPath[T])(folder: (xml.XmlPath) => FoldOperation[XmlItem, Elem, xml.XCC]): DslBuilder
Does not throw when NoPaths is returned, simply returning this
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def setValue(value: Option[String]): DslBuilder
see ~> Option[String]
- def setValue(value: String): DslBuilder
see ~>
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def toTree: xml.XmlTree
- val tree: xml.XmlTree
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def ~>(value: Option[String]): DslBuilder
Optionally sets the tree to a single Text node child, replacing all others, None will not change the current node.
Optionally sets the tree to a single Text node child, replacing all others, None will not change the current node.
<(Elem("root"l)) ~> None
would leave an empty <root/>
- def ~>(value: String): DslBuilder
sets the tree to a single Text node child, replacing all others