final class OptionalDslBuilder extends AnyRef
Represents an optional cascading tree,
NB Must have a starting element, modelled as tree as we need to keep the data around and trees must always have an elem.
- Alphabetic
- By Inheritance
- OptionalDslBuilder
- 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
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def ?/(itemOrElem: => Iterable[OptionalDslBuilder]): OptionalDslBuilder
Optionally add a number of children, when empty no child will be added
- def ?/(itemOrElem: OptionalDslBuilder*): OptionalDslBuilder
Optionally add a number of children, when empty no child will be added
- def ?/(itemOrElem: OptionalDslBuilder): OptionalDslBuilder
Optionally add a child, when None no child will be added
- def ?/@(attrib: Option[Attribute]): OptionalDslBuilder
Optionally add a single attribute, when None no attribute will be added
- def ?/@(attribs: => Iterable[Attribute]): OptionalDslBuilder
Add attributes
- def ?~>(value: Option[String]): OptionalDslBuilder
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): OptionalDslBuilder
sets the tree to a single Text node child, replacing all others, calling this forces the resulting OptionalDslBuilder to be non empty
- def addNonEmpty(itemOrElems: xml.ItemOrElem*): OptionalDslBuilder
Adds items and filters out empty trees.
- def addNonEmpty(itemOrElems: => Iterable[xml.ItemOrElem]): OptionalDslBuilder
Adds items and filters out empty trees.
- def addOptionalAttribute(attrib: Option[Attribute]): OptionalDslBuilder
Optionally add a single attribute, when None no attribute will be added
- def addOptionalAttributes(attribs: => Iterable[Attribute]): OptionalDslBuilder
Add attributes
- def addOptionalChild(itemOrElem: OptionalDslBuilder): OptionalDslBuilder
Optionally add a child, when None no child will be added
- def addOptionalChildren(items: OptionalDslBuilder*): OptionalDslBuilder
Optionally add a number of children, when empty no child will be added
- def addOptionalChildren(items: => Iterable[OptionalDslBuilder]): OptionalDslBuilder
Optionally add a number of children, when empty no child 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()
- 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])
- 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 setNonOptionalValue(value: String): OptionalDslBuilder
see ?~>
- def setOptionalValue(value: Option[String]): OptionalDslBuilder
see ~> Option[String]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toOptionalTree: Option[xml.XmlTree]
If all of the underly Elem is empty - no children or attributes then it returns None.
If all of the underly Elem is empty - no children or attributes then it returns None.
NB xsi:nil still counts as an attribute as it has an intended meaning.
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()